]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Upgrade ESlint to v1.7.3
authorChris Rebert <code@chrisrebert.com>
Tue, 31 May 2016 06:38:10 +0000 (23:38 -0700)
committerChris Rebert <code@chrisrebert.com>
Tue, 31 May 2016 06:42:22 +0000 (23:42 -0700)
Enable new rules:
* no-empty-pattern
* no-magic-numbers (exempting 0 and ±1)

Refs #19908

[skip sauce]
[skip validator]

js/.eslintrc
package.json

index e712f32474bcd94915a898dfe917f2c99654253e..813cd29a36711ad8dff61177b8d6c783c5c48409 100644 (file)
@@ -21,6 +21,7 @@
         "no-duplicate-case": 2,
         "no-empty": 2,
         "no-empty-character-class": 2,
+        "no-empty-pattern": 2,
         "no-ex-assign": 2,
         "no-extra-boolean-cast": 2,
         "no-extra-parens": 0,
@@ -29,6 +30,7 @@
         "no-inner-declarations": 2,
         "no-invalid-regexp": 2,
         "no-irregular-whitespace": 2,
+        "no-magic-numbers": [2, {"ignore": [-1, 0, 1]}],
         "no-negated-in-lhs": 2,
         "no-obj-calls": 2,
         "no-regex-spaces": 2,
index f4c96bb7bf921c1535f363834d4ab6ac01843796..c7d0d9538e72239ab620f0e248b13f8dcb62188d 100644 (file)
@@ -38,7 +38,7 @@
   "devDependencies": {
     "autoprefixer": "^6.0.3",
     "babel-eslint": "^4.1.3",
-    "eslint": "^1.5.1",
+    "eslint": "^1.7.3",
     "grunt": "^0.4.5",
     "grunt-babel": "^5.0.3",
     "grunt-build-control": "^0.6.0",