0.7.2 • Published 7 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
.editorconfig
file 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.mjs
file 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
format
script to yourpackage.json
, e.g.:
{
"scripts": {
"format": "prettier --write ."
}
}
Further Reading
0.7.2
7 months ago
0.7.1
8 months ago
0.7.0
9 months ago
0.6.1
10 months ago
0.6.0
11 months ago
0.5.1
11 months 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
1 year ago
0.1.4
1 year ago
0.1.2
1 year ago
0.1.1
1 year ago
0.1.0
1 year ago