mirror of
https://github.com/airbnb/javascript.git
synced 2026-01-14 02:58:03 -05:00
[eslint config] [*] [deps] update eslint-plugin-import, eslint to 3.6
This commit is contained in:
@@ -47,16 +47,16 @@
|
||||
"devDependencies": {
|
||||
"babel-preset-airbnb": "^2.0.0",
|
||||
"babel-tape-runner": "^2.0.1",
|
||||
"eslint": "^3.5.0",
|
||||
"eslint": "^3.6.0",
|
||||
"eslint-find-rules": "^1.13.2",
|
||||
"eslint-plugin-import": "^1.15.0",
|
||||
"eslint-plugin-import": "^1.16.0",
|
||||
"in-publish": "^2.0.0",
|
||||
"safe-publish-latest": "^1.1.0",
|
||||
"tape": "^4.6.0"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"eslint": "^3.5.0",
|
||||
"eslint-plugin-import": "^1.15.0"
|
||||
"eslint": "^3.6.0",
|
||||
"eslint-plugin-import": "^1.16.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 4"
|
||||
|
||||
@@ -15,7 +15,9 @@ module.exports = {
|
||||
|
||||
// enforce that class methods use "this"
|
||||
// http://eslint.org/docs/rules/class-methods-use-this
|
||||
'class-methods-use-this': 'error',
|
||||
'class-methods-use-this': ['error', {
|
||||
exceptMethods: [],
|
||||
}],
|
||||
|
||||
// require return statements to either always or never specify values
|
||||
'consistent-return': 'error',
|
||||
@@ -179,6 +181,12 @@ module.exports = {
|
||||
object: 'arguments',
|
||||
property: 'callee',
|
||||
message: 'arguments.callee is deprecated,'
|
||||
}, {
|
||||
property: '__defineGetter__',
|
||||
message: 'Please use Object.defineProperty instead.',
|
||||
}, {
|
||||
property: '__defineSetter__',
|
||||
message: 'Please use Object.defineProperty instead.',
|
||||
}],
|
||||
|
||||
// disallow use of assignment in return statement
|
||||
|
||||
@@ -138,5 +138,16 @@ module.exports = {
|
||||
// https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-absolute-path.md
|
||||
// TODO: enable, semver-major
|
||||
'import/no-absolute-path': ['off'],
|
||||
|
||||
// Forbid require() calls with expressions
|
||||
// https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-dynamic-require.md
|
||||
// TODO: enable, semver-major
|
||||
'import/no-dynamic-require': ['off'],
|
||||
|
||||
// prevent importing the submodules of other modules
|
||||
// https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-internal-modules.md
|
||||
'import/no-internal-modules': ['off', {
|
||||
allow: [],
|
||||
}],
|
||||
},
|
||||
};
|
||||
|
||||
@@ -26,7 +26,7 @@ module.exports = {
|
||||
'consistent-this': 'off',
|
||||
|
||||
// enforce newline at the end of file, with no multiple empty lines
|
||||
'eol-last': 'error',
|
||||
'eol-last': ['error', 'always'],
|
||||
|
||||
// enforce spacing between functions and their invocations
|
||||
// http://eslint.org/docs/rules/func-call-spacing
|
||||
|
||||
@@ -50,9 +50,9 @@
|
||||
"devDependencies": {
|
||||
"babel-preset-airbnb": "^2.0.0",
|
||||
"babel-tape-runner": "^2.0.1",
|
||||
"eslint": "^3.5.0",
|
||||
"eslint": "^3.6.0",
|
||||
"eslint-find-rules": "^1.13.2",
|
||||
"eslint-plugin-import": "^1.15.0",
|
||||
"eslint-plugin-import": "^1.16.0",
|
||||
"eslint-plugin-jsx-a11y": "^2.2.2",
|
||||
"eslint-plugin-react": "^6.3.0",
|
||||
"in-publish": "^2.0.0",
|
||||
@@ -61,9 +61,9 @@
|
||||
"tape": "^4.6.0"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"eslint": "^3.5.0",
|
||||
"eslint": "^3.6.0",
|
||||
"eslint-plugin-jsx-a11y": "^2.2.2",
|
||||
"eslint-plugin-import": "^1.15.0",
|
||||
"eslint-plugin-import": "^1.16.0",
|
||||
"eslint-plugin-react": "^6.3.0"
|
||||
},
|
||||
"engines": {
|
||||
|
||||
Reference in New Issue
Block a user