diff --git a/packages/eslint-config-airbnb-base/rules/style.js b/packages/eslint-config-airbnb-base/rules/style.js index a6617129..5da9f34f 100644 --- a/packages/eslint-config-airbnb-base/rules/style.js +++ b/packages/eslint-config-airbnb-base/rules/style.js @@ -135,7 +135,12 @@ module.exports = { 'multiline-ternary': ['off', 'never'], // require a capital letter for constructors - 'new-cap': ['error', { newIsCap: true }], + 'new-cap': ['error', { + newIsCap: true, + newIsCapExceptions: [], + capIsNew: false, + capIsNewExceptions: ['Immutable.Map', 'Immutable.Set', 'Immutable.List'], + }], // disallow the omission of parentheses when invoking a constructor with no arguments // http://eslint.org/docs/rules/new-parens