diff --git a/packages/eslint-config-airbnb-base/package.json b/packages/eslint-config-airbnb-base/package.json index b6e3da2c..988669c5 100644 --- a/packages/eslint-config-airbnb-base/package.json +++ b/packages/eslint-config-airbnb-base/package.json @@ -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": { diff --git a/packages/eslint-config-airbnb-base/rules/best-practices.js b/packages/eslint-config-airbnb-base/rules/best-practices.js index 5d35f674..2587bc55 100644 --- a/packages/eslint-config-airbnb-base/rules/best-practices.js +++ b/packages/eslint-config-airbnb-base/rules/best-practices.js @@ -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', diff --git a/packages/eslint-config-airbnb-base/rules/style.js b/packages/eslint-config-airbnb-base/rules/style.js index 9ea0f0f7..c02baa0f 100644 --- a/packages/eslint-config-airbnb-base/rules/style.js +++ b/packages/eslint-config-airbnb-base/rules/style.js @@ -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 }],