Skip to content
This repository has been archived by the owner on Mar 5, 2022. It is now read-only.

Commit

Permalink
Setup prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
murdos committed Oct 21, 2018
1 parent 6c8c9ff commit 49b8e45
Show file tree
Hide file tree
Showing 5 changed files with 686 additions and 626 deletions.
9 changes: 5 additions & 4 deletions .eslintrc.json
Expand Up @@ -3,16 +3,17 @@
"node": true,
"es6": true
},
"extends": ["airbnb-base"],
"extends": ["airbnb-base", "plugin:prettier/recommended"],
"rules": {
"prettier/prettier": "error",
"indent": [2, 4],
"linebreak-style": 0,
"eol-last": 2,
"quotes": [2, "single"],
"quotes": [2, "single", { "avoidEscape": true }],
"semi": [2, "always"],
"eqeqeq": [2, "smart"],
"no-use-before-define": [2, "nofunc"],
"no-unused-vars": [2, {"vars": "local", "args": "none"}],
"no-unused-vars": [2, { "vars": "local", "args": "none" }],
"no-multi-str": 2,
"no-irregular-whitespace": 2,
"comma-dangle": "off",
Expand All @@ -21,7 +22,7 @@
"class-methods-use-this": "off",
"no-underscore-dangle": "off",
"no-plusplus": "off",
"no-unused-expressions": [2, { "allowShortCircuit": true, "allowTernary": true } ],
"no-unused-expressions": [2, { "allowShortCircuit": true, "allowTernary": true }],
"prefer-destructuring": "off",

"no-multi-assign": "off",
Expand Down
9 changes: 9 additions & 0 deletions .prettierrc
@@ -0,0 +1,9 @@
# Prettier configuration

printWidth: 140
singleQuote: true
tabWidth: 4
useTabs: false

# js and ts rules:
arrowParens: avoid
2 changes: 2 additions & 0 deletions .prettirignore
@@ -0,0 +1,2 @@
node_modules
**/templates/**/

0 comments on commit 49b8e45

Please sign in to comment.