eslint-config-simbo
Advanced tools
Comparing version 0.2.0 to 1.0.0
136
default.js
@@ -30,2 +30,6 @@ 'use strict'; | ||
commonjs: false, | ||
// Globals common to both Node and Browser. | ||
'shared-node-browser': false, | ||
// enable all ECMAScript 6 features except for modules. | ||
es6: false, | ||
// web workers global variables. | ||
@@ -59,8 +63,14 @@ worker: false, | ||
applescript: false, | ||
// Java 8 Nashorn global variables. | ||
nashorn: false, | ||
// Service Worker global variables. | ||
serviceworker: false, | ||
// Atom test helper globals. | ||
atomtest: false, | ||
// Ember test helper globals. | ||
embertest: false, | ||
// enable all ECMAScript 6 features except for modules. | ||
es6: false | ||
// WebExtensions globals. | ||
webextensions: false, | ||
// GreaseMonkey globals. | ||
greasemonkey: false | ||
@@ -103,6 +113,6 @@ }, | ||
'no-duplicate-case': 2, | ||
// disallow empty statements (recommended) | ||
'no-empty': 2, | ||
// disallow the use of empty character classes in regular expressions (recommended) | ||
'no-empty-character-class': 2, | ||
// disallow empty statements (recommended) | ||
'no-empty': 2, | ||
// disallow assigning to the exception in a catch block (recommended) | ||
@@ -132,2 +142,4 @@ 'no-ex-assign': 2, | ||
'no-sparse-arrays': 2, | ||
// Avoid code that looks like two expressions but is actually one | ||
'no-unexpected-multiline': 2, | ||
// disallow unreachable statements after a return, throw, continue, or break statement (recommended) | ||
@@ -141,4 +153,2 @@ 'no-unreachable': 2, | ||
'valid-typeof': 2, | ||
// Avoid code that looks like two expressions but is actually one | ||
'no-unexpected-multiline': 2, | ||
@@ -155,2 +165,4 @@ | ||
'accessor-pairs': 2, | ||
// enforce return statements in callbacks of array methods | ||
'array-callback-return': 2, | ||
// treat var statements as if they were block scoped | ||
@@ -166,2 +178,4 @@ 'block-scoped-var': 2, | ||
'default-case': 2, | ||
// enforces consistent newlines before or after dots | ||
'dot-location': [2, 'property'], | ||
// encourages use of dot notation whenever possible | ||
@@ -171,4 +185,2 @@ 'dot-notation': [2, { | ||
}], | ||
// enforces consistent newlines before or after dots | ||
'dot-location': [2, 'property'], | ||
// require the use of === and !== (fixable) | ||
@@ -202,2 +214,4 @@ eqeqeq: [2, 'smart'], | ||
'no-implicit-coercion': 2, | ||
// disallow var and named function declarations in the global scope | ||
'no-implicit-globals': 0, | ||
// disallow use of eval()-like methods | ||
@@ -215,2 +229,4 @@ 'no-implied-eval': 2, | ||
'no-loop-func': 2, | ||
// disallow magic numbers | ||
'no-magic-numbers': 2, | ||
// disallow use of multiple spaces | ||
@@ -227,2 +243,4 @@ 'no-multi-spaces': [2, { | ||
'no-native-reassign': 2, | ||
// disallow use of the new operator when not part of an assignment or comparison | ||
'no-new': 2, | ||
// disallow use of new operator for Function object | ||
@@ -232,12 +250,8 @@ 'no-new-func': 2, | ||
'no-new-wrappers': 2, | ||
// disallow use of the new operator when not part of an assignment or comparison | ||
'no-new': 2, | ||
// disallow use of octal literals (recommended) | ||
'no-octal': 2, | ||
// disallow use of octal escape sequences in string literals, such as var foo = "Copyright \251"; | ||
'no-octal-escape': 2, | ||
// disallow use of octal literals (recommended) | ||
'no-octal': 2, | ||
// disallow reassignment of function parameters | ||
'no-param-reassign': 0, | ||
// disallow use of process.env | ||
'no-process-env': 0, | ||
// disallow usage of __proto__ property | ||
@@ -253,2 +267,4 @@ 'no-proto': 2, | ||
'no-script-url': 2, | ||
// disallow assignments where both sides are exactly the same | ||
'no-self-assign': 2, | ||
// disallow comparisons where both sides are exactly the same | ||
@@ -260,4 +276,8 @@ 'no-self-compare': 2, | ||
'no-throw-literal': 2, | ||
// disallow unmodified loop conditions | ||
'no-unmodified-loop-condition': 2, | ||
// disallow usage of expressions in statement position | ||
'no-unused-expressions': 2, | ||
// disallow unused labels | ||
'no-unused-labels': 2, | ||
// disallow unnecessary .call() and .apply() | ||
@@ -267,2 +287,4 @@ 'no-useless-call': 2, | ||
'no-useless-concat': 2, | ||
// disallow unnecessary escape characters | ||
'no-useless-escape': 2, | ||
// disallow use of the void operator | ||
@@ -311,10 +333,12 @@ 'no-void': 2, | ||
'no-label-var': 2, | ||
// disallow specified global variables | ||
'no-restricted-globals': 0, | ||
// disallow declaration of variables already declared in the outer scope | ||
'no-shadow': 2, | ||
// disallow shadowing of names such as arguments | ||
'no-shadow-restricted-names': 0, | ||
// disallow declaration of variables already declared in the outer scope | ||
'no-shadow': 0, | ||
// disallow use of undeclared variables unless mentioned in a /*global */ block (recommended) | ||
'no-undef': 2, | ||
// disallow use of undefined when initializing variables | ||
'no-undef-init': 0, | ||
// disallow use of undeclared variables unless mentioned in a /*global */ block (recommended) | ||
'no-undef': 2, | ||
// disallow use of undefined variable | ||
@@ -346,2 +370,4 @@ 'no-undefined': 0, | ||
'no-path-concat': 1, | ||
// disallow use of process.env | ||
'no-process-env': 1, | ||
// disallow process.exit() | ||
@@ -390,2 +416,4 @@ 'no-process-exit': 1, | ||
'func-style': 0, | ||
// disallow specified identifiers | ||
'id-blacklist': 0, | ||
// this option enforces minimum and maximum identifier lengths (variable names, property names etc.) | ||
@@ -415,2 +443,6 @@ 'id-length': [2, { | ||
}], | ||
// enforce consistent spacing before and after keywords | ||
'keyword-spacing': 2, | ||
// disallow mixed 'LF' and 'CRLF' as linebreaks | ||
'linebreak-style': [2, 'unix'], | ||
// enforce empty lines around comments | ||
@@ -420,6 +452,14 @@ 'lines-around-comment': [2, { | ||
}], | ||
// disallow mixed 'LF' and 'CRLF' as linebreaks | ||
'linebreak-style': [2, 'unix'], | ||
// specify the maximum depth that blocks can be nested | ||
'max-depth': [1, 4], | ||
// specify the maximum length of a line in your program | ||
'max-len': [1, 128, 4], | ||
// specify the maximum depth callbacks can be nested | ||
'max-nested-callbacks': [1, 5], | ||
// limits the number of parameters that can be used in the function declaration. | ||
'max-params': [1, 4], | ||
// specify the maximum number of statement allowed in a function | ||
'max-statements': [1, 10], | ||
// enforce a maximum number of statements allowed per line | ||
'max-statements-per-line': [1, 1], | ||
// require a capital letter for constructors | ||
@@ -434,4 +474,12 @@ 'new-cap': [2, { | ||
'newline-after-var': 0, | ||
// require an empty line before return statements | ||
'newline-before-return': 0, | ||
// require a newline after each call in a method chain | ||
'newline-per-chained-call': [1, { | ||
ignoreChainWithDepth: 2 | ||
}], | ||
// disallow use of the Array constructor | ||
'no-array-constructor': 2, | ||
// disallow use of bitwise operators | ||
'no-bitwise': 1, | ||
// disallow use of the continue statement | ||
@@ -447,2 +495,4 @@ 'no-continue': 0, | ||
'no-multiple-empty-lines': 2, | ||
// disallow negated conditions | ||
'no-negated-condition': 2, | ||
// disallow nested ternary expressions | ||
@@ -452,2 +502,4 @@ 'no-nested-ternary': 1, | ||
'no-new-object': 2, | ||
// disallow use of unary operators, ++ and -- | ||
'no-plusplus': 0, | ||
// disallow use of certain syntax in code | ||
@@ -468,3 +520,5 @@ 'no-restricted-syntax': 0, | ||
// require or disallow one variable declaration per function | ||
'one-var': 0, | ||
'one-var': 2, | ||
// require or disallow newlines around var declarations | ||
'one-var-declaration-per-line': 2, | ||
// require assignment operator shorthand where possible or prohibit it entirely | ||
@@ -482,2 +536,4 @@ 'operator-assignment': [2, 'always'], | ||
'require-jsdoc': 1, | ||
// require or disallow use of semicolons instead of ASI (fixable) | ||
semi: [2, 'always'], | ||
// enforce spacing before and after semicolons | ||
@@ -488,12 +544,6 @@ 'semi-spacing': [2, { | ||
}], | ||
// require or disallow use of semicolons instead of ASI (fixable) | ||
semi: [2, 'always'], | ||
// enforce sorted import declarations within module | ||
'sort-imports': 0, | ||
// sort variables within the same declaration block | ||
'sort-vars': [0, { | ||
ignoreCase: true | ||
}], | ||
// require a space after certain keywords (fixable) | ||
'space-after-keywords': [2, 'always'], | ||
// require a space before certain keywords (fixable) | ||
'space-before-keywords': [2, 'always'], | ||
'sort-vars': 0, | ||
// require or disallow a space before blocks (fixable) | ||
@@ -509,4 +559,2 @@ 'space-before-blocks': [2, 'always'], | ||
}], | ||
// require a space after return, throw, and case (fixable) | ||
'space-return-throw-case': 2, | ||
// require or disallow spaces before/after unary operators | ||
@@ -520,28 +568,6 @@ 'space-unary-ops': [2, { | ||
// require regex literals to be wrapped in parentheses | ||
'wrap-regex': 2, | ||
'wrap-regex': 2 | ||
/** | ||
* Legacy | ||
* ====== | ||
* The following rules are included for compatibility with JSHint and JSLint. | ||
* While the names of the rules may not match up with the JSHint/JSLint counterpart, | ||
* the functionality is the same. | ||
*/ | ||
// specify the maximum depth that blocks can be nested | ||
'max-depth': [1, 4], | ||
// specify the maximum length of a line in your program | ||
'max-len': [1, 128, 4], | ||
// limits the number of parameters that can be used in the function declaration. | ||
'max-params': [1, 4], | ||
// specify the maximum number of statement allowed in a function | ||
'max-statements': [1, 10], | ||
// disallow use of bitwise operators | ||
'no-bitwise': 1, | ||
// disallow use of unary operators, ++ and -- | ||
'no-plusplus': 0 | ||
} | ||
}; |
@@ -19,2 +19,4 @@ 'use strict'; | ||
// require braces around arrow function bodies | ||
'arrow-body-style': [2, 'as-needed'], | ||
// require parens in arrow function arguments | ||
@@ -21,0 +23,0 @@ 'arrow-parens': [2, 'always'], |
{ | ||
"name": "eslint-config-simbo", | ||
"version": "0.2.0", | ||
"version": "1.0.0", | ||
"description": "Simbo's ESLint config.", | ||
@@ -39,7 +39,7 @@ "main": "index.js", | ||
"devDependencies": { | ||
"codeclimate-test-reporter": "^0.1.1", | ||
"glob": "^5.0.14", | ||
"istanbul": "^0.3.21", | ||
"mocha": "^2.3.3" | ||
"codeclimate-test-reporter": "^0.3.1", | ||
"glob": "^7.0.3", | ||
"istanbul": "^0.4.3", | ||
"mocha": "^2.4.5" | ||
} | ||
} |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
26024
616
0