mirror of
https://github.com/airbnb/javascript.git
synced 2026-01-14 15:37:55 -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.13.0",
|
||||
"eslint": "^3.14.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.13.0",
|
||||
"eslint": "^3.14.0",
|
||||
"eslint-plugin-import": "^2.2.0"
|
||||
},
|
||||
"engines": {
|
||||
|
||||
@@ -253,6 +253,11 @@ module.exports = {
|
||||
// disallow use of the with statement
|
||||
'no-with': 'error',
|
||||
|
||||
// require using Error objects as Promise rejection reasons
|
||||
// http://eslint.org/docs/rules/prefer-promise-reject-errors
|
||||
// TODO: enable, semver-major
|
||||
'prefer-promise-reject-errors': ['off', { allowEmptyReject: true }],
|
||||
|
||||
// require use of the second argument for parseInt()
|
||||
radix: 'error',
|
||||
|
||||
|
||||
@@ -231,6 +231,11 @@ module.exports = {
|
||||
// disallow mixed spaces and tabs for indentation
|
||||
'no-mixed-spaces-and-tabs': 'error',
|
||||
|
||||
// disallow use of chained assignment expressions
|
||||
// http://eslint.org/docs/rules/no-multi-assign
|
||||
// TODO: enable, semver-minor
|
||||
'no-multi-assign': ['off'],
|
||||
|
||||
// disallow multiple empty lines and only one newline at the end
|
||||
'no-multiple-empty-lines': ['error', { max: 2, maxEOF: 1 }],
|
||||
|
||||
|
||||
Reference in New Issue
Block a user