chore(Prettier): add settings for prettier plugin (#4756)

Co-authored-by: Papaia <43409674+Papaia@users.noreply.github.com>
This commit is contained in:
Tristan Guichaoua
2020-08-29 12:08:47 +02:00
committed by GitHub
parent 74763ef3fb
commit b48b782c87

View File

@@ -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"
}
}