@@ -7,20 +7,37 @@ export default [
77 ...neostandard ( ) ,
88 {
99 ignores : [
10- 'lib/**' ,
1110 '**/*.html' ,
1211 '**/*.md' ,
1312 '**/*.json' ,
1413 'docs/**' ,
1514 'node_modules/**' ,
1615 'coverage/**' ,
1716 'dist/**' ,
18- 'test /**' ,
19- 'examples/** '
17+ 'examples /**' ,
18+ '*.js '
2019 ] ,
2120 } ,
2221 {
23- files : [ 'src/**/*.js' , 'src/**/*.ts' , 'src/**/*.cjs' , 'src/**/*.mjs' ] ,
22+ files : [ 'src/**/*.js' , 'src/**/*.cjs' , 'src/**/*.mjs' ] ,
23+
24+ languageOptions : {
25+ globals : {
26+ ...globals . browser ,
27+ ...globals . node ,
28+ Atomics : 'readonly' ,
29+ SharedArrayBuffer : 'readonly' ,
30+ }
31+ } ,
32+ rules : {
33+ semi : [ 'error' , 'never' ] ,
34+ quotes : [ 'error' , 'single' ] ,
35+ 'no-console' : 'error' ,
36+ 'no-unused-vars' : 'off'
37+ } ,
38+ } ,
39+ {
40+ files : [ 'src/**/*.ts' ] ,
2441 plugins : {
2542 '@typescript-eslint' : tseslintPlugin ,
2643 } ,
@@ -33,6 +50,9 @@ export default [
3350 SharedArrayBuffer : 'readonly' ,
3451 } ,
3552 parser : tsParser ,
53+ parserOptions : {
54+ project : [ './tsconfig.json' ]
55+ } ,
3656 } ,
3757 rules : {
3858 semi : [ 'error' , 'never' ] ,
@@ -46,4 +66,31 @@ export default [
4666 // '@typescript-eslint/no-explicit-any': 'warn', - codebase not ready for this
4767 } ,
4868 } ,
69+ {
70+ files : [ 'test/**/*.ts' ] ,
71+ plugins : {
72+ '@typescript-eslint' : tseslintPlugin ,
73+ } ,
74+ languageOptions : {
75+ parser : tsParser ,
76+ parserOptions : {
77+ project : [ './tsconfig.test.json' ] ,
78+ } ,
79+ } ,
80+ rules : {
81+ semi : [ 'error' , 'never' ] ,
82+ quotes : [ 'error' , 'single' ] ,
83+ 'no-console' : 'off' , // Allow console in tests
84+ 'no-undef' : 'off' , // Tests may define globals
85+ }
86+ } ,
87+ {
88+ files : [ 'test/**/**/*.js' , 'test/**/*.js' ] ,
89+ rules : {
90+ semi : [ 'error' , 'never' ] ,
91+ quotes : [ 'error' , 'single' ] ,
92+ 'no-console' : 'off' , // Allow console in tests
93+ 'no-undef' : 'off' , // Tests may define globals
94+ }
95+ }
4996]
0 commit comments