Closed ericclemmons closed 8 years ago
It's common convention (especially to thousands using ESLint presets) to require new before capitalized functions (Immutable), as those are typically constructors:
new
Immutable)
http://eslint.org/docs/rules/new-cap
Would you accept a PR for Immutable.from(...), which is simply an alias to Immutable?
Immutable.from(...)
Immutable
This would allow users to maintain convention and avoid littering their code with // eslint-disable-line everywhere they use this project.
// eslint-disable-line
👍 on this project BTW!
Sure, makes sense to me! 😃
Work is being done in #126...
Released in 6.1.0. Thanks again @ericclemmons!
It's common convention (especially to thousands using ESLint presets) to require
new
before capitalized functions (Immutable)
, as those are typically constructors:Would you accept a PR for
Immutable.from(...)
, which is simply an alias toImmutable
?This would allow users to maintain convention and avoid littering their code with
// eslint-disable-line
everywhere they use this project.👍 on this project BTW!