Skip to content

Commit a175991

Browse files
committed
Update generated ESLint config
1 parent 173f091 commit a175991

File tree

1 file changed

+4
-19
lines changed

1 file changed

+4
-19
lines changed

files/eslint.config.mjs

Lines changed: 4 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
*/
1515
import babelParser from '@babel/eslint-parser';
1616
import js from '@eslint/js';
17+
import { defineConfig, globalIgnores } from 'eslint/config';
1718
import prettier from 'eslint-config-prettier';
1819
import ember from 'eslint-plugin-ember/recommended';
1920
import importPlugin from 'eslint-plugin-import';
@@ -32,26 +33,13 @@ const tsParserOptions = {
3233
tsconfigRootDir: import.meta.dirname,
3334
};
3435
<% } %>
35-
const config = [
36+
export default defineConfig([
37+
globalIgnores(['dist/', 'dist-*/', 'declarations/', 'coverage/', '!**/.*']),
3638
js.configs.recommended,
3739
prettier,
3840
ember.configs.base,
3941
ember.configs.gjs,<% if (typescript) { %>
4042
ember.configs.gts,<% } %>
41-
/**
42-
* Ignores must be in their own object
43-
* https://eslint.org/docs/latest/use/configure/ignore
44-
*/
45-
{
46-
ignores: [
47-
'dist/',
48-
'dist-*/',
49-
'declarations/',
50-
'node_modules/',
51-
'coverage/',
52-
'!**/.*',
53-
],
54-
},
5543
/**
5644
* https://eslint.org/docs/latest/use/configure/configuration-files#configuring-linter-options
5745
*/
@@ -133,7 +121,4 @@ const config = [
133121
},
134122
},
135123
},
136-
];
137-
<% if (typescript) { %>
138-
export default ts.config(...config);<% } else { %>
139-
export default config;<% } %>
124+
]);

0 commit comments

Comments
 (0)