Add .prettierrc.js
This commit is contained in:
parent
7fff279aae
commit
97dfffd2b0
2 changed files with 5 additions and 1 deletions
4
.prettierrc.js
Normal file
4
.prettierrc.js
Normal file
|
@ -0,0 +1,4 @@
|
|||
module.exports = {
|
||||
singleQuote: true,
|
||||
trailingComma: 'es5',
|
||||
};
|
|
@ -43,7 +43,7 @@
|
|||
"jshint": "yarn grunt jshint",
|
||||
"lint": "yarn eslint && yarn grunt lint && yarn tslint",
|
||||
"tslint": "tslint --config tslint.json --format stylish --project .",
|
||||
"format": "prettier --single-quote --trailing-comma es5 --write \"*.js\" \"js/**/*.js\" \"ts/**/*.{ts,tsx}\" \"test/**/*.js\"",
|
||||
"format": "prettier --write \"*.js\" \"js/**/*.js\" \"ts/**/*.{ts,tsx}\" \"test/**/*.js\"",
|
||||
"transpile": "tsc",
|
||||
"clean-transpile": "rimraf ts/**/*.js ts/*.js",
|
||||
"open-coverage": "open coverage/lcov-report/index.html",
|
||||
|
|
Loading…
Reference in a new issue