@@ -12,7 +12,7 @@ export default defineConfig([
1212 globalIgnores ( [ 'src/data/*' ] , 'Ignore Source Data Directory' ) ,
1313
1414 {
15- files : [ '**/*.js' , '**/*.mjs' ] ,
15+ files : [ '**/*.js' , '**/*.mjs' , '**/*.cjs' ] ,
1616 plugins : {
1717 js,
1818 } ,
@@ -27,7 +27,6 @@ export default defineConfig([
2727 } ,
2828
2929 ecmaVersion : 'latest' ,
30- sourceType : 'module' ,
3130 } ,
3231
3332 rules : {
@@ -38,20 +37,16 @@ export default defineConfig([
3837 } ,
3938 ] ,
4039
41- 'linebreak-style' : [ 'error' , 'unix' ] ,
4240 'guard-for-in' : 'error' ,
43- 'max-len' : 'off' ,
4441 'no-var' : 'error' ,
4542 'prefer-const' : 'error' ,
4643 'array-callback-return' : 'error' ,
47- 'no-constant-binary-expression' : 'error' ,
4844 'no-constructor-return' : 'error' ,
4945 'no-duplicate-imports' : 'error' ,
5046 'no-self-compare' : 'error' ,
5147 'no-template-curly-in-string' : 'warn' ,
5248 'no-unmodified-loop-condition' : 'warn' ,
5349 'no-unreachable-loop' : 'error' ,
54- 'no-unused-private-class-members' : 'error' ,
5550
5651 'prefer-arrow-callback' : [
5752 'error' ,
@@ -62,54 +57,16 @@ export default defineConfig([
6257 } ,
6358 } ,
6459 {
65- files : [ '**/*.cjs ' ] ,
66- plugins : {
67- js ,
60+ files : [ '**/*.js' , '**/*.mjs '] ,
61+ languageOptions : {
62+ sourceType : 'module' ,
6863 } ,
69-
70- extends : [ 'js/recommended' ] ,
71-
64+ } ,
65+ {
66+ files : [ '**/*.cjs' ] ,
7267 languageOptions : {
73- globals : {
74- ...globals . node ,
75- ...globals . jest ,
76- __VITE_ENV__ : 'readonly' ,
77- } ,
78-
79- ecmaVersion : 'latest' ,
8068 sourceType : 'commonjs' ,
8169 } ,
82-
83- rules : {
84- 'no-console' : [
85- 'error' ,
86- {
87- allow : [ 'warn' ] ,
88- } ,
89- ] ,
90-
91- 'linebreak-style' : [ 'error' , 'unix' ] ,
92- 'guard-for-in' : 'error' ,
93- 'max-len' : 'off' ,
94- 'no-var' : 'error' ,
95- 'prefer-const' : 'error' ,
96- 'array-callback-return' : 'error' ,
97- 'no-constant-binary-expression' : 'error' ,
98- 'no-constructor-return' : 'error' ,
99- 'no-duplicate-imports' : 'error' ,
100- 'no-self-compare' : 'error' ,
101- 'no-template-curly-in-string' : 'warn' ,
102- 'no-unmodified-loop-condition' : 'warn' ,
103- 'no-unreachable-loop' : 'error' ,
104- 'no-unused-private-class-members' : 'error' ,
105-
106- 'prefer-arrow-callback' : [
107- 'error' ,
108- {
109- allowUnboundThis : false ,
110- } ,
111- ] ,
112- } ,
11370 } ,
11471 {
11572 files : [ '**/*.ts' ] ,
@@ -133,21 +90,18 @@ export default defineConfig([
13390 } ,
13491 ] ,
13592
136- 'linebreak-style' : [ 'error' , 'unix' ] ,
13793 'guard-for-in' : 'error' ,
138- 'max-len' : 'off' ,
13994 'no-var' : 'error' ,
14095 'prefer-const' : 'error' ,
14196 'array-callback-return' : 'error' ,
142- 'no-constant-binary-expression' : 'error' ,
14397 'no-constructor-return' : 'error' ,
14498 'no-duplicate-imports' : 'error' ,
14599 'no-self-compare' : 'error' ,
146100 'no-template-curly-in-string' : 'warn' ,
147101 'no-unmodified-loop-condition' : 'warn' ,
148102 'no-unreachable-loop' : 'error' ,
149- 'no-unused-private-class-members' : 'error' ,
150103 '@typescript-eslint/require-await' : 'off' ,
104+ '@typescript-eslint/explicit-member-accessibility' : 'warn' ,
151105
152106 'prefer-arrow-callback' : [
153107 'error' ,
0 commit comments