From ab05ccb846a7bce359cdef54c06982aad14b349f Mon Sep 17 00:00:00 2001 From: Dolan Miu Date: Sat, 10 Feb 2018 17:56:52 +0000 Subject: [PATCH] Simplify prettier command --- .prettierrc.yml | 5 +++++ package.json | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .prettierrc.yml diff --git a/.prettierrc.yml b/.prettierrc.yml new file mode 100644 index 00000000000..22bea3fde99 --- /dev/null +++ b/.prettierrc.yml @@ -0,0 +1,5 @@ +trailingComma: all +printWidth: 140 +tabWidth: 4 +arrowParens: always +bracketSpacing: true \ No newline at end of file diff --git a/package.json b/package.json index e65a2942ff3..51d37c9e42c 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,7 @@ "webpack": "rimraf ./build && webpack", "demo": "npm run build && node ./demo", "typedoc": "npm run build && typedoc --out docs/ src/ --module commonjs --target ES6 --disableOutputCheck", - "style": "prettier -l --trailing-comma all --print-width 140 --arrow-parens always \"src/**/*.ts\"", + "style": "prettier -l \"src/**/*.ts\"", "fix-types": "node types-absolute-fixer.js" }, "files": [