Browse Source

Merge "Upgraded eslint version"

Jenkins 3 years ago
parent
commit
f8d711cd54
2 changed files with 26 additions and 2 deletions
  1. 24
    0
      .eslintrc
  2. 2
    2
      package.json

+ 24
- 0
.eslintrc View File

@@ -229,6 +229,10 @@ rules:
229 229
   # http://eslint.org/docs/rules/no-caller
230 230
   no-caller: 2
231 231
 
232
+  # disallow lexical declarations in case clauses
233
+  # http://eslint.org/docs/rules/no-case-declarations
234
+  no-case-declarations: 0
235
+
232 236
   # Disallow division operators explicitly at beginning of regular expression
233 237
   # http://eslint.org/docs/rules/no-div-regex
234 238
   no-div-regex: 2
@@ -241,6 +245,10 @@ rules:
241 245
   # http://eslint.org/docs/rules/no-empty-label
242 246
   no-empty-label: 2
243 247
 
248
+  # disallow use of empty destructuring patterns
249
+  # http://eslint.org/docs/rules/no-empty-pattern
250
+  no-empty-pattern: 0
251
+
244 252
   # Disallow comparisons to null without a type-checking operator
245 253
   # http://eslint.org/docs/rules/no-eq-null
246 254
   no-eq-null: 2
@@ -293,6 +301,10 @@ rules:
293 301
   # http://eslint.org/docs/rules/no-loop-func
294 302
   no-loop-func: 2
295 303
 
304
+  # disallow the use of magic numbers
305
+  # http://eslint.org/docs/rules/no-magic-numbers
306
+  no-magic-numbers: 0
307
+
296 308
   # Disallow use of multiple spaces
297 309
   # http://eslint.org/docs/rules/no-multi-spaces
298 310
   no-multi-spaces: 2
@@ -648,6 +660,10 @@ rules:
648 660
     - 2
649 661
     - max: 1
650 662
 
663
+  # disallow negated conditions
664
+  # http://eslint.org/docs/rules/no-negated-condition
665
+  no-negated-condition: 0
666
+
651 667
   # Disallow nested ternary expressions
652 668
   # http://eslint.org/docs/rules/no-nested-ternary
653 669
   no-nested-ternary: 0
@@ -789,6 +805,10 @@ rules:
789 805
   #############################################################################
790 806
   # ECMAScript 6 (All Off)
791 807
   #############################################################################
808
+  # require braces in arrow function body
809
+  # http://eslint.org/docs/rules/arrow-body-style
810
+  arrow-body-style: 0
811
+
792 812
   # require parens in arrow function arguments
793 813
   # http://eslint.org/docs/rules/arrow-parens
794 814
   arrow-parens: 0
@@ -805,6 +825,10 @@ rules:
805 825
   # http://eslint.org/docs/rules/generator-star-spacing
806 826
   generator-star-spacing: 0
807 827
 
828
+  # disallow arrow functions where a condition is expected
829
+  # http://eslint.org/docs/rules/no-arrow-condition
830
+  no-arrow-condition: 0
831
+
808 832
   # disallow modifying variables of class declarations
809 833
   # http://eslint.org/docs/rules/no-class-assign
810 834
   no-class-assign: 0

+ 2
- 2
package.json View File

@@ -29,10 +29,10 @@
29 29
   },
30 30
   "homepage": "https://wiki.openstack.org/wiki/QA",
31 31
   "peerDependencies": {
32
-    "eslint": "^1.5.1"
32
+    "eslint": "^1.10.1"
33 33
   },
34 34
   "devDependencies": {
35
-    "eslint": "1.5.1",
35
+    "eslint": "1.10.1",
36 36
     "jasmine": "2.3.1"
37 37
   },
38 38
   "dependencies": {

Loading…
Cancel
Save