From 97dfffd2b0e5e61209a7811ed9b44a09c153baa0 Mon Sep 17 00:00:00 2001 From: Daniel Gasienica Date: Fri, 27 Apr 2018 18:15:17 -0400 Subject: [PATCH] Add `.prettierrc.js` --- .prettierrc.js | 4 ++++ package.json | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 .prettierrc.js diff --git a/.prettierrc.js b/.prettierrc.js new file mode 100644 index 0000000000..a425d3f761 --- /dev/null +++ b/.prettierrc.js @@ -0,0 +1,4 @@ +module.exports = { + singleQuote: true, + trailingComma: 'es5', +}; diff --git a/package.json b/package.json index bda3ea90cc..2b02623e91 100644 --- a/package.json +++ b/package.json @@ -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",