diff --git a/packages/eslint-config-airbnb/rules/best-practices.js b/packages/eslint-config-airbnb/rules/best-practices.js index a103d6c4..adda7f6e 100644 --- a/packages/eslint-config-airbnb/rules/best-practices.js +++ b/packages/eslint-config-airbnb/rules/best-practices.js @@ -104,6 +104,16 @@ module.exports = { 'no-proto': 2, // disallow declaring the same variable more then once 'no-redeclare': 2, + // disallow certain syntax forms + // http://eslint.org/docs/rules/no-restricted-syntax + 'no-restricted-syntax': [ + 2, + 'BreakStatement', + 'DebuggerStatement', + 'ForInStatement', + 'LabeledStatement', + 'WithStatement', + ], // disallow use of assignment in return statement 'no-return-assign': 2, // disallow use of `javascript:` urls.