eslint-config-kswedberg
Advanced tools
Comparing version 1.4.3 to 2.0.0
{ | ||
"name": "eslint-config-kswedberg", | ||
"version": "1.4.3", | ||
"version": "2.0.0", | ||
"description": "A shareable eslint config", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -13,3 +13,3 @@ var rulesets = require('./rulesets'); | ||
parserOptions: { | ||
ecmaVersion: 6, | ||
ecmaVersion: 7, | ||
sourceType: 'module', | ||
@@ -16,0 +16,0 @@ ecmaFeatures: { |
@@ -9,4 +9,6 @@ # eslint config | ||
In the project's `.eslintrc.js` file* for linting _with_ es6 features enabled: | ||
Then, add the config to the project's `.eslintrc.js` file. | ||
For linting _with_ es6 features enabled: | ||
``` | ||
@@ -48,4 +50,1 @@ module.exports = { | ||
* Disable specific rules for next line: `// eslint-disable-next-line no-alert, quotes, semi` | ||
(This is a reverted release because last one should have been major but was minor) |
@@ -47,3 +47,3 @@ | ||
{ | ||
allowPattern: '^[a-z]*_[_a-z]*$' | ||
allowPattern: '^[a-z0-9]*_[_a-z0-9]*$' | ||
} | ||
@@ -54,5 +54,15 @@ ], | ||
'no-eq-null': 'off', | ||
'no-extend-native': 'error', | ||
'no-invalid-this': 'off', | ||
'no-multi-spaces': [ | ||
'warn', | ||
{ | ||
exceptions: { | ||
VariableDeclarator: true | ||
} | ||
} | ||
], | ||
'no-multi-str': 'warn', | ||
'no-redeclare': 'error', | ||
'no-useless-escape': 'warn', | ||
'no-with': 'warn', | ||
@@ -83,3 +93,6 @@ 'wrap-iife': [ | ||
'warn', | ||
2 | ||
2, | ||
{ | ||
MemberExpression: 'off' | ||
} | ||
], | ||
@@ -152,2 +165,3 @@ 'jsx-quotes': [ | ||
'no-multiple-empty-lines': 'warn', | ||
'no-nested-ternary': 'warn', | ||
'no-trailing-spaces': 'warn', | ||
@@ -161,3 +175,3 @@ 'no-underscore-dangle': [ | ||
], | ||
'no-unneeded-ternary': 'error', | ||
'no-unneeded-ternary': 'warn', | ||
'no-whitespace-before-property': 'warn', | ||
@@ -164,0 +178,0 @@ 'one-var': [ |
7155
311
49