mirror of
https://github.com/airbnb/javascript.git
synced 2026-01-14 08:38:08 -05:00
[eslint config] [base] [deps] update eslint
This commit is contained in:
@@ -49,7 +49,7 @@
|
||||
"babel-preset-airbnb": "^2.1.1",
|
||||
"babel-tape-runner": "^2.0.1",
|
||||
"editorconfig-tools": "^0.1.1",
|
||||
"eslint": "^3.12.2",
|
||||
"eslint": "^3.13.0",
|
||||
"eslint-find-rules": "^1.14.3",
|
||||
"eslint-plugin-import": "^2.2.0",
|
||||
"in-publish": "^2.0.0",
|
||||
@@ -57,7 +57,7 @@
|
||||
"tape": "^4.6.3"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"eslint": "^3.12.2",
|
||||
"eslint": "^3.13.0",
|
||||
"eslint-plugin-import": "^2.2.0"
|
||||
},
|
||||
"engines": {
|
||||
|
||||
@@ -108,6 +108,16 @@ module.exports = {
|
||||
ignoreReadBeforeAssign: true,
|
||||
}],
|
||||
|
||||
// Prefer destructuring from arrays and objects
|
||||
// http://eslint.org/docs/rules/prefer-destructuring
|
||||
// TODO: enable
|
||||
'prefer-destructuring': ['off', {
|
||||
array: true,
|
||||
object: true,
|
||||
}, {
|
||||
enforceForRenamedProperties: false,
|
||||
}],
|
||||
|
||||
// disallow parseInt() in favor of binary, octal, and hexadecimal literals
|
||||
// http://eslint.org/docs/rules/prefer-numeric-literals
|
||||
'prefer-numeric-literals': 'error',
|
||||
|
||||
Reference in New Issue
Block a user