[eslint config] [base] [deps] update eslint

This commit is contained in:
Jordan Harband
2017-01-20 13:44:25 -08:00
parent 7b7ffc533d
commit 62a1edecdb
3 changed files with 12 additions and 2 deletions

View File

@@ -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": {

View File

@@ -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',

View File

@@ -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 }],