eslint-config-defaults
Advanced tools
Comparing version 3.1.0 to 4.0.0
@@ -1,5 +0,19 @@ | ||
## 3.0.3 (2015-07-06) | ||
## 4.0.0 (2015-08-07) | ||
#### User Facing Changes | ||
* Correct node value in airbnb node config | ||
* Remove environments - they are not generalizable enough to warrant specific config | ||
* Bring up to date with ESLint 1.0.0+ and eslint-plugin-react 3.1.0+ and airbnb 0.0.7 | ||
#### Internal Changes | ||
* Add attributions and a thank you section | ||
* Small README corrections | ||
* Add comments in base config to delineate plugins from core | ||
## 3.1.0 (2015-07-06) | ||
#### User Facing Changes | ||
* Turn off react/no-multi-comp in walmart config | ||
@@ -6,0 +20,0 @@ |
@@ -5,2 +5,3 @@ "use strict"; | ||
// ESLint Core | ||
var bestPractices = require("../rules/eslint/best-practices/airbnb.js"); | ||
@@ -14,2 +15,4 @@ var errors = require("../rules/eslint/errors/airbnb.js"); | ||
var variables = require("../rules/eslint/variables/airbnb.js"); | ||
// Plugins | ||
var react = require("../rules/react/airbnb.js"); | ||
@@ -16,0 +19,0 @@ |
@@ -5,2 +5,3 @@ "use strict"; | ||
// ESLint Core | ||
var bestPractices = require("../rules/eslint/best-practices/eslint.js"); | ||
@@ -7,0 +8,0 @@ var errors = require("../rules/eslint/errors/eslint.js"); |
@@ -5,2 +5,3 @@ "use strict"; | ||
// ESLint Core | ||
var bestPractices = require("../rules/eslint/best-practices/off.js"); | ||
@@ -7,0 +8,0 @@ var errors = require("../rules/eslint/errors/off.js"); |
@@ -6,4 +6,5 @@ "use strict"; | ||
module.exports = _.merge({}, | ||
require("./es5.js"), | ||
require("../../environments/browser.js") | ||
require("./es5.js"), { | ||
"env": { "browser": true } | ||
} | ||
); |
@@ -6,6 +6,6 @@ "use strict"; | ||
module.exports = _.merge({}, | ||
require("./es5.js"), | ||
require("../../environments/test.js"), { | ||
"env": { "mocha": true } | ||
require("./es5.js"), { | ||
"env": { "mocha": true }, | ||
"rules": { "max-nested-callbacks": 0 } | ||
} | ||
); |
@@ -5,2 +5,3 @@ "use strict"; | ||
// ESLint Core | ||
var bestPractices = require("../../rules/eslint/best-practices/walmart.js"); | ||
@@ -7,0 +8,0 @@ var errors = require("../../rules/eslint/errors/walmart.js"); |
@@ -6,4 +6,5 @@ "use strict"; | ||
module.exports = _.merge({}, | ||
require("./es6.js"), | ||
require("../../environments/browser.js") | ||
require("./es6.js"), { | ||
"env": { "browser": true } | ||
} | ||
); |
@@ -6,6 +6,6 @@ "use strict"; | ||
module.exports = _.merge({}, | ||
require("./es6.js"), | ||
require("../../environments/test.js"), { | ||
"env": { "mocha": true } | ||
require("./es6.js"), { | ||
"env": { "mocha": true }, | ||
"rules": { "max-nested-callbacks": 0 } | ||
} | ||
); |
@@ -17,3 +17,3 @@ { | ||
"version" : "3.1.0", | ||
"version" : "4.0.0", | ||
"author" : "Eric Baer <me@ericbaer.com>", | ||
@@ -20,0 +20,0 @@ |
@@ -25,3 +25,3 @@ <h1 align="center">eslint-config-defaults</h1> | ||
**This package is made for for ESLint 0.24.0+** | ||
**This package is made for for ESLint 1.0.0+ and eslint-plugin-react 3.1.0+ and [eslint-config-airbnb](https://www.npmjs.com/package/eslint-config-airbnb) 0.0.7** | ||
@@ -57,2 +57,3 @@ ### Full Configurations | ||
```yaml | ||
--- | ||
"extends": | ||
@@ -64,11 +65,4 @@ - "defaults/configurations/walmart/es6-browser" | ||
ESLint configuration is broken into two parts: `rules` and `environments` | ||
ESLint configuration is broken apart in `./rules` containing ESLint's rules and rules for specific ESLint plugins. The full set of ESLint rules (`./rules/eslint`) are broken into categories that mirror ESLint's documentation. Under each rule type there are sets of configuration as well as an `off.js` file which turns off every rule in the category. | ||
* Rules - The full set of ESLint rules are included in the project broken into categories that | ||
mirror the documentation. Under each rule type there are sets of configuration as well as an | ||
`off.js` file which turns off every rule in this category. | ||
* Environments - Environments are a collection of modifiers that amend a set of generic rules to run | ||
in specific environments like `browser` or `node`. | ||
###### Examples | ||
@@ -79,9 +73,2 @@ | ||
"extends": | ||
- "defaults/configurations/walmart/es6", | ||
- "defaults/environments/browser" | ||
``` | ||
```yaml | ||
--- | ||
"extends": | ||
- "defaults/rules/eslint/best-practices/walmart", | ||
@@ -98,2 +85,8 @@ - "defaults/rules/eslint/errors/airbnb" | ||
## And A Special Thanks To | ||
* [Nicholas C. Zakas](https://github.com/nzakas) for all the amazing work on [ESLint](https://github.com/eslint/eslint) | ||
* [Keith Cirkel](https://github.com/keithamus) for painstakingly formatting all of ESLint's rules into JSON in [eslint-config-strict](https://github.com/keithamus/eslint-config-strict) | ||
* [AirBnB](https://github.com/airbnb/javascript) for sharing all of their config in [JavaScript Style Guide](https://github.com/airbnb/javascript) | ||
*** | ||
@@ -100,0 +93,0 @@ |
@@ -47,4 +47,8 @@ "use strict"; | ||
"no-floating-decimal": 2, | ||
// disallow the type conversions with shorter notations | ||
"no-implicit-coercion": 0, | ||
// disallow use of eval()-like methods | ||
"no-implied-eval": 2, | ||
// disallow this keywords outside of classes or class-like objects | ||
"no-invalid-this": 0, | ||
// disallow usage of __iterator__ property | ||
@@ -95,2 +99,4 @@ "no-iterator": 2, | ||
"no-unused-expressions": 2, | ||
// disallow unnecessary .call() and .apply() | ||
"no-useless-call": 0, | ||
// disallow use of void operator | ||
@@ -97,0 +103,0 @@ "no-void": 0, |
@@ -12,19 +12,19 @@ "use strict"; | ||
// require return statements to either always or never specify values | ||
"consistent-return": 2, | ||
"consistent-return": 0, | ||
// specify curly brace conventions for all control statements | ||
"curly": [2, "all"], | ||
"curly": [0, "all"], | ||
// require default case in switch statements | ||
"default-case": 0, | ||
// encourages use of dot notation whenever possible | ||
"dot-notation": [2, { "allowKeywords": true }], | ||
"dot-notation": [0, { "allowKeywords": true }], | ||
// enforces consistent newlines before or after dots | ||
"dot-location": 0, | ||
// require the use of === and !== | ||
"eqeqeq": 2, | ||
"eqeqeq": 0, | ||
// make sure for-in loops have an if statement | ||
"guard-for-in": 0, | ||
// disallow the use of alert, confirm, and prompt | ||
"no-alert": 2, | ||
"no-alert": 0, | ||
// disallow use of arguments.caller or arguments.callee | ||
"no-caller": 2, | ||
"no-caller": 0, | ||
// disallow division operators explicitly at beginning of regular expression | ||
@@ -35,11 +35,11 @@ "no-div-regex": 0, | ||
// disallow use of labels for anything other then loops and switches | ||
"no-empty-label": 2, | ||
"no-empty-label": 0, | ||
// disallow comparisons to null without a type-checking operator | ||
"no-eq-null": 0, | ||
// disallow use of eval() | ||
"no-eval": 2, | ||
"no-eval": 0, | ||
// disallow adding to native types | ||
"no-extend-native": 2, | ||
"no-extend-native": 0, | ||
// disallow unnecessary function binding | ||
"no-extra-bind": 2, | ||
"no-extra-bind": 0, | ||
// disallow fallthrough of case statements | ||
@@ -49,24 +49,28 @@ "no-fallthrough": 2, | ||
"no-floating-decimal": 0, | ||
// disallow the type conversions with shorter notations | ||
"no-implicit-coercion": 0, | ||
// disallow use of eval()-like methods | ||
"no-implied-eval": 2, | ||
"no-implied-eval": 0, | ||
// disallow this keywords outside of classes or class-like objects | ||
"no-invalid-this": 0, | ||
// disallow usage of __iterator__ property | ||
"no-iterator": 2, | ||
"no-iterator": 0, | ||
// disallow use of labeled statements | ||
"no-labels": 2, | ||
"no-labels": 0, | ||
// disallow unnecessary nested blocks | ||
"no-lone-blocks": 2, | ||
"no-lone-blocks": 0, | ||
// disallow creation of functions within loops | ||
"no-loop-func": 2, | ||
"no-loop-func": 0, | ||
// disallow use of multiple spaces | ||
"no-multi-spaces": 2, | ||
"no-multi-spaces": 0, | ||
// disallow use of multiline strings | ||
"no-multi-str": 2, | ||
"no-multi-str": 0, | ||
// disallow reassignments of native objects | ||
"no-native-reassign": 2, | ||
"no-native-reassign": 0, | ||
// disallow use of new operator when not part of the assignment or comparison | ||
"no-new": 2, | ||
"no-new": 0, | ||
// disallow use of new operator for Function object | ||
"no-new-func": 2, | ||
"no-new-func": 0, | ||
// disallows creating new instances of String,Number, and Boolean | ||
"no-new-wrappers": 2, | ||
"no-new-wrappers": 0, | ||
// disallow use of (old style) octal literals | ||
@@ -76,3 +80,3 @@ "no-octal": 2, | ||
// var foo = "Copyright \251"; | ||
"no-octal-escape": 2, | ||
"no-octal-escape": 0, | ||
// disallow reassignment of function parameters | ||
@@ -83,17 +87,19 @@ "no-param-reassign": 0, | ||
// disallow usage of __proto__ property | ||
"no-proto": 2, | ||
"no-proto": 0, | ||
// disallow declaring the same variable more then once | ||
"no-redeclare": 2, | ||
// disallow use of assignment in return statement | ||
"no-return-assign": 2, | ||
"no-return-assign": 0, | ||
// disallow use of `javascript:` urls. | ||
"no-script-url": 2, | ||
"no-script-url": 0, | ||
// disallow comparisons where both sides are exactly the same | ||
"no-self-compare": 0, | ||
// disallow use of comma operator | ||
"no-sequences": 2, | ||
"no-sequences": 0, | ||
// restrict what can be thrown as an exception | ||
"no-throw-literal": 0, | ||
// disallow usage of expressions in statement position | ||
"no-unused-expressions": 2, | ||
"no-unused-expressions": 0, | ||
// disallow unnecessary .call() and .apply() | ||
"no-useless-call": 0, | ||
// disallow use of void operator | ||
@@ -104,3 +110,3 @@ "no-void": 0, | ||
// disallow use of the with statement | ||
"no-with": 2, | ||
"no-with": 0, | ||
// require use of the second argument for parseInt() | ||
@@ -113,4 +119,4 @@ "radix": 0, | ||
// require or disallow Yoda conditions | ||
"yoda": [2, "never"] | ||
"yoda": [0, "never"] | ||
} | ||
}; |
@@ -47,4 +47,8 @@ "use strict"; | ||
"no-floating-decimal": 0, | ||
// disallow the type conversions with shorter notations | ||
"no-implicit-coercion": 0, | ||
// disallow use of eval()-like methods | ||
"no-implied-eval": 0, | ||
// disallow this keywords outside of classes or class-like objects | ||
"no-invalid-this": 0, | ||
// disallow usage of __iterator__ property | ||
@@ -95,2 +99,4 @@ "no-iterator": 0, | ||
"no-unused-expressions": 0, | ||
// disallow unnecessary .call() and .apply() | ||
"no-useless-call": 0, | ||
// disallow use of void operator | ||
@@ -97,0 +103,0 @@ "no-void": 0, |
@@ -47,4 +47,8 @@ "use strict"; | ||
"no-floating-decimal": 0, | ||
// disallow the type conversions with shorter notations | ||
"no-implicit-coercion": 0, | ||
// disallow use of eval()-like methods | ||
"no-implied-eval": 2, | ||
// disallow this keywords outside of classes or class-like objects | ||
"no-invalid-this": 2, | ||
// disallow usage of __iterator__ property | ||
@@ -95,2 +99,4 @@ "no-iterator": 2, | ||
"no-unused-expressions": 2, | ||
// disallow unnecessary .call() and .apply() | ||
"no-useless-call": 2, | ||
// disallow use of void operator | ||
@@ -97,0 +103,0 @@ "no-void": 0, |
@@ -6,3 +6,3 @@ "use strict"; | ||
// disallow trailing commas in object literals | ||
"comma-dangle": [2, "never"], | ||
"comma-dangle": [2, "always-multiline"], | ||
// disallow assignment in conditional expressions | ||
@@ -33,3 +33,3 @@ "no-cond-assign": [2, "always"], | ||
// disallow unnecessary parentheses | ||
"no-extra-parens": 0, | ||
"no-extra-parens": [2, "functions"], | ||
// disallow unnecessary semicolons | ||
@@ -51,4 +51,2 @@ "no-extra-semi": 2, | ||
"no-regex-spaces": 2, | ||
// disallow reserved words being used as object literal keys | ||
"no-reserved-keys": 2, | ||
// disallow sparse arrays | ||
@@ -55,0 +53,0 @@ "no-sparse-arrays": 2, |
@@ -6,3 +6,3 @@ "use strict"; | ||
// disallow trailing commas in object literals | ||
"comma-dangle": 0, | ||
"comma-dangle": [2, "never"], | ||
// disallow assignment in conditional expressions | ||
@@ -50,4 +50,2 @@ "no-cond-assign": 2, | ||
"no-regex-spaces": 2, | ||
// disallow reserved words being used as object literal keys | ||
"no-reserved-keys": 0, | ||
// disallow sparse arrays | ||
@@ -54,0 +52,0 @@ "no-sparse-arrays": 2, |
@@ -49,4 +49,2 @@ "use strict"; | ||
"no-regex-spaces": 0, | ||
// disallow reserved words being used as object literal keys | ||
"no-reserved-keys": 0, | ||
// disallow sparse arrays | ||
@@ -53,0 +51,0 @@ "no-sparse-arrays": 0, |
@@ -49,4 +49,2 @@ "use strict"; | ||
"no-regex-spaces": 2, | ||
// disallow reserved words being used as object literal keys | ||
"no-reserved-keys": 0, | ||
// disallow sparse arrays | ||
@@ -53,0 +51,0 @@ "no-sparse-arrays": 2, |
@@ -26,2 +26,6 @@ "use strict"; | ||
"rules": { | ||
// require parens in arrow function arguments | ||
"arrow-parens": 0, | ||
// require space before/after arrow function's arrow | ||
"arrow-spacing": 0, | ||
// verify super() callings in constructors | ||
@@ -31,2 +35,6 @@ "constructor-super": 0, | ||
"generator-star-spacing": 0, | ||
// disallow modifying variables of class declarations | ||
"no-class-assign": 0, | ||
// disallow modifying variables that are declared using const | ||
"no-const-assign": 0, | ||
// disallow to use this/super before super() calling in constructors. | ||
@@ -39,4 +47,10 @@ "no-this-before-super": 0, | ||
// suggest using of const declaration for variables that are never modified after declared | ||
"prefer-const": 2 | ||
"prefer-const": 2, | ||
// suggest using the spread operator instead of .apply() | ||
"prefer-spread": 0, | ||
// suggest using Reflect methods where applicable | ||
"prefer-reflect": 0, | ||
// disallow generator functions that do not have yield | ||
"require-yield": 0 | ||
} | ||
}; |
@@ -11,2 +11,6 @@ "use strict"; | ||
"rules": { | ||
// require parens in arrow function arguments | ||
"arrow-parens": 0, | ||
// require space before/after arrow function's arrow | ||
"arrow-spacing": 0, | ||
// verify super() callings in constructors | ||
@@ -16,2 +20,6 @@ "constructor-super": 0, | ||
"generator-star-spacing": 0, | ||
// disallow modifying variables of class declarations | ||
"no-class-assign": 0, | ||
// disallow modifying variables that are declared using const | ||
"no-const-assign": 0, | ||
// disallow to use this/super before super() calling in constructors. | ||
@@ -24,4 +32,10 @@ "no-this-before-super": 0, | ||
// suggest using of const declaration for variables that are never modified after declared | ||
"prefer-const": 0 | ||
"prefer-const": 0, | ||
// suggest using the spread operator instead of .apply() | ||
"prefer-spread": 0, | ||
// suggest using Reflect methods where applicable | ||
"prefer-reflect": 0, | ||
// disallow generator functions that do not have yield | ||
"require-yield": 0 | ||
} | ||
}; |
@@ -11,2 +11,6 @@ "use strict"; | ||
"rules": { | ||
// require parens in arrow function arguments | ||
"arrow-parens": 0, | ||
// require space before/after arrow function's arrow | ||
"arrow-spacing": 0, | ||
// verify super() callings in constructors | ||
@@ -16,2 +20,6 @@ "constructor-super": 0, | ||
"generator-star-spacing": 0, | ||
// disallow modifying variables of class declarations | ||
"no-class-assign": 0, | ||
// disallow modifying variables that are declared using const | ||
"no-const-assign": 0, | ||
// disallow to use this/super before super() calling in constructors. | ||
@@ -24,4 +32,10 @@ "no-this-before-super": 0, | ||
// suggest using of const declaration for variables that are never modified after declared | ||
"prefer-const": 0 | ||
"prefer-const": 0, | ||
// suggest using the spread operator instead of .apply() | ||
"prefer-spread": 0, | ||
// suggest using Reflect methods where applicable | ||
"prefer-reflect": 0, | ||
// disallow generator functions that do not have yield | ||
"require-yield": 0 | ||
} | ||
}; |
@@ -11,2 +11,6 @@ "use strict"; | ||
"rules": { | ||
// require parens in arrow function arguments | ||
"arrow-parens": 2, | ||
// require space before/after arrow function's arrow | ||
"arrow-spacing": 2, | ||
// verify super() callings in constructors | ||
@@ -16,2 +20,6 @@ "constructor-super": 2, | ||
"generator-star-spacing": 2, | ||
// disallow modifying variables of class declarations | ||
"no-class-assign": 2, | ||
// disallow modifying variables that are declared using const | ||
"no-const-assign": 2, | ||
// disallow to use this/super before super() calling in constructors. | ||
@@ -24,4 +32,10 @@ "no-this-before-super": 2, | ||
// suggest using of const declaration for variables that are never modified after declared | ||
"prefer-const": 2 | ||
"prefer-const": 2, | ||
// suggest using the spread operator instead of .apply() | ||
"prefer-spread": 2, | ||
// suggest using Reflect methods where applicable | ||
"prefer-reflect": 0, | ||
// disallow generator functions that do not have yield | ||
"require-yield": 2 | ||
} | ||
}; |
@@ -5,5 +5,7 @@ "use strict"; | ||
"env": { | ||
"node": false | ||
"node": true | ||
}, | ||
"rules": { | ||
// enforce return after a callback | ||
"callback-return": 0, | ||
// enforces error handling in callbacks (node environment) | ||
@@ -18,3 +20,3 @@ "handle-callback-err": 0, | ||
// disallow process.exit() | ||
"no-process-exit": 2, | ||
"no-process-exit": 0, | ||
// restrict usage of specified node modules | ||
@@ -21,0 +23,0 @@ "no-restricted-modules": 0, |
@@ -8,2 +8,4 @@ "use strict"; | ||
"rules": { | ||
// enforce return after a callback | ||
"callback-return": 0, | ||
// enforces error handling in callbacks (node environment) | ||
@@ -18,3 +20,3 @@ "handle-callback-err": 0, | ||
// disallow process.exit() | ||
"no-process-exit": 2, | ||
"no-process-exit": 0, | ||
// restrict usage of specified node modules | ||
@@ -21,0 +23,0 @@ "no-restricted-modules": 0, |
@@ -8,2 +8,4 @@ "use strict"; | ||
"rules": { | ||
// enforce return after a callback | ||
"callback-return": 0, | ||
// enforces error handling in callbacks (node environment) | ||
@@ -10,0 +12,0 @@ "handle-callback-err": 0, |
@@ -8,2 +8,4 @@ "use strict"; | ||
"rules": { | ||
// enforce return after a callback | ||
"callback-return": 2, | ||
// enforces error handling in callbacks (node environment) | ||
@@ -10,0 +12,0 @@ "handle-callback-err": 0, |
@@ -5,4 +5,2 @@ "use strict"; | ||
"rules": { | ||
// (DEPRECATED) require or disallow the "use strict" pragma in the global scope | ||
"global-strict": 0, | ||
// require that all functions are run in strict mode | ||
@@ -9,0 +7,0 @@ "strict": [2, "never"] |
@@ -5,7 +5,5 @@ "use strict"; | ||
"rules": { | ||
// (DEPRECATED) require or disallow the "use strict" pragma in the global scope | ||
"global-strict": 0, | ||
// require that all functions are run in strict mode | ||
"strict": 2 | ||
"strict": 0 | ||
} | ||
}; |
@@ -5,4 +5,2 @@ "use strict"; | ||
"rules": { | ||
// (DEPRECATED) require or disallow the "use strict" pragma in the global scope | ||
"global-strict": 0, | ||
// require that all functions are run in strict mode | ||
@@ -9,0 +7,0 @@ "strict": 0 |
@@ -5,4 +5,2 @@ "use strict"; | ||
"rules": { | ||
// (DEPRECATED) require or disallow the "use strict" pragma in the global scope | ||
"global-strict": 0, | ||
// require that all functions are run in strict mode | ||
@@ -9,0 +7,0 @@ "strict": [2, "never"] |
@@ -16,5 +16,5 @@ "use strict"; | ||
// require or disallow padding inside computed properties | ||
"computed-property-spacing": [0, "never"], | ||
"computed-property-spacing": 0, | ||
// enforces consistent naming when capturing the current execution context | ||
"consistent-this": [0, "that"], | ||
"consistent-this": 0, | ||
// enforce newline at the end of file, with no multiple empty lines | ||
@@ -25,21 +25,23 @@ "eol-last": 2, | ||
// enforces use of function declarations or expressions | ||
"func-style": [0, "declaration"], | ||
"func-style": 0, | ||
// this option enforces minimum and maximum identifier lengths (variable names, property names etc.) | ||
"id-length": 0, | ||
// this option sets a specific tab width for your code | ||
"indent": [2, 2], | ||
// enforces spacing between keys and values in object literal properties | ||
"key-spacing": [2, { "beforeColon": false, "afterColon": true }], | ||
"key-spacing": [2, {"beforeColon": false, "afterColon": true}], | ||
// enforces empty lines around comments | ||
"lines-around-comment": 0, | ||
// disallow mixed "LF" and "CRLF" as linebreaks | ||
"linebreak-style": [0, "unix"], | ||
"linebreak-style": 0, | ||
// specify the maximum depth callbacks can be nested | ||
"max-nested-callbacks": [0, 2], | ||
"max-nested-callbacks": 0, | ||
// require a capital letter for constructors | ||
"new-cap": [2, {"newIsCap": true}], | ||
// disallow the omission of parentheses when invoking a constructor with no arguments | ||
"new-parens": 2, | ||
"new-parens": 0, | ||
// allow/disallow an empty newline after var statement | ||
"newline-after-var": 0, | ||
// disallow use of the Array constructor | ||
"no-array-constructor": 2, | ||
"no-array-constructor": 0, | ||
// disallow use of the continue statement | ||
@@ -52,3 +54,3 @@ "no-continue": 0, | ||
// disallow mixed spaces and tabs for indentation | ||
"no-mixed-spaces-and-tabs": [2, false], | ||
"no-mixed-spaces-and-tabs": 0, | ||
// disallow multiple empty lines | ||
@@ -71,7 +73,7 @@ "no-multiple-empty-lines": [2, {"max": 2}], | ||
// require or disallow padding inside curly braces | ||
"object-curly-spacing": [0, "never"], | ||
"object-curly-spacing": 0, | ||
// allow just one var statement per function | ||
"one-var": [2, "never"], | ||
// require assignment operator shorthand where possible or prohibit it entirely | ||
"operator-assignment": [0, "always"], | ||
"operator-assignment": 0, | ||
// enforce operators to be placed before or after line breaks | ||
@@ -85,2 +87,4 @@ "operator-linebreak": 0, | ||
"quotes": [2, "single", "avoid-escape"], | ||
// require identifiers to match the provided regular expression | ||
"id-match": 0, | ||
// enforce spacing before and after semicolons | ||
@@ -99,3 +103,3 @@ "semi-spacing": [2, {"before": false, "after": true}], | ||
// require or disallow spaces inside parentheses | ||
"space-in-parens": [0, "never"], | ||
"space-in-parens": 0, | ||
// require spaces around operators | ||
@@ -106,5 +110,8 @@ "space-infix-ops": 2, | ||
// Require or disallow spaces before/after unary operators | ||
"space-unary-ops": [2, { "words": true, "nonwords": false }], | ||
"space-unary-ops": 0, | ||
// require or disallow a space immediately following the // or /* in a comment | ||
"spaced-comment": 0, | ||
"spaced-comment": [2, "always", { | ||
"exceptions": ["-", "+"], | ||
"markers": ["=", "!"] // space here to support sprockets directives | ||
}], | ||
// require regex literals to be wrapped in parentheses | ||
@@ -111,0 +118,0 @@ "wrap-regex": 0 |
@@ -6,9 +6,9 @@ "use strict"; | ||
// enforce spacing inside array brackets | ||
"array-bracket-spacing": 0, | ||
"array-bracket-spacing": [0, "never"], | ||
// enforce one true brace style | ||
"brace-style": [0, "1tbs"], | ||
// require camel case names | ||
"camelcase": 2, | ||
"camelcase": 0, | ||
// enforce spacing before and after comma | ||
"comma-spacing": 2, | ||
"comma-spacing": 0, | ||
// enforce one true comma style | ||
@@ -21,3 +21,3 @@ "comma-style": 0, | ||
// enforce newline at the end of file, with no multiple empty lines | ||
"eol-last": 2, | ||
"eol-last": 0, | ||
// require function expressions to have a name | ||
@@ -27,6 +27,8 @@ "func-names": 0, | ||
"func-style": [0, "declaration"], | ||
// this option enforces minimum and maximum identifier lengths (variable names, property names etc.) | ||
"id-length": 0, | ||
// this option sets a specific tab width for your code | ||
"indent": 0, | ||
// enforces spacing between keys and values in object literal properties | ||
"key-spacing": [2, { "beforeColon": false, "afterColon": true }], | ||
"key-spacing": [0, { "beforeColon": false, "afterColon": true }], | ||
// enforces empty lines around comments | ||
@@ -39,9 +41,9 @@ "lines-around-comment": 0, | ||
// require a capital letter for constructors | ||
"new-cap": 2, | ||
"new-cap": 0, | ||
// disallow the omission of parentheses when invoking a constructor with no arguments | ||
"new-parens": 2, | ||
"new-parens": 0, | ||
// allow/disallow an empty newline after var statement | ||
"newline-after-var": 0, | ||
// disallow use of the Array constructor | ||
"no-array-constructor": 2, | ||
"no-array-constructor": 0, | ||
// disallow use of the continue statement | ||
@@ -60,11 +62,11 @@ "no-continue": 0, | ||
// disallow use of the Object constructor | ||
"no-new-object": 2, | ||
"no-new-object": 0, | ||
// disallow space between function identifier and application | ||
"no-spaced-func": 2, | ||
"no-spaced-func": 0, | ||
// disallow the use of ternary operators | ||
"no-ternary": 0, | ||
// disallow trailing whitespace at the end of lines | ||
"no-trailing-spaces": 2, | ||
"no-trailing-spaces": 0, | ||
// disallow dangling underscores in identifiers | ||
"no-underscore-dangle": 2, | ||
"no-underscore-dangle": 0, | ||
// disallow the use of Boolean literals in conditional expressions | ||
@@ -85,7 +87,9 @@ "no-unneeded-ternary": 0, | ||
// specify whether double or single quotes should be used | ||
"quotes": [2, "double"], | ||
"quotes": [0, "double"], | ||
// require identifiers to match the provided regular expression | ||
"id-match": 0, | ||
// enforce spacing before and after semicolons | ||
"semi-spacing": [2, {"before": false, "after": true}], | ||
// require or disallow use of semicolons instead of ASI | ||
"semi": 2, | ||
"semi": 0, | ||
// sort variables within the same declaration block | ||
@@ -102,7 +106,7 @@ "sort-vars": 0, | ||
// require spaces around operators | ||
"space-infix-ops": 2, | ||
"space-infix-ops": 0, | ||
// require a space after return, throw, and case | ||
"space-return-throw-case": 2, | ||
"space-return-throw-case": 0, | ||
// Require or disallow spaces before/after unary operators | ||
"space-unary-ops": [2, { "words": true, "nonwords": false }], | ||
"space-unary-ops": [0, { "words": true, "nonwords": false }], | ||
// require or disallow a space immediately following the // or /* in a comment | ||
@@ -109,0 +113,0 @@ "spaced-comment": 0, |
@@ -25,2 +25,4 @@ "use strict"; | ||
"func-style": 0, | ||
// this option enforces minimum and maximum identifier lengths (variable names, property names etc.) | ||
"id-length": 0, | ||
// this option sets a specific tab width for your code | ||
@@ -82,2 +84,4 @@ "indent": 0, | ||
"quotes": 0, | ||
// require identifiers to match the provided regular expression | ||
"id-match": 0, | ||
// enforce spacing before and after semicolons | ||
@@ -84,0 +88,0 @@ "semi-spacing": 0, |
@@ -25,2 +25,4 @@ "use strict"; | ||
"func-style": [2, "expression"], | ||
// this option enforces minimum and maximum identifier lengths (variable names, property names etc.) | ||
"id-length": 0, | ||
// this option sets a specific tab width for your code | ||
@@ -82,2 +84,4 @@ "indent": [2, 2], | ||
"quotes": [2, "double"], | ||
// require identifiers to match the provided regular expression | ||
"id-match": 0, | ||
// enforce spacing before and after semicolons | ||
@@ -84,0 +88,0 @@ "semi-spacing": [2, {"before": false, "after": true}], |
@@ -5,8 +5,10 @@ "use strict"; | ||
"rules": { | ||
// enforce or disallow variable initializations at definition | ||
"init-declarations": 0, | ||
// disallow the catch clause parameter name being the same as a variable in the outer scope | ||
"no-catch-shadow": 2, | ||
"no-catch-shadow": 0, | ||
// disallow deletion of variables | ||
"no-delete-var": 2, | ||
// disallow labels that share a name with a variable | ||
"no-label-var": 2, | ||
"no-label-var": 0, | ||
// disallow shadowing of names such as arguments | ||
@@ -17,3 +19,3 @@ "no-shadow-restricted-names": 2, | ||
// disallow use of undefined when initializing variables | ||
"no-undef-init": 2, | ||
"no-undef-init": 0, | ||
// disallow use of undeclared variables unless mentioned in a /*global */ block | ||
@@ -20,0 +22,0 @@ "no-undef": 2, |
@@ -5,14 +5,16 @@ "use strict"; | ||
"rules": { | ||
// enforce or disallow variable initializations at definition | ||
"init-declarations": 0, | ||
// disallow the catch clause parameter name being the same as a variable in the outer scope | ||
"no-catch-shadow": 2, | ||
"no-catch-shadow": 0, | ||
// disallow deletion of variables | ||
"no-delete-var": 2, | ||
// disallow labels that share a name with a variable | ||
"no-label-var": 2, | ||
"no-label-var": 0, | ||
// disallow shadowing of names such as arguments | ||
"no-shadow-restricted-names": 2, | ||
"no-shadow-restricted-names": 0, | ||
// disallow declaration of variables already declared in the outer scope | ||
"no-shadow": 2, | ||
"no-shadow": 0, | ||
// disallow use of undefined when initializing variables | ||
"no-undef-init": 2, | ||
"no-undef-init": 0, | ||
// disallow use of undeclared variables unless mentioned in a /*global */ block | ||
@@ -25,4 +27,4 @@ "no-undef": 2, | ||
// disallow use of variables before they are defined | ||
"no-use-before-define": 2 | ||
"no-use-before-define": 0 | ||
} | ||
}; |
@@ -5,2 +5,4 @@ "use strict"; | ||
"rules": { | ||
// enforce or disallow variable initializations at definition | ||
"init-declarations": 0, | ||
// disallow the catch clause parameter name being the same as a variable in the outer scope | ||
@@ -7,0 +9,0 @@ "no-catch-shadow": 0, |
@@ -5,2 +5,4 @@ "use strict"; | ||
"rules": { | ||
// enforce or disallow variable initializations at definition | ||
"init-declarations": 0, | ||
// disallow the catch clause parameter name being the same as a variable in the outer scope | ||
@@ -7,0 +9,0 @@ "no-catch-shadow": 2, |
"use strict"; | ||
module.exports = { | ||
"parser": "babel-eslint", | ||
"plugins": [ | ||
@@ -15,2 +16,6 @@ "react" | ||
"react/jsx-boolean-value": 2, | ||
// Enforce or disallow spaces inside of curly braces in JSX attributes | ||
"react/jsx-curly-spacing": 0 | ||
// Prevent duplicate props in JSX | ||
"react/jsx-no-duplicate-props": 0, | ||
// Disallow undeclared variables in JSX | ||
@@ -28,2 +33,4 @@ "react/jsx-no-undef": 2, | ||
"react/jsx-uses-vars": 2, | ||
// Prevent usage of dangerous JSX properties | ||
"react/no-danger": 0, | ||
// Prevent usage of setState in componentDidMount | ||
@@ -55,2 +62,3 @@ "react/no-did-mount-set-state": [2, "allow-in-func"], | ||
"defaultProps", | ||
"constructor", | ||
"getDefaultProps", | ||
@@ -57,0 +65,0 @@ "getInitialState", |
@@ -15,2 +15,6 @@ "use strict"; | ||
"react/jsx-boolean-value": 0, | ||
// Enforce or disallow spaces inside of curly braces in JSX attributes | ||
"react/jsx-curly-spacing": 0 | ||
// Prevent duplicate props in JSX | ||
"react/jsx-no-duplicate-props": 0, | ||
// Disallow undeclared variables in JSX | ||
@@ -28,2 +32,4 @@ "react/jsx-no-undef": 0, | ||
"react/jsx-uses-vars": 0, | ||
// Prevent usage of dangerous JSX properties | ||
"react/no-danger": 0, | ||
// Prevent usage of setState in componentDidMount | ||
@@ -30,0 +36,0 @@ "react/no-did-mount-set-state": 0, |
@@ -16,2 +16,6 @@ "use strict"; | ||
"react/jsx-boolean-value": 2, | ||
// Enforce or disallow spaces inside of curly braces in JSX attributes | ||
"react/jsx-curly-spacing": 0 | ||
// Prevent duplicate props in JSX | ||
"react/jsx-no-duplicate-props": 0, | ||
// Disallow undeclared variables in JSX | ||
@@ -29,2 +33,4 @@ "react/jsx-no-undef": 2, | ||
"react/jsx-uses-vars": 2, | ||
// Prevent usage of dangerous JSX properties | ||
"react/no-danger": 0, | ||
// Prevent usage of setState in componentDidMount | ||
@@ -31,0 +37,0 @@ "react/no-did-mount-set-state": 2, |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
81962
1994
53
92