eslint-config-defaults
Advanced tools
Comparing version 4.0.1 to 4.0.2
@@ -0,1 +1,7 @@ | ||
## 4.0.2 (2015-08-17) | ||
#### Internal | ||
* Remove dependency on lodash in place of ESLint's merge | ||
## 4.0.1 (2015-08-07) | ||
@@ -2,0 +8,0 @@ |
"use strict"; | ||
var _ = require("lodash"); | ||
// ESLint Core | ||
var bestPractices = require("../rules/eslint/best-practices/airbnb.js"); | ||
var errors = require("../rules/eslint/errors/airbnb.js"); | ||
var es6 = require("../rules/eslint/es6/airbnb.js"); | ||
var legacy = require("../rules/eslint/legacy/airbnb.js"); | ||
var node = require("../rules/eslint/node/airbnb.js"); | ||
var strict = require("../rules/eslint/strict/airbnb.js"); | ||
var style = require("../rules/eslint/style/airbnb.js"); | ||
var variables = require("../rules/eslint/variables/airbnb.js"); | ||
// Plugins | ||
var react = require("../rules/react/airbnb.js"); | ||
var defaults = { | ||
module.exports = { | ||
"extends": [ | ||
"../rules/eslint/best-practices/airbnb.js", | ||
"../rules/eslint/errors/airbnb.js", | ||
"../rules/eslint/es6/airbnb.js", | ||
"../rules/eslint/legacy/airbnb.js", | ||
"../rules/eslint/node/airbnb.js", | ||
"../rules/eslint/strict/airbnb.js", | ||
"../rules/eslint/style/airbnb.js", | ||
"../rules/eslint/variables/airbnb.js", | ||
"../rules/react/airbnb.js" | ||
], | ||
"parser": "babel-eslint", | ||
@@ -31,14 +27,1 @@ "env": { | ||
}; | ||
module.exports = _.merge( | ||
defaults, | ||
bestPractices, | ||
errors, | ||
es6, | ||
legacy, | ||
node, | ||
strict, | ||
style, | ||
variables, | ||
react | ||
); |
"use strict"; | ||
var _ = require("lodash"); | ||
// ESLint Core | ||
var bestPractices = require("../rules/eslint/best-practices/eslint.js"); | ||
var errors = require("../rules/eslint/errors/eslint.js"); | ||
var es6 = require("../rules/eslint/es6/eslint.js"); | ||
var legacy = require("../rules/eslint/legacy/eslint.js"); | ||
var node = require("../rules/eslint/node/eslint.js"); | ||
var strict = require("../rules/eslint/strict/eslint.js"); | ||
var style = require("../rules/eslint/style/eslint.js"); | ||
var variables = require("../rules/eslint/variables/eslint.js"); | ||
var defaults = { | ||
module.exports = { | ||
"extends": [ | ||
"../rules/eslint/best-practices/eslint.js", | ||
"../rules/eslint/errors/eslint.js", | ||
"../rules/eslint/es6/eslint.js", | ||
"../rules/eslint/legacy/eslint.js", | ||
"../rules/eslint/node/eslint.js", | ||
"../rules/eslint/strict/eslint.js", | ||
"../rules/eslint/style/eslint.js", | ||
"../rules/eslint/variables/eslint.js" | ||
], | ||
"parser": "espree", | ||
@@ -28,13 +26,1 @@ "env": { | ||
}; | ||
module.exports = _.merge( | ||
defaults, | ||
bestPractices, | ||
errors, | ||
es6, | ||
legacy, | ||
node, | ||
strict, | ||
style, | ||
variables | ||
); |
"use strict"; | ||
var _ = require("lodash"); | ||
// ESLint Core | ||
var bestPractices = require("../rules/eslint/best-practices/off.js"); | ||
var errors = require("../rules/eslint/errors/off.js"); | ||
var es6 = require("../rules/eslint/es6/off.js"); | ||
var legacy = require("../rules/eslint/legacy/off.js"); | ||
var node = require("../rules/eslint/node/off.js"); | ||
var strict = require("../rules/eslint/strict/off.js"); | ||
var style = require("../rules/eslint/style/off.js"); | ||
var variables = require("../rules/eslint/variables/off.js"); | ||
var defaults = { | ||
module.exports = { | ||
"extends": [ | ||
"../rules/eslint/best-practices/off.js", | ||
"../rules/eslint/errors/off.js", | ||
"../rules/eslint/es6/off.js", | ||
"../rules/eslint/legacy/off.js", | ||
"../rules/eslint/node/off.js", | ||
"../rules/eslint/strict/off.js", | ||
"../rules/eslint/style/off.js", | ||
"../rules/eslint/variables/off.js" | ||
], | ||
"env": {}, | ||
@@ -21,13 +19,1 @@ "ecmaFeatures": {}, | ||
}; | ||
module.exports = _.merge( | ||
defaults, | ||
bestPractices, | ||
errors, | ||
es6, | ||
legacy, | ||
node, | ||
strict, | ||
style, | ||
variables | ||
); |
"use strict"; | ||
var _ = require("lodash"); | ||
module.exports = _.merge({}, | ||
require("./es5.js"), { | ||
"env": { "browser": true } | ||
module.exports = { | ||
"extends": "./es5.js", | ||
"env": { | ||
"browser": true | ||
} | ||
); | ||
}; | ||
"use strict"; | ||
var _ = require("lodash"); | ||
module.exports = _.merge({}, | ||
require("./es5.js"), | ||
require("../../rules/eslint/node/walmart.js"), { | ||
"rules": { | ||
"strict": [2, "global"] | ||
} | ||
module.exports = { | ||
"extends": [ | ||
"./es5.js", | ||
"../../rules/eslint/node/walmart.js" | ||
], | ||
"rules": { | ||
"strict": [2, "global"] | ||
} | ||
); | ||
}; |
"use strict"; | ||
var _ = require("lodash"); | ||
module.exports = _.merge({}, | ||
require("./es5.js"), { | ||
"env": { "mocha": true }, | ||
"rules": { "max-nested-callbacks": 0 } | ||
} | ||
); | ||
module.exports = { | ||
"extends": [ | ||
"./es5.js" | ||
], | ||
"env": { | ||
"mocha": true | ||
}, | ||
"rules": { | ||
"max-nested-callbacks": 0 | ||
} | ||
}; |
"use strict"; | ||
var _ = require("lodash"); | ||
// ESLint Core | ||
var bestPractices = require("../../rules/eslint/best-practices/walmart.js"); | ||
var errors = require("../../rules/eslint/errors/walmart.js"); | ||
var es6 = require("../../rules/eslint/es6/off.js"); | ||
var legacy = require("../../rules/eslint/legacy/walmart.js"); | ||
var node = require("../../rules/eslint/node/off.js"); | ||
var strict = require("../../rules/eslint/strict/walmart.js"); | ||
var style = require("../../rules/eslint/style/walmart.js"); | ||
var variables = require("../../rules/eslint/variables/walmart.js"); | ||
var defaults = { | ||
module.exports = { | ||
"extends": [ | ||
"../../rules/eslint/best-practices/walmart.js", | ||
"../../rules/eslint/errors/walmart.js", | ||
"../../rules/eslint/es6/off.js", | ||
"../../rules/eslint/legacy/walmart.js", | ||
"../../rules/eslint/node/off.js", | ||
"../../rules/eslint/strict/walmart.js", | ||
"../../rules/eslint/style/walmart.js", | ||
"../../rules/eslint/variables/walmart.js" | ||
], | ||
"env": {}, | ||
@@ -25,13 +23,1 @@ "ecmaFeatures": {}, | ||
}; | ||
module.exports = _.merge( | ||
defaults, | ||
bestPractices, | ||
errors, | ||
es6, | ||
legacy, | ||
node, | ||
strict, | ||
style, | ||
variables | ||
); |
"use strict"; | ||
var _ = require("lodash"); | ||
module.exports = { | ||
"extends": "./es6.js", | ||
module.exports = _.merge({}, | ||
require("./es6.js"), { | ||
"env": { "browser": true } | ||
"env": { | ||
"browser": true | ||
} | ||
); | ||
}; |
"use strict"; | ||
var _ = require("lodash"); | ||
module.exports = _.merge({}, | ||
require("./es6.js"), | ||
require("../../rules/eslint/node/walmart.js") | ||
); | ||
module.exports = { | ||
"extends": [ | ||
"./es6.js", | ||
"../../rules/eslint/node/walmart.js" | ||
] | ||
}; |
"use strict"; | ||
var _ = require("lodash"); | ||
module.exports = _.merge({}, | ||
require("./es6.js"), | ||
require("../../rules/react/walmart.js"), { | ||
"globals": { | ||
"fetch": false // Expect a `fetch` polyfill. | ||
}, | ||
"rules": { | ||
"no-extra-parens": 0, // Want `return (<Foo />);` to be allowed. | ||
"no-var": 2 | ||
} | ||
module.exports = { | ||
"extends": [ | ||
"./es6.js", | ||
"../../rules/react/walmart.js" | ||
], | ||
"globals": { | ||
"fetch": false | ||
}, | ||
"rules": { | ||
"no-extra-parens": 0, | ||
"no-var": 2 | ||
} | ||
); | ||
}; |
"use strict"; | ||
var _ = require("lodash"); | ||
module.exports = _.merge({}, | ||
require("./es6.js"), { | ||
"env": { "mocha": true }, | ||
"rules": { "max-nested-callbacks": 0 } | ||
} | ||
); | ||
module.exports = { | ||
"extends": "./es6.js", | ||
"env": { | ||
"mocha": true | ||
}, | ||
"rules": { | ||
"max-nested-callbacks": 0 | ||
} | ||
}; |
"use strict"; | ||
var _ = require("lodash"); | ||
module.exports = _.merge({}, | ||
require("./es5.js"), | ||
require("../../rules/eslint/es6/walmart.js"), { | ||
"rules": { | ||
// All current React builds use Webpack, which bundle CommonJS or AMD style code into a | ||
// function. If using a _different_ build solution that goes to global scope, you may need to | ||
// override and tweak this option. | ||
"strict": [2, "global"] | ||
} | ||
module.exports = { | ||
"extends": [ | ||
"./es5.js", | ||
"../../rules/eslint/es6/walmart.js" | ||
], | ||
"rules": { | ||
"strict": [2, "global"] | ||
} | ||
); | ||
}; |
@@ -17,3 +17,3 @@ { | ||
"version" : "4.0.1", | ||
"version" : "4.0.2", | ||
"author" : "Eric Baer <me@ericbaer.com>", | ||
@@ -30,3 +30,2 @@ | ||
"dependencies": { | ||
"lodash": "3.10.0" | ||
}, | ||
@@ -33,0 +32,0 @@ |
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
0
80292
1952
- Removedlodash@3.10.0
- Removedlodash@3.10.0(transitive)