Skip to content

Commit

Permalink
Disable modifier-name-case for gjs/gts (#2982)
Browse files Browse the repository at this point in the history
  • Loading branch information
chancancode committed Nov 4, 2023
1 parent c836b2f commit 0731f8a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/config/recommended.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,14 @@ export default {
// in strict mode -- there is no implicit this ever)
'no-curly-component-invocation': 'off',
'no-implicit-this': 'off',

// This rule is not enabled here (but it is enabled in the "stylistic" preset). However, the rule is
// essentially malfunctioning in gjs/gts context, so it makes sense to always add this override to
// disable it for gjs/gts files, in case the rule is enabled. Ideally, a better fix would be to give
// the rule enough information to determine the context, so it can disable itself, but that would
// require a bigger overhaul. In the meantime, this will prevent a broken experience for <template>
// tags. See https://github.com/ember-template-lint/ember-template-lint/issues/2436.
'modifier-name-case': 'off',
},
},
],
Expand Down

0 comments on commit 0731f8a

Please sign in to comment.