eslint-config-kswedberg
Advanced tools
Comparing version
{ | ||
"name": "eslint-config-kswedberg", | ||
"version": "1.1.5", | ||
"version": "1.1.6", | ||
"description": "A shareable eslint config", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
module.exports.variables = { | ||
'no-delete-var': 'warn', | ||
'no-undef': 'warn', | ||
'no-use-before-define': 'warn', | ||
'no-delete-var': 'error', | ||
'no-undef': 'error', | ||
'no-use-before-define': 'error', | ||
}; | ||
@@ -62,19 +62,19 @@ | ||
], | ||
'brace-style': 'error', | ||
camelcase: 'error', | ||
'eol-last': 'error', | ||
'brace-style': 'warn', | ||
camelcase: 'warn', | ||
'eol-last': 'warn', | ||
'func-style': [ | ||
'error', | ||
'warn', | ||
'expression' | ||
], | ||
indent: [ | ||
'error', | ||
'warn', | ||
2 | ||
], | ||
'jsx-quotes': [ | ||
'error', | ||
'warn', | ||
'prefer-single' | ||
], | ||
'key-spacing': [ | ||
'error', | ||
'warn', | ||
{ | ||
@@ -85,3 +85,3 @@ afterColon: true | ||
'keyword-spacing': [ | ||
'error', | ||
'warn', | ||
{ | ||
@@ -133,13 +133,13 @@ overrides: { | ||
], | ||
'new-cap': 'error', | ||
'new-cap': 'warn', | ||
'no-array-constructor': 'warn', | ||
'no-lonely-if': 'error', | ||
'no-mixed-spaces-and-tabs': [ | ||
'error', | ||
'warn', | ||
'smart-tabs' | ||
], | ||
'no-multiple-empty-lines': 'warn', | ||
'no-trailing-spaces': 'error', | ||
'no-trailing-spaces': 'warn', | ||
'no-underscore-dangle': [ | ||
'error', | ||
'warn', | ||
{ | ||
@@ -151,5 +151,5 @@ allow: ['_this'], | ||
'no-unneeded-ternary': 'error', | ||
'no-whitespace-before-property': 'error', | ||
'no-whitespace-before-property': 'warn', | ||
'one-var': [ | ||
'error', | ||
'warn', | ||
{ | ||
@@ -180,7 +180,7 @@ initialized: 'never' | ||
quotes: [ | ||
'error', | ||
'warn', | ||
'single' | ||
], | ||
semi: [ | ||
'warn', | ||
'error', | ||
'always' | ||
@@ -194,3 +194,3 @@ ], | ||
'space-before-function-paren': [ | ||
'error', | ||
'warn', | ||
'never' | ||
@@ -197,0 +197,0 @@ ], |
5952
-0.2%