Skip to content

Commit

Permalink
fix(files): added gjs/gts to ember file extension support
Browse files Browse the repository at this point in the history
  • Loading branch information
NullVoxPopuli committed Oct 27, 2022
1 parent f8944e7 commit aac0be4
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions configs/ember.js
Expand Up @@ -12,7 +12,7 @@ const emberLintRules = {

const appTS = {
...tsBase,
files: ['./app/**/*.ts'],
files: ['./app/**/*.ts', './app/**/*.gts'],
plugins: [tsBase.plugins, moduleImports.plugins, 'ember', '@typescript-eslint'].flat(),
extends: [
'eslint:recommended',
Expand All @@ -37,7 +37,7 @@ const appTS = {

const appJS = {
...jsBase,
files: ['./app/**/*.js'],
files: ['./app/**/*.js', './app/**/*.gjs'],
plugins: [moduleBase.plugins, moduleImports.plugins, 'ember', 'decorator-position'].flat(),
extends: [
'eslint:recommended',
Expand All @@ -54,24 +54,24 @@ const appJS = {
};
const addonTS = {
...appTS,
files: ['./addon/**/*.ts', './addon-test-support/**/*.ts'],
files: ['./addon/**/*.ts', './addon/**/*.gts', './addon-test-support/**/*.ts'],
};
const addonJS = {
...appJS,
files: ['./addon/**/*.js', './addon-test-support/**/*.js'],
files: ['./addon/**/*.js', './addon/**/*.gjs', './addon-test-support/**/*.js'],
};
const addonV2JS = {
...appJS,
files: ['./src/**/*.js'],
files: ['./src/**/*.js', './src/**/*.gjs'],
};
const addonV2TS = {
...appTS,
files: ['./src/**/*.ts'],
files: ['./src/**/*.ts', './src/**/*.gts'],
};

const testsTS = {
...appTS,
files: ['./tests/**/*.ts'],
files: ['./tests/**/*.ts', './tests/**/*.gts'],
excludedFiles: ['tests/dummy/declarations/**'],
plugins: [...appTS.plugins, 'qunit'],
extends: [...appTS.extends, 'plugin:qunit/recommended'],
Expand All @@ -94,7 +94,7 @@ const testsTS = {
};
const testsJS = {
...appJS,
files: ['./tests/**/*.js'],
files: ['./tests/**/*.js', './tests/**/*.gjs'],
plugins: [...appJS.plugins, 'qunit'],
extends: [...appJS.extends, 'plugin:qunit/recommended'],
env: {
Expand Down

0 comments on commit aac0be4

Please sign in to comment.