Skip to content

Commit

Permalink
stricter linting
Browse files Browse the repository at this point in the history
additional rules
  • Loading branch information
vijithassar committed Jan 20, 2017
1 parent f5b2535 commit 80842f5
Showing 1 changed file with 33 additions and 3 deletions.
36 changes: 33 additions & 3 deletions eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
"ecmaFeatures": {"blockBindings": true},
"rules": {
"indent": ["warn", 4],
"no-unused-vars": ["error", { "argsIgnorePattern": "_" }],
"linebreak-style": ["error", "unix"],
"quotes": ["warn", "single"],
"semi": ["error", "always"],
"strict": ["error", "safe"],
"no-dupe-keys": "error",
"one-var": ["error", {
Expand All @@ -31,6 +31,8 @@
"eqeqeq": "error",
"dot-notation": "error",
"no-redeclare": "error",
"no-undef": "error",
"no-undefined": "error",
"radix": "error",
"vars-on-top": "error",
"no-trailing-spaces": "error",
Expand All @@ -40,7 +42,35 @@
"no-console": ["error", { "allow": ["warn", "error"] }],
"no-debugger": "error",
"no-use-before-define": "error",
"no-unused-vars": ["error", {"args": "none"}],
"no-native-reassign": ["error", {"exceptions": ["document", "window"]}]
"array-callback-return": "error",
"curly": ["error", "all"],
"no-eval": "error",
"no-extend-native": "error",
"no-multi-spaces": "error",
"no-new-func": "error",
"no-unused-expressions": "error",
"no-useless-escape": "error",
"no-cond-assign": ["error", "always"],
"no-extra-boolean-cast": "error",
"no-invalid-regexp": "error",
"no-irregular-whitespace": "error",
"valid-typeof": "error",
"brace-style": ["error", "1tbs"],
"no-global-assign": "error",
"no-template-curly-in-string": "error",
"func-call-spacing": ["error", "never"],
"no-unsafe-negation": "off",
"linebreak-style": ["error", "unix"],
"new-parens": "error",
"no-nested-ternary": "error",
"no-new-object": "error",
"no-unneeded-ternary": "error",
"operator-assignment": ["error", "always"],
"space-in-parens": ["error", "never"],
"arrow-body-style": ["error", "as-needed"],
"arrow-spacing": ["error", {"before": true, "after": true}],
"no-confusing-arrow": ["error", {"allowParens": true}],
"prefer-spread": "error",
"require-yield": "error"
}
}

0 comments on commit 80842f5

Please sign in to comment.