@@ -14,89 +14,6 @@ import prettier from 'eslint-config-prettier'
1414import globals from 'globals'
1515
1616export default [
17- // JavaScript and MJS files configuration
18- {
19- files : [ '**/*.{js,mjs}' ] ,
20- languageOptions : {
21- ecmaVersion : 2022 ,
22- sourceType : 'module' ,
23- globals : {
24- ...globals . browser ,
25- ...globals . node ,
26- ...globals . commonjs ,
27- ...globals . es2020 ,
28- } ,
29- parserOptions : {
30- requireConfigFile : false ,
31- } ,
32- } ,
33- settings : {
34- 'import/resolver' : {
35- typescript : true ,
36- node : true ,
37- } ,
38- } ,
39- plugins : {
40- github,
41- import : importPlugin ,
42- 'eslint-comments' : eslintComments ,
43- 'i18n-text' : i18nText ,
44- filenames,
45- 'no-only-tests' : noOnlyTests ,
46- prettier : prettierPlugin ,
47- } ,
48- rules : {
49- // ESLint recommended rules
50- ...js . configs . recommended . rules ,
51-
52- // GitHub plugin recommended rules
53- ...github . configs . recommended . rules ,
54-
55- // Import plugin error rules
56- ...importPlugin . configs . errors . rules ,
57-
58- // JavaScript-specific overrides
59- 'import/no-extraneous-dependencies' : [
60- 'error' ,
61- {
62- packageDir : '.' ,
63- } ,
64- ] ,
65- 'import/extensions' : 'off' ,
66- 'no-console' : 'off' ,
67- camelcase : 'off' ,
68- 'no-shadow' : 'off' ,
69- 'prefer-template' : 'off' ,
70- 'no-constant-condition' : 'off' ,
71- 'no-unused-vars' : 'off' ,
72- 'import/no-named-as-default-member' : 'off' ,
73- 'one-var' : 'off' ,
74- 'import/no-namespace' : 'off' ,
75- 'import/no-anonymous-default-export' : 'off' ,
76- 'object-shorthand' : 'off' ,
77- 'no-empty' : 'off' ,
78- 'prefer-const' : 'off' ,
79- 'import/no-named-as-default' : 'off' ,
80- 'no-useless-concat' : 'off' ,
81- 'func-style' : 'off' ,
82-
83- // Disable GitHub plugin rules that were disabled in original config
84- 'github/array-foreach' : 'off' ,
85- 'github/no-then' : 'off' ,
86-
87- // Disable rules that might not exist or cause issues initially
88- 'i18n-text/no-en' : 'off' ,
89- 'filenames/match-regex' : 'off' ,
90- 'eslint-comments/no-use' : 'off' ,
91- 'eslint-comments/no-unused-disable' : 'off' ,
92- 'eslint-comments/no-unlimited-disable' : 'off' ,
93-
94- // Disable new ESLint 9 rules that are causing issues
95- 'no-constant-binary-expression' : 'off' ,
96- } ,
97- } ,
98-
99- // TypeScript and TSX files configuration
10017 {
10118 files : [ '**/*.{ts,tsx}' ] ,
10219 languageOptions : {
0 commit comments