Skip to content

Commit 17614e3

Browse files
MoOxnecolas
authored andcommitted
Use prettier config instead of CLI args
This allows IDE plugins that rely on prettier config (introduced in [1.6.0](prettier/prettier#2434)) to detect prettier and run it automatically with the correct config. Close #757
1 parent c26ef0e commit 17614e3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"docs:release": "cd website && yarn release",
1010
"flow": "flow",
1111
"fmt": "find packages scripts types website -name '*.js' | grep -v -E '(node_modules|dist|vendor)' | xargs yarn fmt:cmd",
12-
"fmt:cmd": "prettier --print-width=100 --single-quote --write",
12+
"fmt:cmd": "prettier --write",
1313
"jest": "jest --config ./scripts/jest/config.js",
1414
"lint": "yarn lint:check --fix",
1515
"lint:check": "eslint packages scripts website",
@@ -62,6 +62,10 @@
6262
"eslint"
6363
]
6464
},
65+
"prettier": {
66+
"printWidth": 100,
67+
"singleQuote": true
68+
},
6569
"author": "Nicolas Gallagher",
6670
"license": "BSD-3-Clause"
6771
}

0 commit comments

Comments
 (0)