Skip to content

Commit c6997e3

Browse files
greenkeeperio-botglebec
authored andcommitted
Update eslint to version 3.3.1 🚀 (#10)
* chore(package): update eslint to version 3.3.1 https://greenkeeper.io/ * add 3.3.1 rules
1 parent 8dfbb97 commit c6997e3

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.eslintrc.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,11 @@ rules: # http://eslint.org/docs/rules/
4444
no-prototype-builtins: 0 # Disallow use of `Object.prototypes` builtins directly
4545
no-regex-spaces: 2 # disallow multiple spaces in regular expression literals
4646
no-sparse-arrays: 2 # disallow sparse arrays
47+
no-template-curly-in-string: 1 # disallow template literal placeholder syntax in regular strings
4748
no-unexpected-multiline: 2 # disallow confusing multiline expressions
4849
no-unreachable: 2 # disallow unreachable code after `return`, `throw`, `continue`, and `break` statements
4950
no-unsafe-finally: 1 # disallow control flow statements in `finally` blocks
51+
no-unsafe-negation: 2 # disallow negating the left operand of relational operators
5052
use-isnan: 2 # require calls to `isNaN()` when checking for NaN
5153
valid-jsdoc: 0 # enforce valid JSDoc comments
5254
valid-typeof: 2 # enforce comparing `typeof` expressions against valid strings
@@ -77,6 +79,7 @@ rules: # http://eslint.org/docs/rules/
7779
no-extra-label: 1 # disallow unnecessary labels
7880
no-fallthrough: 1 # disallow fallthrough of `case` statements
7981
no-floating-decimal: 1 # disallow leading or trailing decimal points in numeric literals
82+
no-global-assign: 1 # disallow assignments to native objects or read-only global variables
8083
no-implicit-coercion: 0 # disallow shorthand type conversions
8184
no-implicit-globals: 0 # disallow `var` and named `function` declarations in the global scope
8285
no-implied-eval: 1 # disallow the use of `eval()`-like methods
@@ -100,7 +103,7 @@ rules: # http://eslint.org/docs/rules/
100103
no-redeclare: [1, {builtinGlobals: true}] # disallow `var` redeclaration
101104
no-return-assign: [1, 'always'] # disallow assignment operators in `return` statements
102105
no-script-url: 2 # disallow `javascript` urls
103-
no-self-assign: 2 # disallow assignments where both sides are exactly the same
106+
no-self-assign: [2, {props: true}] # disallow assignments where both sides are exactly the same
104107
no-self-compare: 2 # disallow comparisons where both sides are exactly the same
105108
no-sequences: 1 # disallow comma operators
106109
no-throw-literal: 1 # disallow throwing literals as exceptions
@@ -157,6 +160,7 @@ rules: # http://eslint.org/docs/rules/
157160
computed-property-spacing: 0 # enforce consistent spacing inside computed property brackets
158161
consistent-this: 0 # enforce consistent naming when capturing the current execution context
159162
eol-last: 1 # enforce at least one newline at the end of files
163+
func-call-spacing: 1 # require or disallow spacing between `function` identifiers and their invocations
160164
func-names: 0 # enforce named `function` expressions
161165
func-style: 0 # enforce the consistent use of either `function` declarations or expressions
162166
id-blacklist: 0 # disallow specified identifiers
@@ -213,6 +217,7 @@ rules: # http://eslint.org/docs/rules/
213217
require-jsdoc: 0 # require JSDoc comments
214218
semi: [0, 'always'] # require or disallow semicolons instead of ASI
215219
semi-spacing: 0 # enforce consistent spacing before and after semicolons
220+
sort-keys: 0 # requires object keys to be sorted
216221
sort-vars: 0 # require variables within the same declaration block to be sorted
217222
space-before-blocks: 0 # enforce consistent spacing before blocks
218223
space-before-function-paren: 0 # enforce consistent spacing before `function` definition opening parenthesis

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
},
3737
"devDependencies": {
3838
"chai": "^3.5.0",
39-
"eslint": "~3.2.0",
39+
"eslint": "~3.3.1",
4040
"mocha": "^3.0.0"
4141
}
4242
}

0 commit comments

Comments
 (0)