Skip to content

Commit b48b782

Browse files
tguichaouapapaia
andauthored
chore(Prettier): add settings for prettier plugin (#4756)
Co-authored-by: Papaia <43409674+Papaia@users.noreply.github.com>
1 parent 74763ef commit b48b782

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

package.json

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"lint": "eslint src",
2323
"lint:fix": "eslint src --fix",
2424
"lint:typings": "tslint typings/index.d.ts",
25-
"prettier": "prettier --write --single-quote --print-width 120 --trailing-comma all --end-of-line lf --arrow-parens avoid src/**/*.js typings/**/*.ts",
25+
"prettier": "prettier --write src/**/*.js typings/**/*.ts",
2626
"build:browser": "webpack",
2727
"prepublishOnly": "npm run test && cross-env NODE_ENV=production npm run build:browser"
2828
},
@@ -122,7 +122,7 @@
122122
},
123123
"lint-staged": {
124124
"*.js": "eslint --fix",
125-
"*.ts": "prettier --write --single-quote --print-width 120 --trailing-comma all --end-of-line lf --arrow-parens avoid"
125+
"*.ts": "prettier --write"
126126
},
127127
"commitlint": {
128128
"extends": [
@@ -152,5 +152,12 @@
152152
]
153153
]
154154
}
155+
},
156+
"prettier":{
157+
"singleQuote": true,
158+
"printWidth": 120,
159+
"trailingComma": "all",
160+
"endOfLine": "lf",
161+
"arrowParens": "avoid"
155162
}
156163
}

0 commit comments

Comments
 (0)