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:
Maxime Thirouin
2018-01-08 16:56:29 +01:00
committed by Nicolas Gallagher
parent c26ef0eb3b
commit 17614e348b

View File

@@ -9,7 +9,7 @@
"docs:release": "cd website && yarn release",
"flow": "flow",
"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",
"lint": "yarn lint:check --fix",
"lint:check": "eslint packages scripts website",
@@ -62,6 +62,10 @@
"eslint"
]
},
"prettier": {
"printWidth": 100,
"singleQuote": true
},
"author": "Nicolas Gallagher",
"license": "BSD-3-Clause"
}