prettier - Move prettier config from npm tasks to prettierrc.json

This commit is contained in:
2019-12-16 10:20:26 +05:30
parent 5fe2293f89
commit 3f0947a195
2 changed files with 5 additions and 1 deletions
+4
View File
@@ -0,0 +1,4 @@
{
"trailingComma": "es5",
"singleQuote": true
}
+1 -1
View File
@@ -19,7 +19,7 @@
"types": "lib/index", "types": "lib/index",
"scripts": { "scripts": {
"clean": "rimraf lib && rimraf coverage", "clean": "rimraf lib && rimraf coverage",
"format": "prettier --write \"{src,__tests__}/**/*.ts*\" --single-quote --trailing-comma es5", "format": "prettier --write \"{src,__tests__}/**/*.ts*\"",
"lint": "tslint --force --format verbose \"src/**/*.ts*\"", "lint": "tslint --force --format verbose \"src/**/*.ts*\"",
"prepublishOnly": "npm run build", "prepublishOnly": "npm run build",
"prebuild": "npm run clean && npm run format && npm run lint && echo Using TypeScript && tsc --version", "prebuild": "npm run clean && npm run format && npm run lint && echo Using TypeScript && tsc --version",