Use .prettierignore / .prettierrc files
This commit is contained in:
parent
74119d471d
commit
1f2b3d8d29
|
@ -0,0 +1 @@
|
|||
example/node_modules/
|
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
"singleQuote": true
|
||||
}
|
|
@ -8,11 +8,11 @@
|
|||
"main": "index.js",
|
||||
"scripts": {
|
||||
"precommit": "lint-staged",
|
||||
"prettier": "prettier --single-quote --write '{,!(node_modules)/**/}*.js'"
|
||||
"prettier": "prettier --write '**/*.js'"
|
||||
},
|
||||
"lint-staged": {
|
||||
"{,!(node_modules)/**/}*.js": [
|
||||
"prettier --single-quote --write",
|
||||
"**/*.js": [
|
||||
"prettier --write",
|
||||
"git add"
|
||||
]
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue