mirror of
https://github.com/status-im/react-native-languages.git
synced 2026-08-27 10:01:11 +00:00
Use .prettierignore / .prettierrc files
This commit is contained in:
@@ -0,0 +1 @@
|
||||
example/node_modules/
|
||||
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"singleQuote": true
|
||||
}
|
||||
+3
-3
@@ -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"
|
||||
]
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user