eslint-config-kswedberg
Advanced tools
@@ -1,2 +0,1 @@ | ||
// 0 == 'off', 1 == 'warn', 2 == 'error' | ||
var rulesets = require('./rulesets'); | ||
@@ -3,0 +2,0 @@ var rules = Object.assign( |
{ | ||
"name": "eslint-config-kswedberg", | ||
"version": "0.1.0", | ||
"version": "1.0.0", | ||
"description": "A shareable eslint config", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -0,1 +1,54 @@ | ||
module.exports.variables = { | ||
'no-delete-var': 2, | ||
'no-undef': 2, | ||
'no-use-before-define': 2, | ||
}; | ||
module.exports.possibleErrors = { | ||
'no-cond-assign': [ | ||
2, | ||
'except-parens' | ||
], | ||
'no-empty': 2, | ||
'no-extra-semi': 2, | ||
'no-inner-declarations': 1, | ||
'no-obj-calls': 2, | ||
}; | ||
module.exports.es6 = { | ||
'arrow-body-style': [ | ||
1, | ||
'always' | ||
], | ||
'no-class-assign': 2, | ||
'no-const-assign': 2, | ||
'no-duplicate-imports': 2, | ||
'no-this-before-super': 2, | ||
'no-confusing-arrow': 1, | ||
}; | ||
module.exports.bestPractices = { | ||
curly: [ | ||
2, | ||
'all' | ||
], | ||
'dot-notation': [ | ||
2, | ||
{ | ||
allowPattern: '^[a-z]*_[_a-z]*$' | ||
} | ||
], | ||
'no-caller': 2, | ||
'no-eq-null': 0, | ||
'no-invalid-this': 0, | ||
'no-multi-str': 2, | ||
'no-with': 2, | ||
'wrap-iife': 1, | ||
yoda: [ | ||
2, | ||
'never' | ||
], | ||
}; | ||
module.exports.stylistic = { | ||
@@ -119,2 +172,3 @@ 'array-bracket-spacing': [ | ||
], | ||
'semi-spacing': 1, | ||
'space-before-blocks': [ | ||
@@ -151,44 +205,1 @@ 1, | ||
}; | ||
module.exports.bestPractices = { | ||
curly: [ | ||
2, | ||
'all' | ||
], | ||
'dot-notation': [ | ||
2, | ||
{ | ||
allowPattern: '^[a-z]*_[_a-z]*$' | ||
} | ||
], | ||
'no-caller': 2, | ||
'no-eq-null': 0, | ||
'no-invalid-this': 0, | ||
'no-multi-str': 2, | ||
'no-with': 2, | ||
'wrap-iife': 1, | ||
yoda: [ | ||
2, | ||
'never' | ||
], | ||
}; | ||
module.exports.variables = { | ||
'no-delete-var': 2, | ||
'no-undef': 2, | ||
'no-use-before-define': 2, | ||
}; | ||
var possibleErrors = { | ||
'no-cond-assign': [ | ||
2, | ||
'except-parens' | ||
], | ||
'no-empty': 2, | ||
}; | ||
module.exports.es6 = { | ||
'no-class-assign': 2, | ||
'no-const-assign': 2, | ||
'no-duplicate-imports': 2, | ||
'no-this-before-super': 2 | ||
}; |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
4338
12.94%4
33.33%248
13.76%0
-100%