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": [