prettier rules
This commit is contained in:
parent
55c858f7d8
commit
98956e08a5
10
package.json
10
package.json
|
@ -33,7 +33,15 @@
|
||||||
"run-sequence": "^1.1.5"
|
"run-sequence": "^1.1.5"
|
||||||
},
|
},
|
||||||
"lint-staged": {
|
"lint-staged": {
|
||||||
"*.{js,json,md,css}": ["prettier --print-width=200 --write", "git add"]
|
"*.{js,json,md,css}": ["prettier --write", "git add"]
|
||||||
|
},
|
||||||
|
"prettier": {
|
||||||
|
"bracketSpacing": false,
|
||||||
|
"printWidth": 80,
|
||||||
|
"proseWrap": false,
|
||||||
|
"singleQuote": true,
|
||||||
|
"tabWidth": 2,
|
||||||
|
"trailingComma": "all"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"fix": "prettier --ignore-path .gitignore --write '**/*.{js,json,md,css}'",
|
"fix": "prettier --ignore-path .gitignore --write '**/*.{js,json,md,css}'",
|
||||||
|
|
Loading…
Reference in New Issue