mirror of
https://github.com/airbnb/javascript.git
synced 2026-01-14 02:58:03 -05:00
[eslint config] [base] [patch] new-cap: add immutable.js exceptions
This commit is contained in:
committed by
Jordan Harband
parent
a1c84eee15
commit
59db4aab15
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user