mirror of
https://github.com/status-im/react-native-languages.git
synced 2025-01-13 17:54:33 +00:00
Use .prettierignore / .prettierrc files
This commit is contained in:
parent
74119d471d
commit
1f2b3d8d29
1
.prettierignore
Normal file
1
.prettierignore
Normal file
@ -0,0 +1 @@
|
|||||||
|
example/node_modules/
|
3
.prettierrc
Normal file
3
.prettierrc
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"singleQuote": true
|
||||||
|
}
|
@ -8,11 +8,11 @@
|
|||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"precommit": "lint-staged",
|
"precommit": "lint-staged",
|
||||||
"prettier": "prettier --single-quote --write '{,!(node_modules)/**/}*.js'"
|
"prettier": "prettier --write '**/*.js'"
|
||||||
},
|
},
|
||||||
"lint-staged": {
|
"lint-staged": {
|
||||||
"{,!(node_modules)/**/}*.js": [
|
"**/*.js": [
|
||||||
"prettier --single-quote --write",
|
"prettier --write",
|
||||||
"git add"
|
"git add"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user