Skip to content

Commit

Permalink
add standard plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
UziTech committed May 4, 2019
1 parent bc835ae commit 387f08a
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
{
"plugins": [
"import",
"node",
"promise",
"standard"
],
"parserOptions": { "ecmaVersion": 5 },
"rules": {
"semi": ["error", "always"],
Expand Down Expand Up @@ -160,7 +166,23 @@
"valid-typeof": ["error", { "requireStringLiterals": true }],
"wrap-iife": ["error", "any", { "functionPrototypeMethods": true }],
"yield-star-spacing": ["error", "both"],
"yoda": ["error", "never"]
"yoda": ["error", "never"],

"import/export": "error",
"import/first": "error",
"import/no-duplicates": "error",
"import/no-named-default": "error",
"import/no-webpack-loader-syntax": "error",

"node/no-deprecated-api": "error",
"node/process-exit-as-throw": "error",

"promise/param-names": "error",

"standard/array-bracket-even-spacing": ["error", "either"],
"standard/computed-property-even-spacing": ["error", "even"],
"standard/no-callback-literal": "error",
"standard/object-curly-even-spacing": ["error", "either"]
},
"env": {
"node": true,
Expand Down

0 comments on commit 387f08a

Please sign in to comment.