Upgraded eslint to 2.4.0
This upgrades the eslint version to 2.4.0, removes zombie rules, and ensures that all new rules are disabled. Change-Id: I6249663f8e226c5fa2739481b4c79625f94c7eb5
This commit is contained in:
parent
ed866bd401
commit
5bc48bf279
106
.eslintrc
106
.eslintrc
@ -183,6 +183,10 @@ rules:
|
|||||||
# http://eslint.org/docs/rules/accessor-pairs
|
# http://eslint.org/docs/rules/accessor-pairs
|
||||||
accessor-pairs: 2
|
accessor-pairs: 2
|
||||||
|
|
||||||
|
# Enforces return statements in callbacks of array’s methods
|
||||||
|
# http://eslint.org/docs/rules/array-callback-return
|
||||||
|
array-callback-return: 0
|
||||||
|
|
||||||
# Treat var statements as if they were block scoped
|
# Treat var statements as if they were block scoped
|
||||||
# http://eslint.org/docs/rules/block-scoped-var
|
# http://eslint.org/docs/rules/block-scoped-var
|
||||||
block-scoped-var: 2
|
block-scoped-var: 2
|
||||||
@ -241,9 +245,9 @@ rules:
|
|||||||
# http://eslint.org/docs/rules/no-else-return
|
# http://eslint.org/docs/rules/no-else-return
|
||||||
no-else-return: 0
|
no-else-return: 0
|
||||||
|
|
||||||
# Disallow use of labels for anything other then loops and switches
|
# Disallow use of empty functions
|
||||||
# http://eslint.org/docs/rules/no-empty-label
|
# http://eslint.org/docs/rules/no-empty-function
|
||||||
no-empty-label: 2
|
no-empty-function: 0
|
||||||
|
|
||||||
# disallow use of empty destructuring patterns
|
# disallow use of empty destructuring patterns
|
||||||
# http://eslint.org/docs/rules/no-empty-pattern
|
# http://eslint.org/docs/rules/no-empty-pattern
|
||||||
@ -265,6 +269,10 @@ rules:
|
|||||||
# http://eslint.org/docs/rules/no-extra-bind
|
# http://eslint.org/docs/rules/no-extra-bind
|
||||||
no-extra-bind: 2
|
no-extra-bind: 2
|
||||||
|
|
||||||
|
# disallow unnecessary labels
|
||||||
|
# http://eslint.org/docs/rules/no-extra-label
|
||||||
|
no-extra-label: 0
|
||||||
|
|
||||||
# Disallow fallthrough of case statements
|
# Disallow fallthrough of case statements
|
||||||
# http://eslint.org/docs/rules/no-fallthrough
|
# http://eslint.org/docs/rules/no-fallthrough
|
||||||
no-fallthrough: 2
|
no-fallthrough: 2
|
||||||
@ -277,6 +285,10 @@ rules:
|
|||||||
# http://eslint.org/docs/rules/no-implicit-coercion
|
# http://eslint.org/docs/rules/no-implicit-coercion
|
||||||
no-implicit-coercion: 0
|
no-implicit-coercion: 0
|
||||||
|
|
||||||
|
# disallow var and named functions in global scope
|
||||||
|
# http://eslint.org/docs/rules/no-implicit-globals
|
||||||
|
no-implicit-globals: 0
|
||||||
|
|
||||||
# Disallow use of eval()-like methods
|
# Disallow use of eval()-like methods
|
||||||
# http://eslint.org/docs/rules/no-implied-eval
|
# http://eslint.org/docs/rules/no-implied-eval
|
||||||
no-implied-eval: 2
|
no-implied-eval: 2
|
||||||
@ -365,6 +377,10 @@ rules:
|
|||||||
# http://eslint.org/docs/rules/no-script-url
|
# http://eslint.org/docs/rules/no-script-url
|
||||||
no-script-url: 2
|
no-script-url: 2
|
||||||
|
|
||||||
|
# Disallow assignments where both sides are exactly the same
|
||||||
|
# http://eslint.org/docs/rules/no-self-assign
|
||||||
|
no-self-assign: 0
|
||||||
|
|
||||||
# Disallow comparisons where both sides are exactly the same
|
# Disallow comparisons where both sides are exactly the same
|
||||||
# http://eslint.org/docs/rules/no-self-compare
|
# http://eslint.org/docs/rules/no-self-compare
|
||||||
no-self-compare: 2
|
no-self-compare: 2
|
||||||
@ -377,10 +393,18 @@ rules:
|
|||||||
# http://eslint.org/docs/rules/no-throw-literal
|
# http://eslint.org/docs/rules/no-throw-literal
|
||||||
no-throw-literal: 2
|
no-throw-literal: 2
|
||||||
|
|
||||||
|
# disallow unmodified conditions of loops
|
||||||
|
# http://eslint.org/docs/rules/no-unmodified-loop-condition
|
||||||
|
no-unmodified-loop-condition: 0
|
||||||
|
|
||||||
# Disallow usage of expressions in statement position
|
# Disallow usage of expressions in statement position
|
||||||
# http://eslint.org/docs/rules/no-unused-expressions
|
# http://eslint.org/docs/rules/no-unused-expressions
|
||||||
no-unused-expressions: 2
|
no-unused-expressions: 2
|
||||||
|
|
||||||
|
# disallow unused labels
|
||||||
|
# http://eslint.org/docs/rules/no-unused-labels
|
||||||
|
no-unused-labels: 0
|
||||||
|
|
||||||
# disallow unnecessary .call() and .apply()
|
# disallow unnecessary .call() and .apply()
|
||||||
# http://eslint.org/docs/rules/no-useless-call
|
# http://eslint.org/docs/rules/no-useless-call
|
||||||
no-useless-call: 0
|
no-useless-call: 0
|
||||||
@ -455,6 +479,10 @@ rules:
|
|||||||
# http://eslint.org/docs/rules/no-label-var
|
# http://eslint.org/docs/rules/no-label-var
|
||||||
no-label-var: 2
|
no-label-var: 2
|
||||||
|
|
||||||
|
# restrict usage of specified global variables
|
||||||
|
# http://eslint.org/docs/rules/no-restricted-globals
|
||||||
|
no-restricted-globals: 0
|
||||||
|
|
||||||
# Disallow shadowing of names such as arguments
|
# Disallow shadowing of names such as arguments
|
||||||
# http://eslint.org/docs/rules/no-shadow-restricted-names
|
# http://eslint.org/docs/rules/no-shadow-restricted-names
|
||||||
no-shadow-restricted-names: 2
|
no-shadow-restricted-names: 2
|
||||||
@ -578,6 +606,10 @@ rules:
|
|||||||
# http://eslint.org/docs/rules/func-style
|
# http://eslint.org/docs/rules/func-style
|
||||||
func-style: 0
|
func-style: 0
|
||||||
|
|
||||||
|
# blacklist certain identifiers to prevent them being used
|
||||||
|
# http://eslint.org/docs/rules/id-blacklist
|
||||||
|
id-blacklist: 0
|
||||||
|
|
||||||
# this option enforces minimum and maximum identifier lengths (variable names, property names...)
|
# this option enforces minimum and maximum identifier lengths (variable names, property names...)
|
||||||
# http://eslint.org/docs/rules/id-length
|
# http://eslint.org/docs/rules/id-length
|
||||||
id-length: 0
|
id-length: 0
|
||||||
@ -601,6 +633,10 @@ rules:
|
|||||||
# http://eslint.org/docs/rules/key-spacing
|
# http://eslint.org/docs/rules/key-spacing
|
||||||
key-spacing: 0
|
key-spacing: 0
|
||||||
|
|
||||||
|
# enforce spacing before and after keywords
|
||||||
|
# http://eslint.org/docs/rules/keyword-spacing
|
||||||
|
keyword-spacing: 0
|
||||||
|
|
||||||
# Enforces empty lines around comments
|
# Enforces empty lines around comments
|
||||||
# http://eslint.org/docs/rules/lines-around-comment
|
# http://eslint.org/docs/rules/lines-around-comment
|
||||||
lines-around-comment: 0
|
lines-around-comment: 0
|
||||||
@ -629,6 +665,14 @@ rules:
|
|||||||
# http://eslint.org/docs/rules/newline-after-var
|
# http://eslint.org/docs/rules/newline-after-var
|
||||||
newline-after-var: 0
|
newline-after-var: 0
|
||||||
|
|
||||||
|
# require newline before return statement
|
||||||
|
# http://eslint.org/docs/rules/newline-before-return
|
||||||
|
newline-before-return: 0
|
||||||
|
|
||||||
|
# enforce newline after each call when chaining the calls
|
||||||
|
# http://eslint.org/docs/rules/newline-per-chained-call
|
||||||
|
newline-per-chained-call: 0
|
||||||
|
|
||||||
# Disallow use of the Array constructor
|
# Disallow use of the Array constructor
|
||||||
# http://eslint.org/docs/rules/no-array-constructor
|
# http://eslint.org/docs/rules/no-array-constructor
|
||||||
no-array-constructor: 0
|
no-array-constructor: 0
|
||||||
@ -691,6 +735,10 @@ rules:
|
|||||||
# http://eslint.org/docs/rules/no-unneeded-ternary
|
# http://eslint.org/docs/rules/no-unneeded-ternary
|
||||||
no-unneeded-ternary: 2
|
no-unneeded-ternary: 2
|
||||||
|
|
||||||
|
# disallow whitespace before properties
|
||||||
|
# http://eslint.org/docs/rules/no-whitespace-before-property
|
||||||
|
no-whitespace-before-property: 0
|
||||||
|
|
||||||
# Require or disallow padding inside curly braces
|
# Require or disallow padding inside curly braces
|
||||||
# http://eslint.org/docs/rules/object-curly-spacing
|
# http://eslint.org/docs/rules/object-curly-spacing
|
||||||
object-curly-spacing: 0
|
object-curly-spacing: 0
|
||||||
@ -702,6 +750,10 @@ rules:
|
|||||||
- uninitialized: "always"
|
- uninitialized: "always"
|
||||||
initialized: "never"
|
initialized: "never"
|
||||||
|
|
||||||
|
# require or disallow an newline around variable declarations
|
||||||
|
# http://eslint.org/docs/rules/one-var-declaration-per-line
|
||||||
|
one-var-declaration-per-line: 0
|
||||||
|
|
||||||
# Prevent assignment operator shorthand where possible
|
# Prevent assignment operator shorthand where possible
|
||||||
# http://eslint.org/docs/rules/operator-assignment
|
# http://eslint.org/docs/rules/operator-assignment
|
||||||
operator-assignment:
|
operator-assignment:
|
||||||
@ -737,6 +789,10 @@ rules:
|
|||||||
- before: false
|
- before: false
|
||||||
after: true
|
after: true
|
||||||
|
|
||||||
|
# sort import declarations within module
|
||||||
|
# http://eslint.org/docs/rules/sort-imports
|
||||||
|
sort-imports: 0
|
||||||
|
|
||||||
# Require or disallow use of semicolons instead of ASI
|
# Require or disallow use of semicolons instead of ASI
|
||||||
# http://eslint.org/docs/rules/semi
|
# http://eslint.org/docs/rules/semi
|
||||||
semi:
|
semi:
|
||||||
@ -747,14 +803,6 @@ rules:
|
|||||||
# http://eslint.org/docs/rules/sort-vars
|
# http://eslint.org/docs/rules/sort-vars
|
||||||
sort-vars: 0
|
sort-vars: 0
|
||||||
|
|
||||||
# Require a space after certain keywords
|
|
||||||
# http://eslint.org/docs/rules/space-after-keywords
|
|
||||||
space-after-keywords: 2
|
|
||||||
|
|
||||||
# Require a space before certain keywords
|
|
||||||
# http://eslint.org/docs/rules/space-before-keywords
|
|
||||||
space-before-keywords: 0
|
|
||||||
|
|
||||||
# require or disallow space before blocks
|
# require or disallow space before blocks
|
||||||
# http://eslint.org/docs/rules/space-before-blocks
|
# http://eslint.org/docs/rules/space-before-blocks
|
||||||
space-before-blocks:
|
space-before-blocks:
|
||||||
@ -777,10 +825,6 @@ rules:
|
|||||||
# http://eslint.org/docs/rules/space-infix-ops
|
# http://eslint.org/docs/rules/space-infix-ops
|
||||||
space-infix-ops: 2
|
space-infix-ops: 2
|
||||||
|
|
||||||
# Require a space after return, throw, and case
|
|
||||||
# http://eslint.org/docs/rules/space-return-throw-case
|
|
||||||
space-return-throw-case: 2
|
|
||||||
|
|
||||||
# Require or disallow spaces before/after unary operators (words on by default, nonwords)
|
# Require or disallow spaces before/after unary operators (words on by default, nonwords)
|
||||||
# http://eslint.org/docs/rules/space-unary-ops
|
# http://eslint.org/docs/rules/space-unary-ops
|
||||||
space-unary-ops:
|
space-unary-ops:
|
||||||
@ -820,14 +864,14 @@ rules:
|
|||||||
# http://eslint.org/docs/rules/generator-star-spacing
|
# http://eslint.org/docs/rules/generator-star-spacing
|
||||||
generator-star-spacing: 0
|
generator-star-spacing: 0
|
||||||
|
|
||||||
# disallow arrow functions where a condition is expected
|
|
||||||
# http://eslint.org/docs/rules/no-arrow-condition
|
|
||||||
no-arrow-condition: 0
|
|
||||||
|
|
||||||
# disallow modifying variables of class declarations
|
# disallow modifying variables of class declarations
|
||||||
# http://eslint.org/docs/rules/no-class-assign
|
# http://eslint.org/docs/rules/no-class-assign
|
||||||
no-class-assign: 0
|
no-class-assign: 0
|
||||||
|
|
||||||
|
# disallow arrow functions where they could be confused with comparisons
|
||||||
|
# http://eslint.org/docs/rules/no-confusing-arrow
|
||||||
|
no-confusing-arrow: 0
|
||||||
|
|
||||||
# disallow modifying variables that are declared using const
|
# disallow modifying variables that are declared using const
|
||||||
# http://eslint.org/docs/rules/no-const-assign
|
# http://eslint.org/docs/rules/no-const-assign
|
||||||
no-const-assign: 0
|
no-const-assign: 0
|
||||||
@ -836,10 +880,22 @@ rules:
|
|||||||
# http://eslint.org/docs/rules/no-dupe-class-members
|
# http://eslint.org/docs/rules/no-dupe-class-members
|
||||||
no-dupe-class-members: 0
|
no-dupe-class-members: 0
|
||||||
|
|
||||||
|
# disallow use of the new operator with the Symbol object
|
||||||
|
# http://eslint.org/docs/rules/no-new-symbol
|
||||||
|
no-new-symbol: 0
|
||||||
|
|
||||||
|
# restrict usage of specified modules when loaded by import declaration
|
||||||
|
# http://eslint.org/docs/rules/no-restricted-imports
|
||||||
|
no-restricted-imports: 0
|
||||||
|
|
||||||
# disallow use of this/super before calling super() in constructors
|
# disallow use of this/super before calling super() in constructors
|
||||||
# http://eslint.org/docs/rules/no-this-before-super
|
# http://eslint.org/docs/rules/no-this-before-super
|
||||||
no-this-before-super: 0
|
no-this-before-super: 0
|
||||||
|
|
||||||
|
# disallow unnecessary constructor
|
||||||
|
# http://eslint.org/docs/rules/no-useless-constructor
|
||||||
|
no-useless-constructor: 0
|
||||||
|
|
||||||
# require let or const instead of var
|
# require let or const instead of var
|
||||||
# http://eslint.org/docs/rules/no-var
|
# http://eslint.org/docs/rules/no-var
|
||||||
no-var: 0
|
no-var: 0
|
||||||
@ -864,6 +920,10 @@ rules:
|
|||||||
# http://eslint.org/docs/rules/prefer-reflect
|
# http://eslint.org/docs/rules/prefer-reflect
|
||||||
prefer-reflect: 0
|
prefer-reflect: 0
|
||||||
|
|
||||||
|
# suggest using the rest parameters instead of arguments
|
||||||
|
# http://eslint.org/docs/rules/prefer-rest-params
|
||||||
|
prefer-rest-params: 0
|
||||||
|
|
||||||
# suggest using template literals instead of strings concatenation
|
# suggest using template literals instead of strings concatenation
|
||||||
# http://eslint.org/docs/rules/prefer-template
|
# http://eslint.org/docs/rules/prefer-template
|
||||||
prefer-template: 0
|
prefer-template: 0
|
||||||
@ -872,6 +932,14 @@ rules:
|
|||||||
# http://eslint.org/docs/rules/require-yield
|
# http://eslint.org/docs/rules/require-yield
|
||||||
require-yield: 0
|
require-yield: 0
|
||||||
|
|
||||||
|
# enforce spacing around embedded expressions of template strings
|
||||||
|
# http://eslint.org/docs/rules/template-curly-spacing
|
||||||
|
template-curly-spacing: 0
|
||||||
|
|
||||||
|
# enforce spacing around the * in yield* expressions
|
||||||
|
# http://eslint.org/docs/rules/yield-star-spacing
|
||||||
|
yield-star-spacing: 0
|
||||||
|
|
||||||
#############################################################################
|
#############################################################################
|
||||||
# Legacy
|
# Legacy
|
||||||
#############################################################################
|
#############################################################################
|
||||||
|
@ -29,10 +29,10 @@
|
|||||||
},
|
},
|
||||||
"homepage": "https://wiki.openstack.org/wiki/QA",
|
"homepage": "https://wiki.openstack.org/wiki/QA",
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"eslint": "^1.10.3"
|
"eslint": "^2.4.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"eslint": "1.10.3",
|
"eslint": "2.4.0",
|
||||||
"jasmine": "2.3.1"
|
"jasmine": "2.3.1"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user