eslint-config-kswedberg
Advanced tools
Comparing version 3.1.0 to 3.1.1
10
es5.js
@@ -1,3 +0,3 @@ | ||
var rulesets = require('./rulesets'); | ||
var rules = Object.assign( | ||
const rulesets = require('./rulesets'); | ||
const rules = Object.assign( | ||
{}, | ||
@@ -12,3 +12,3 @@ rulesets.variables, | ||
parserOptions: { | ||
ecmaVersion: 5 | ||
ecmaVersion: 5, | ||
}, | ||
@@ -22,6 +22,6 @@ env: { | ||
FM: true, | ||
Modernizr: false | ||
Modernizr: false, | ||
}, | ||
rules: rules | ||
rules: rules, | ||
}; |
@@ -18,3 +18,3 @@ const rulesets = require('./rulesets'); | ||
generators: false, | ||
} | ||
}, | ||
}, | ||
@@ -28,6 +28,6 @@ env: { | ||
globals: { | ||
Modernizr: false | ||
Modernizr: false, | ||
}, | ||
rules: rules | ||
rules: rules, | ||
}; |
{ | ||
"name": "eslint-config-kswedberg", | ||
"version": "3.1.0", | ||
"version": "3.1.1", | ||
"description": "A shareable eslint config", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
10
react.js
@@ -17,7 +17,7 @@ const rulesets = require('./rulesets'); | ||
jsx: true, | ||
impliedStrict: true | ||
} | ||
impliedStrict: true, | ||
}, | ||
}, | ||
plugins: [ | ||
'react' | ||
'react', | ||
], | ||
@@ -31,6 +31,6 @@ env: { | ||
FM: true, | ||
Modernizr: false | ||
Modernizr: false, | ||
}, | ||
rules: rules | ||
rules: rules, | ||
}; |
128
rulesets.js
@@ -46,4 +46,4 @@ | ||
{ | ||
allowPattern: '^[a-z0-9]*_[_a-z0-9]*$' | ||
} | ||
allowPattern: '^[a-z0-9]*_[_a-z0-9]*$', | ||
}, | ||
], | ||
@@ -67,5 +67,5 @@ eqeqeq: ['error', 'smart'], | ||
exceptions: { | ||
VariableDeclarator: true | ||
} | ||
} | ||
VariableDeclarator: true, | ||
}, | ||
}, | ||
], | ||
@@ -77,4 +77,4 @@ 'no-multi-str': 'warn', | ||
{ | ||
props: false | ||
} | ||
props: false, | ||
}, | ||
], | ||
@@ -104,3 +104,3 @@ 'no-proto': 'error', | ||
message: 'Use the exponentiation operator (**) instead.', | ||
} | ||
}, | ||
], | ||
@@ -119,3 +119,3 @@ 'no-return-assign': ['error', 'always'], | ||
allowTernary: false, | ||
} | ||
}, | ||
], | ||
@@ -129,4 +129,4 @@ 'no-useless-escape': 'warn', | ||
{ | ||
allowEmptyReject: true | ||
} | ||
allowEmptyReject: true, | ||
}, | ||
], | ||
@@ -152,4 +152,4 @@ 'wrap-iife': ['error', 'any'], | ||
exports: 'never', | ||
functions: 'ignore' | ||
} | ||
functions: 'ignore', | ||
}, | ||
], | ||
@@ -167,4 +167,4 @@ 'comma-spacing': ['error', {before: false, after: true}], | ||
{ | ||
MemberExpression: 0 | ||
} | ||
MemberExpression: 0, | ||
}, | ||
], | ||
@@ -176,4 +176,4 @@ 'jsx-quotes': ['warn', 'prefer-single'], | ||
beforeColon: false, | ||
afterColon: true | ||
} | ||
afterColon: true, | ||
}, | ||
], | ||
@@ -185,36 +185,36 @@ 'keyword-spacing': [ | ||
if: { | ||
after: true | ||
after: true, | ||
}, | ||
else: { | ||
after: true | ||
after: true, | ||
}, | ||
for: { | ||
after: true | ||
after: true, | ||
}, | ||
while: { | ||
after: true | ||
after: true, | ||
}, | ||
do: { | ||
after: true | ||
after: true, | ||
}, | ||
switch: { | ||
after: true | ||
after: true, | ||
}, | ||
case: { | ||
after: true | ||
after: true, | ||
}, | ||
return: { | ||
after: true | ||
after: true, | ||
}, | ||
try: { | ||
after: true | ||
after: true, | ||
}, | ||
catch: { | ||
after: true | ||
after: true, | ||
}, | ||
typeof: { | ||
after: true | ||
} | ||
} | ||
} | ||
after: true, | ||
}, | ||
}, | ||
}, | ||
], | ||
@@ -227,3 +227,3 @@ 'linebreak-style': ['warn', 'unix'], | ||
after: 'always', | ||
} | ||
}, | ||
], | ||
@@ -234,4 +234,4 @@ 'max-params': ['error', 5], | ||
{ | ||
newIsCap: true | ||
} | ||
newIsCap: true, | ||
}, | ||
], | ||
@@ -252,20 +252,48 @@ 'new-parens': 'warn', | ||
enforceInMethodNames: false, | ||
} | ||
}, | ||
], | ||
'no-unneeded-ternary': 'warn', | ||
'no-whitespace-before-property': 'warn', | ||
'padding-line-between-statements': [ | ||
'warn', | ||
{ | ||
blankLine: 'always', | ||
prev: ['const', 'let', 'var'], | ||
next: '*', | ||
}, | ||
{ | ||
blankLine: 'any', | ||
prev: ['const', 'let', 'var'], | ||
next: ['const', 'let', 'var'], | ||
}, | ||
{ | ||
blankLine: 'always', | ||
prev: '*', | ||
next: 'return', | ||
}, | ||
{ | ||
blankLine: 'always', | ||
prev: 'import', | ||
next: '*', | ||
}, | ||
{ | ||
blankLine: 'any', | ||
prev: 'import', | ||
next: 'import', | ||
}, | ||
], | ||
'one-var': [ | ||
'warn', | ||
{ | ||
initialized: 'never' | ||
} | ||
initialized: 'never', | ||
}, | ||
], | ||
'quote-props': ['warn', 'as-needed'], | ||
'newline-after-var': 'warn', | ||
'newline-before-return': 'warn', | ||
'newline-per-chained-call': [ | ||
'warn', | ||
{ | ||
ignoreChainWithDepth: 3 | ||
} | ||
ignoreChainWithDepth: 3, | ||
}, | ||
], | ||
@@ -285,4 +313,4 @@ 'object-curly-newline': ['warn', {consistent: true}], | ||
words: false, | ||
nonwords: false | ||
} | ||
nonwords: false, | ||
}, | ||
], | ||
@@ -295,4 +323,4 @@ | ||
markers: ['!'], | ||
exceptions: ['*', '-', '+'] | ||
} | ||
exceptions: ['*', '-', '+'], | ||
}, | ||
], | ||
@@ -308,3 +336,3 @@ | ||
svg: 'any', | ||
} | ||
}, | ||
], | ||
@@ -349,7 +377,7 @@ 'vue/html-closing-bracket-newline': 'warn', | ||
'OTHER_ATTR', | ||
] | ||
], | ||
] | ||
} | ||
] | ||
], | ||
}, | ||
], | ||
}; |
10
vue.js
@@ -19,3 +19,3 @@ // Requires vue eslint plugin: | ||
extends: [ | ||
'plugin:vue/essential' | ||
'plugin:vue/essential', | ||
], | ||
@@ -26,7 +26,7 @@ parserOptions: { | ||
ecmaFeatures: { | ||
impliedStrict: true | ||
} | ||
impliedStrict: true, | ||
}, | ||
}, | ||
plugins: [ | ||
'vue' | ||
'vue', | ||
], | ||
@@ -39,3 +39,3 @@ env: { | ||
rules: rules | ||
rules: rules, | ||
}; |
11913
475