Skip to content

Commit

Permalink
fix(eslint-config-core): set capIsNew option to false for new-cap to …
Browse files Browse the repository at this point in the history
…allow decorators (#11)
  • Loading branch information
olehan committed Aug 11, 2021
1 parent 86107e1 commit e07ca90
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/eslint-config-core/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,12 @@ export const eslintConfigCore: Linter.BaseConfig = {
// Enforce or disallow newlines between operands of ternary expressions.
'multiline-ternary': ['warn', 'always-multiline'],
// Require constructor names to begin with a capital letter.
'new-cap': 'warn',
'new-cap': [
'warn',
{
capIsNew: false,
},
],
// Require parentheses when invoking a constructor with no arguments.
'new-parens': 'warn',
// Require a newline after each call in a method chain.
Expand Down

0 comments on commit e07ca90

Please sign in to comment.