Skip to content

Commit 8b04235

Browse files
committed
Migrate prettier cli options to .prettierrc.json
1 parent 22f47cc commit 8b04235

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

Diff for: .prettierrc.json

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"parser": "typescript",
3+
"trailingComma": "all",
4+
"arrowParens": "avoid"
5+
}

Diff for: package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"scripts": {
1515
"pretest": "npm run format && npm run build",
1616
"test": "TEST_PORT=1234 TS_NODE_CACHE=0 nyc mocha",
17-
"prettier": "prettier --parser typescript --trailing-comma all --arrow-parens avoid \"{lib,test}/**/*.ts\"",
17+
"prettier": "prettier \"{lib,test}/**/*.ts\"",
1818
"format": "npm run prettier -- --write",
1919
"format:check": "npm run prettier -- -l",
2020
"clean": "rm -rf dist/*",

0 commit comments

Comments
 (0)