0.7.2 • Published 11 months ago
@zeitonline/prettier-config v0.7.2
@zeitonline/prettier-config
This package provides a shared Prettier configuration for ZEIT ONLINE projects.
Installation & Usage
- Make sure to add the
.editorconfigfile to your project as well, since prettier picks up a few settings from it:
wget https://raw.githubusercontent.com/zeitonline/frontend-code-style/main/.editorconfig- Install the package using npm:
npm install --save-dev @zeitonline/prettier-config- Create a
.prettierrc.mjsfile in the root of your project, import and spread the shared configuration:
import zonPrettierConfig from "@zeitonline/prettier-config";
export default {
...zonPrettierConfig,
};- (Optional) Add a .prettierignore file to your project to exclude files from formatting, e.g.:
package-lock.json
*.md
*.css
*.scss
*.html
*.yml
*.yaml
*.lock- (Optional) Add a
formatscript to yourpackage.json, e.g.:
{
"scripts": {
"format": "prettier --write ."
}
}Further Reading
0.7.2
11 months ago
0.7.1
12 months ago
0.7.0
1 year ago
0.6.1
1 year ago
0.6.0
1 year ago
0.5.1
1 year ago
0.5.0
1 year ago
0.4.1-alpha.2
1 year ago
0.4.1-alpha.1
1 year ago
0.4.1-alpha.0
1 year ago
0.4.0
1 year ago
0.3.0
1 year ago
0.2.0
1 year ago
0.1.7
1 year ago
0.1.6
1 year ago
0.1.5
2 years ago
0.1.4
2 years ago
0.1.2
2 years ago
0.1.1
2 years ago
0.1.0
2 years ago