Skip to content

Commit

Permalink
eslint conf update
Browse files Browse the repository at this point in the history
  • Loading branch information
Khaaz committed Sep 5, 2018
1 parent dcdaa08 commit 12a549a
Showing 1 changed file with 91 additions and 27 deletions.
118 changes: 91 additions & 27 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,35 +1,29 @@
{
"env": {
"browser": true,
"es6": true,
"node": true,
"mongo": true
},
"extends": "eslint:recommended",
"parserOptions": {
"ecmaVersion": 8,
"ecmaFeatures": {
"jsx": true
},
"sourceType": "module"
},
"rules": {
"indent": [
"error",
4
],
"linebreak-style": [
"error",
"unix"
4,
{
"SwitchCase": 1
}
],
"linebreak-style": ["error", "unix"],
"quotes": [
"error",
"single"
],
"semi": [
"error",
"always"
"single",
{ "avoidEscape": true, "allowTemplateLiterals": true }
],
"semi": ["error", "always"],
"no-irregular-whitespace": [
"error",
{
Expand All @@ -39,10 +33,7 @@
"skipTemplates": true
}
],
"no-mixed-spaces-and-tabs": [
"error",
"smart-tabs"
],

"no-console": [
"error",
{
Expand All @@ -55,12 +46,8 @@
]
}
],
"prefer-const": [
"error"
],
"no-var": [
"error"
],
"prefer-const": ["error"],
"no-var": ["error"],
"no-use-before-define": [
"error",
{
Expand All @@ -69,10 +56,87 @@
"variables": true
}
],
"no-case-declarations": [
"error"
]
"no-case-declarations": ["error"],

"accessor-pairs": "warn",
"array-callback-return": "error",
"dot-location": ["error", "property"],
"dot-notation": "error",
"eqeqeq": "error",
"no-empty-function": "error",
"no-floating-decimal": "error",
"no-implied-eval": "error",
"no-invalid-this": "error",
"no-lone-blocks": "error",
"no-new-func": "error",
"no-new-wrappers": "error",
"no-new": "error",
"no-octal-escape": "error",
"no-return-assign": "error",
"no-self-compare": "error",
"no-sequences": "error",
"no-throw-literal": "error",
"no-unmodified-loop-condition": "error",
"no-useless-call": "error",
"no-useless-escape": "error",
"no-void": "error",
"wrap-iife": "error",
"yoda": "error",

"callback-return": "error",
"handle-callback-err": "error",

"array-bracket-spacing": "error",
"block-spacing": "error",
"brace-style": ["error", "1tbs", { "allowSingleLine": true }],
"comma-dangle": ["error", "always-multiline"],
"comma-spacing": "error",
"comma-style": "error",
"computed-property-spacing": "error",
"consistent-this": ["error", "$this"],
"eol-last": "error",
"keyword-spacing": "error",
"max-depth": "error",

"max-nested-callbacks": ["error", { "max": 4 }],
"max-statements-per-line": ["error", { "max": 2 }],
"new-cap": "error",
"newline-per-chained-call": ["error", { "ignoreChainWithDepth": 3 }],
"no-array-constructor": "error",
"no-lonely-if": "error",
"no-mixed-operators": "error",
"no-new-object": "error",
"no-spaced-func": "error",
"no-trailing-spaces": "error",
"no-unneeded-ternary": "error",
"no-whitespace-before-property": "error",
"object-curly-spacing": ["error", "always"],
"operator-assignment": "error",
"operator-linebreak": ["error", "before"],
"padded-blocks": ["error", "never"],
"quote-props": ["error", "as-needed"],

"no-mixed-spaces-and-tabs": ["error", "smart-tabs"],
"semi-spacing": "error",
"space-before-blocks": "error",
"space-before-function-paren": ["error", "never"],
"space-in-parens": "error",
"space-infix-ops": "error",
"space-unary-ops": "error",
"spaced-comment": ["error", "always"],
"yield-star-spacing": ["error", "after"],
"unicode-bom": "error",
"arrow-spacing": "error",

"object-shorthand": "error",
"arrow-body-style": "error",
"no-duplicate-imports": "error",
"no-useless-computed-key": "error",
"no-useless-constructor": "error",
"prefer-arrow-callback": "error",
"prefer-rest-params": "error",
"prefer-spread": "error",
"rest-spread-spacing": "error",
"template-curly-spacing": "error"
}
}

0 comments on commit 12a549a

Please sign in to comment.