mirror of
https://github.com/zoriya/react-native-web.git
synced 2026-05-26 07:49:18 +00:00
Use prettier config instead of CLI args
This allows IDE plugins that rely on prettier config (introduced in [1.6.0](https://github.com/prettier/prettier/pull/2434)) to detect prettier and run it automatically with the correct config. Close #757
This commit is contained in:
committed by
Nicolas Gallagher
parent
c26ef0eb3b
commit
17614e348b
+5
-1
@@ -9,7 +9,7 @@
|
|||||||
"docs:release": "cd website && yarn release",
|
"docs:release": "cd website && yarn release",
|
||||||
"flow": "flow",
|
"flow": "flow",
|
||||||
"fmt": "find packages scripts types website -name '*.js' | grep -v -E '(node_modules|dist|vendor)' | xargs yarn fmt:cmd",
|
"fmt": "find packages scripts types website -name '*.js' | grep -v -E '(node_modules|dist|vendor)' | xargs yarn fmt:cmd",
|
||||||
"fmt:cmd": "prettier --print-width=100 --single-quote --write",
|
"fmt:cmd": "prettier --write",
|
||||||
"jest": "jest --config ./scripts/jest/config.js",
|
"jest": "jest --config ./scripts/jest/config.js",
|
||||||
"lint": "yarn lint:check --fix",
|
"lint": "yarn lint:check --fix",
|
||||||
"lint:check": "eslint packages scripts website",
|
"lint:check": "eslint packages scripts website",
|
||||||
@@ -62,6 +62,10 @@
|
|||||||
"eslint"
|
"eslint"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
"prettier": {
|
||||||
|
"printWidth": 100,
|
||||||
|
"singleQuote": true
|
||||||
|
},
|
||||||
"author": "Nicolas Gallagher",
|
"author": "Nicolas Gallagher",
|
||||||
"license": "BSD-3-Clause"
|
"license": "BSD-3-Clause"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user