Add `.prettierrc.js`

This commit is contained in:
Daniel Gasienica 2018-04-27 18:15:17 -04:00
parent 7fff279aae
commit 97dfffd2b0
2 changed files with 5 additions and 1 deletions

4
.prettierrc.js Normal file
View File

@ -0,0 +1,4 @@
module.exports = {
singleQuote: true,
trailingComma: 'es5',
};

View File

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