From b48b782c879a4525ea26cb30e85e7c9d2b9e0ef0 Mon Sep 17 00:00:00 2001 From: Tristan Guichaoua <33934311+tguichaoua@users.noreply.github.com> Date: Sat, 29 Aug 2020 12:08:47 +0200 Subject: [PATCH] chore(Prettier): add settings for prettier plugin (#4756) Co-authored-by: Papaia <43409674+Papaia@users.noreply.github.com> --- package.json | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index c40122c8d..67cbfe7c9 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,7 @@ "lint": "eslint src", "lint:fix": "eslint src --fix", "lint:typings": "tslint typings/index.d.ts", - "prettier": "prettier --write --single-quote --print-width 120 --trailing-comma all --end-of-line lf --arrow-parens avoid src/**/*.js typings/**/*.ts", + "prettier": "prettier --write src/**/*.js typings/**/*.ts", "build:browser": "webpack", "prepublishOnly": "npm run test && cross-env NODE_ENV=production npm run build:browser" }, @@ -122,7 +122,7 @@ }, "lint-staged": { "*.js": "eslint --fix", - "*.ts": "prettier --write --single-quote --print-width 120 --trailing-comma all --end-of-line lf --arrow-parens avoid" + "*.ts": "prettier --write" }, "commitlint": { "extends": [ @@ -152,5 +152,12 @@ ] ] } + }, + "prettier":{ + "singleQuote": true, + "printWidth": 120, + "trailingComma": "all", + "endOfLine": "lf", + "arrowParens": "avoid" } }