Skip to content

Commit 4ad0b42

Browse files
rricardfeiqitian
authored andcommitted
Deactivate the new-cap rule in ESLint (facebook#470)
This rule is considered dangerous in certain situations. This is especially true for Immutable.js users. See the discussion at issue facebook#465 for more information about this.
1 parent a32afd3 commit 4ad0b42

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

config/eslint.js

-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ module.exports = {
6262
'dot-location': ['warn', 'property'],
6363
eqeqeq: ['warn', 'allow-null'],
6464
'guard-for-in': 'warn',
65-
'new-cap': ['warn', { newIsCap: true }],
6665
'new-parens': 'warn',
6766
'no-array-constructor': 'warn',
6867
'no-caller': 'warn',

0 commit comments

Comments
 (0)