Skip to content

Commit 49051b1

Browse files
authored
Merge pull request #446 from dyoshikawa/feat-prettierrc
Migrate prettier cli options to .prettierrc.json
2 parents aa7182a + 12a6ffc commit 49051b1

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.prettierrc.json

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

package.json

Lines changed: 1 addition & 1 deletion
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)