Skip to content

Commit 5aa3e62

Browse files
greenkeeperio-botglebec
authored andcommitted
Update eslint to version 3.4.0 🚀 (#11)
* chore(package): update eslint to version 3.4.0 https://greenkeeper.io/ * support eslint 3.4.0 and refine existing rules
1 parent 8c0e1c9 commit 5aa3e62

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

.eslintrc.yml

+5-3
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ rules: # http://eslint.org/docs/rules/
5757
accessor-pairs: 2 # enforce getter and setter pairs in objects
5858
array-callback-return: 0 # enforce `return` statements in callbacks of array methods
5959
block-scoped-var: 0 # enforce the use of variables within the scope they are defined
60+
class-methods-use-this: 1 # enforce that class methods utilize `this`
6061
complexity: [1, {max: 8}] # enforce a maximum cyclomatic complexity allowed in a program
6162
consistent-return: 0 # require return statements to either always or never specify values
6263
curly: [1, 'multi-line', 'consistent'] # enforce consistent brace style for all control statements
@@ -118,7 +119,7 @@ rules: # http://eslint.org/docs/rules/
118119
no-with: 2 # disallow `with` statements
119120
radix: 1 # enforce the consistent use of the radix argument when using `parseInt()`
120121
vars-on-top: 0 # require `var` declarations be placed at the top of their containing scope
121-
wrap-iife: 1 # require parentheses around immediate function invocations
122+
wrap-iife: [1, 'any'] # require parentheses around immediate function invocations
122123
yoda: 0 # require or disallow “Yoda” conditions
123124

124125
# Strict Mode
@@ -140,7 +141,7 @@ rules: # http://eslint.org/docs/rules/
140141

141142
# Node.js and CommonJS
142143
callback-return: 0 # require `return` statements after callbacks
143-
global-require: 1 # require `require()` calls to be placed at top-level module scope
144+
global-require: 0 # require `require()` calls to be placed at top-level module scope
144145
handle-callback-err: [2, '^(err|error|.+Error$)'] # require error handling in max-nested-callbacks
145146
no-mixed-requires: 1 # disallow `require` calls to be mixed with regular `var` declarations
146147
no-new-require: 1 # disallow `new` operators with calls to `require`
@@ -212,7 +213,7 @@ rules: # http://eslint.org/docs/rules/
212213
operator-assignment: 0 # require or disallow assignment operator shorthand where possible
213214
operator-linebreak: 0 # enforce consistent linebreak style for operators
214215
padded-blocks: 0 # require or disallow padding within blocks
215-
quote-props: [2, 'as-needed'] # require quotes around object literal property names
216+
quote-props: [1, 'as-needed'] # require quotes around object literal property names
216217
quotes: [1, 'single', {avoidEscape: true, allowTemplateLiterals: true}] # enforce the consistent use of either backticks, double, or single quotes
217218
require-jsdoc: 0 # require JSDoc comments
218219
semi: [0, 'always'] # require or disallow semicolons instead of ASI
@@ -255,5 +256,6 @@ rules: # http://eslint.org/docs/rules/
255256
prefer-template: 0 # require template literals instead of string concatenation
256257
require-yield: 2 # require generator functions to contain `yield`
257258
sort-imports: 0 # enforce sorted import declarations within modules
259+
symbol-description: 1 # require symbol descriptions
258260
template-curly-spacing: 0 # require or disallow spacing around embedded expressions of template strings
259261
yield-star-spacing: 1 # require or disallow spacing around the `*` in `yield*` expressions

package.json

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

0 commit comments

Comments
 (0)