eslint-config-egg
Advanced tools
Comparing version 3.0.1 to 3.0.2
3.0.2 / 2016-07-12 | ||
================== | ||
* fix: change rules that should not use (#15) | ||
3.0.1 / 2016-07-08 | ||
@@ -3,0 +8,0 @@ ================== |
@@ -12,3 +12,3 @@ 'use strict'; | ||
}, | ||
'extends': [ | ||
extends: [ | ||
'./lib/rules/es6', | ||
@@ -15,0 +15,0 @@ './lib/legacy', |
@@ -12,3 +12,3 @@ 'use strict'; | ||
}, | ||
'extends': [ | ||
extends: [ | ||
'./rules/best-practices', | ||
@@ -15,0 +15,0 @@ './rules/strict', |
@@ -133,3 +133,3 @@ 'use strict'; | ||
*/ | ||
'dot-notation': [ 'error', { allowKeywords: false }], | ||
'dot-notation': [ 'error', { allowKeywords: true }], | ||
@@ -457,32 +457,6 @@ /** | ||
/** | ||
* Disallow magic numbers | ||
* ‘Magic numbers’ are numbers that occur multiple time in | ||
* code without an explicit meaning. They should preferably | ||
* be replaced by named constants. | ||
* | ||
* Specially, these following patterns are permitted: | ||
* | ||
* 1. Array indexes | ||
* 2. Number declarations that use `const` keyword | ||
* 3. Setting object properties | ||
* | ||
* @see http://eslint.org/docs/rules/no-magic-numbers | ||
* @since 3.0.0 | ||
* @example | ||
* | ||
* ```js | ||
* // incorrect | ||
* const foo = bar + 60 * 60 * 1000 | ||
* | ||
* // correct | ||
* const hourInMs = 60 * 60 * 1000; | ||
* const foo = bar + hourInMs; | ||
* ``` | ||
*/ | ||
'no-magic-numbers': [ 'error', { | ||
ignore: [], | ||
ignoreArrayIndexes: true, | ||
enforceConst: true, | ||
detectObjects: false, | ||
}], | ||
'no-magic-numbers': 'off', | ||
@@ -615,6 +589,3 @@ /** | ||
*/ | ||
'no-unused-expressions': [ 'error', { | ||
allowShortCircuit: true, | ||
allowTernary: true, | ||
}], | ||
'no-unused-expressions': 'off', | ||
@@ -621,0 +592,0 @@ /** |
@@ -231,3 +231,3 @@ /** | ||
*/ | ||
'prefer-template': 'error', | ||
'prefer-template': 'off', | ||
@@ -234,0 +234,0 @@ /** |
@@ -154,5 +154,5 @@ 'use strict'; | ||
overrides: { | ||
'return': { after: true }, | ||
'throw': { after: true }, | ||
'case': { after: true }, | ||
return: { after: true }, | ||
throw: { after: true }, | ||
case: { after: true }, | ||
}, | ||
@@ -184,6 +184,3 @@ }], | ||
*/ | ||
'max-len': [ 'error', 100, 2, { | ||
ignoreUrls: true, | ||
ignoreComments: false, | ||
}], | ||
'max-len': 'off', | ||
@@ -422,3 +419,3 @@ /** | ||
*/ | ||
'quote-props': [ 'error', 'as-needed', { keywords: true }], | ||
'quote-props': [ 'error', 'as-needed', { keywords: false }], | ||
@@ -425,0 +422,0 @@ /** |
{ | ||
"name": "eslint-config-egg", | ||
"version": "3.0.1", | ||
"version": "3.0.2", | ||
"description": "Node Style Guide for Egg.", | ||
@@ -5,0 +5,0 @@ "main": "index", |
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
0
45968
1606