Skip to content

Commit

Permalink
improve gts gjs configuration example
Browse files Browse the repository at this point in the history
  • Loading branch information
patricklx committed Nov 6, 2023
1 parent 07d5e85 commit 1dae259
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,17 @@ lint files having `First-Class Component Templates` (fcct)

learn more [here](https://github.com/ember-template-imports/ember-template-imports)

> [!NOTE]
> special care should be used when setting up parsers, since they cannot be overwritten. thus they should be used in override only and specific to file types
```js
// .eslintrc.js
module.exports = {
overrides: [
{
files: ['**/*.{js,ts,gjs,gts}'],
files: ['**/*.{js,ts}'],
plugins: ['ember'],
parser: '@typescript-eslint/parser',
extends: [
'eslint:recommended',
'plugin:ember/recommended', // or other configuration
Expand All @@ -70,6 +74,7 @@ module.exports = {
plugins: ['ember'],
extends: [
'eslint:recommended',
'plugin:ember/recommended',
'plugin:ember/gts-recommended', // or other configuration
],
},
Expand All @@ -79,6 +84,7 @@ module.exports = {
plugins: ['ember'],
extends: [
'eslint:recommended',
'plugin:ember/recommended',
'plugin:ember/gjs-recommended', // or other configuration
],
},
Expand Down

0 comments on commit 1dae259

Please sign in to comment.