prettier rules

This commit is contained in:
Panayiotis Lipiridis 2017-11-16 01:05:00 +02:00
parent 55c858f7d8
commit 98956e08a5

View file

@ -33,7 +33,15 @@
"run-sequence": "^1.1.5"
},
"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": {
"fix": "prettier --ignore-path .gitignore --write '**/*.{js,json,md,css}'",