Skip to content

Commit 62a1ede

Browse files
committed
[eslint config] [base] [deps] update eslint
1 parent 7b7ffc5 commit 62a1ede

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

packages/eslint-config-airbnb-base/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,15 @@
4949
"babel-preset-airbnb": "^2.1.1",
5050
"babel-tape-runner": "^2.0.1",
5151
"editorconfig-tools": "^0.1.1",
52-
"eslint": "^3.13.0",
52+
"eslint": "^3.14.0",
5353
"eslint-find-rules": "^1.14.3",
5454
"eslint-plugin-import": "^2.2.0",
5555
"in-publish": "^2.0.0",
5656
"safe-publish-latest": "^1.1.1",
5757
"tape": "^4.6.3"
5858
},
5959
"peerDependencies": {
60-
"eslint": "^3.13.0",
60+
"eslint": "^3.14.0",
6161
"eslint-plugin-import": "^2.2.0"
6262
},
6363
"engines": {

packages/eslint-config-airbnb-base/rules/best-practices.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,11 @@ module.exports = {
253253
// disallow use of the with statement
254254
'no-with': 'error',
255255

256+
// require using Error objects as Promise rejection reasons
257+
// http://eslint.org/docs/rules/prefer-promise-reject-errors
258+
// TODO: enable, semver-major
259+
'prefer-promise-reject-errors': ['off', { allowEmptyReject: true }],
260+
256261
// require use of the second argument for parseInt()
257262
radix: 'error',
258263

packages/eslint-config-airbnb-base/rules/style.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,11 @@ module.exports = {
231231
// disallow mixed spaces and tabs for indentation
232232
'no-mixed-spaces-and-tabs': 'error',
233233

234+
// disallow use of chained assignment expressions
235+
// http://eslint.org/docs/rules/no-multi-assign
236+
// TODO: enable, semver-minor
237+
'no-multi-assign': ['off'],
238+
234239
// disallow multiple empty lines and only one newline at the end
235240
'no-multiple-empty-lines': ['error', { max: 2, maxEOF: 1 }],
236241

0 commit comments

Comments
 (0)