Skip to content

Commit

Permalink
[eslint config] [base] [patch] new-cap: add immutable.js exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
jonase authored and ljharb committed Sep 25, 2016
1 parent a1c84ee commit 59db4aa
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/eslint-config-airbnb-base/rules/style.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 59db4aa

Please sign in to comment.