Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXhmikosR <xhmikosr@gmail.com>2017-07-27 13:39:55 +0300
committerXhmikosR <xhmikosr@gmail.com>2017-08-23 00:05:38 +0300
commitef8c77d8dcebd13559a141e419d003c2d10cc5f3 (patch)
treefa0efba9d60de5570eeac2b7ae0262916d64401d /js/.eslintrc.json
parent0492c3a4cd0aed19f46c5472a54ee8700c1a328e (diff)
Tweak ESLint rules.
Diffstat (limited to 'js/.eslintrc.json')
-rw-r--r--js/.eslintrc.json8
1 files changed, 3 insertions, 5 deletions
diff --git a/js/.eslintrc.json b/js/.eslintrc.json
index 72029797a3..fdca9c1dd2 100644
--- a/js/.eslintrc.json
+++ b/js/.eslintrc.json
@@ -14,9 +14,8 @@
"rules": {
// Possible Errors
"no-await-in-loop": "error",
- "no-compare-neg-zero": "error",
"no-extra-parens": "error",
- "no-prototype-builtins": "off",
+ "no-prototype-builtins": "error",
"no-template-curly-in-string": "error",
"valid-jsdoc": "error",
@@ -85,7 +84,6 @@
"no-unused-expressions": "error",
"no-useless-call": "error",
"no-useless-concat": "error",
- "no-useless-escape": "error",
"no-useless-return": "off",
"no-void": "error",
"no-warning-comments": "off",
@@ -108,7 +106,7 @@
"no-shadow": "off",
"no-shadow-restricted-names": "error",
"no-undef-init": "error",
- "no-undefined": "off",
+ "no-undefined": "error",
"no-use-before-define": "off",
// Node.js and CommonJS
@@ -213,7 +211,7 @@
"wrap-regex": "off",
// ECMAScript 6
- "arrow-body-style": "off",
+ "arrow-body-style": ["error", "as-needed"],
"arrow-parens": "error",
"arrow-spacing": "error",
"generator-star-spacing": "error",