Skip to content

Commit

Permalink
Add comment explaining overrides and gjs/gts options
Browse files Browse the repository at this point in the history
  • Loading branch information
NullVoxPopuli authored and nlfurniss committed Oct 25, 2022
1 parent 3b73b06 commit 85e35d7
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions lib/config/recommended.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,15 @@ module.exports = {
rules,

overrides: [
/**
* We don't want to *always* have the preprocessor active,
* it's only relevant on gjs and gts files.
*
* Additionally, we need to declare a global (which is private API)
* so that ESLint doesn't report errors about the variable being undefined.
* While this is true, it's a temporary thing for babel to do further processing
* on -- and isn't relevant to user-land code.
*/
{
files: ['**/*.gjs', '**/*.gts'],
processor: 'ember/<template>',
Expand Down

0 comments on commit 85e35d7

Please sign in to comment.