The pluggable linting utility for JavaScript and JSX
什么是 Prettier
配置文件
.prettierrc
{
"singleQuote": true,
"trailingComma": "es5",
"printWidth": 100,
"overrides": [
{
"files": ".prettierrc",
"options": { "parser": "json" }
}
]
}
.prettierignore
package.json
gatsby/**