@@ -8,13 +8,13 @@ module.exports = defineConfig({
88 'eslint:recommended' ,
99 'plugin:node/recommended' ,
1010 'plugin:@typescript-eslint/recommended' ,
11- 'plugin:regexp/recommended'
11+ 'plugin:regexp/recommended' ,
1212 ] ,
1313 plugins : [ 'import' , 'regexp' ] ,
1414 parser : '@typescript-eslint/parser' ,
1515 parserOptions : {
1616 sourceType : 'module' ,
17- ecmaVersion : 2021
17+ ecmaVersion : 2021 ,
1818 } ,
1919 rules : {
2020 eqeqeq : [ 'warn' , 'always' , { null : 'never' } ] ,
@@ -25,36 +25,36 @@ module.exports = defineConfig({
2525 'prefer-const' : [
2626 'warn' ,
2727 {
28- destructuring : 'all'
29- }
28+ destructuring : 'all' ,
29+ } ,
3030 ] ,
3131
3232 'node/no-missing-import' : [
3333 'error' ,
3434 {
3535 allowModules : [ 'types' , 'estree' , 'less' , 'sass' , 'stylus' ] ,
36- tryExtensions : [ '.ts' , '.js' , '.jsx' , '.tsx' , '.d.ts' ]
37- }
36+ tryExtensions : [ '.ts' , '.js' , '.jsx' , '.tsx' , '.d.ts' ] ,
37+ } ,
3838 ] ,
3939 'node/no-missing-require' : [
4040 'error' ,
4141 {
4242 // for try-catching yarn pnp
4343 allowModules : [ 'pnpapi' , 'vite' ] ,
44- tryExtensions : [ '.ts' , '.js' , '.jsx' , '.tsx' , '.d.ts' ]
45- }
44+ tryExtensions : [ '.ts' , '.js' , '.jsx' , '.tsx' , '.d.ts' ] ,
45+ } ,
4646 ] ,
4747 'node/no-extraneous-import' : [
4848 'error' ,
4949 {
50- allowModules : [ 'vite' , 'less' , 'sass' , 'vitest' ]
51- }
50+ allowModules : [ 'vite' , 'less' , 'sass' , 'vitest' ] ,
51+ } ,
5252 ] ,
5353 'node/no-extraneous-require' : [
5454 'error' ,
5555 {
56- allowModules : [ 'vite' ]
57- }
56+ allowModules : [ 'vite' ] ,
57+ } ,
5858 ] ,
5959 'node/no-deprecated-api' : 'off' ,
6060 'node/no-unpublished-import' : 'off' ,
@@ -65,11 +65,11 @@ module.exports = defineConfig({
6565 '@typescript-eslint/ban-types' : 'off' , // TODO: we should turn this on in a new PR
6666 '@typescript-eslint/explicit-module-boundary-types' : [
6767 'error' ,
68- { allowArgumentsExplicitlyTypedAsAny : true }
68+ { allowArgumentsExplicitlyTypedAsAny : true } ,
6969 ] ,
7070 '@typescript-eslint/no-empty-function' : [
7171 'error' ,
72- { allow : [ 'arrowFunctions' ] }
72+ { allow : [ 'arrowFunctions' ] } ,
7373 ] ,
7474 '@typescript-eslint/no-empty-interface' : 'off' ,
7575 '@typescript-eslint/no-explicit-any' : 'off' , // maybe we should turn this on in a new PR
@@ -80,12 +80,12 @@ module.exports = defineConfig({
8080 '@typescript-eslint/no-var-requires' : 'off' ,
8181 '@typescript-eslint/consistent-type-imports' : [
8282 'error' ,
83- { prefer : 'type-imports' }
83+ { prefer : 'type-imports' } ,
8484 ] ,
8585
8686 'import/no-nodejs-modules' : [
8787 'error' ,
88- { allow : builtinModules . map ( ( mod ) => `node:${ mod } ` ) }
88+ { allow : builtinModules . map ( ( mod ) => `node:${ mod } ` ) } ,
8989 ] ,
9090 'import/no-duplicates' : 'error' ,
9191 'import/order' : 'error' ,
@@ -96,33 +96,38 @@ module.exports = defineConfig({
9696 ignoreDeclarationSort : true ,
9797 ignoreMemberSort : false ,
9898 memberSyntaxSortOrder : [ 'none' , 'all' , 'multiple' , 'single' ] ,
99- allowSeparatedGroups : false
100- }
99+ allowSeparatedGroups : false ,
100+ } ,
101101 ] ,
102102
103- 'regexp/no-contradiction-with-assertion' : 'error'
103+ 'regexp/no-contradiction-with-assertion' : 'error' ,
104104 } ,
105105 overrides : [
106106 {
107107 files : [ 'packages/**' ] ,
108108 excludedFiles : '**/__tests__/**' ,
109109 rules : {
110- 'no-restricted-globals' : [ 'error' , 'require' , '__dirname' , '__filename' ]
111- }
110+ 'no-restricted-globals' : [
111+ 'error' ,
112+ 'require' ,
113+ '__dirname' ,
114+ '__filename' ,
115+ ] ,
116+ } ,
112117 } ,
113118 {
114119 files : [ '*.spec.ts' ] ,
115120 rules : {
116- 'node/no-extraneous-import' : 'off'
117- }
121+ 'node/no-extraneous-import' : 'off' ,
122+ } ,
118123 } ,
119124 {
120125 files : [ '**/build.config.ts' ] ,
121126 rules : {
122127 'no-undef' : 'off' ,
123128 'node/no-missing-import' : 'off' ,
124- '@typescript-eslint/explicit-module-boundary-types' : 'off'
125- }
129+ '@typescript-eslint/explicit-module-boundary-types' : 'off' ,
130+ } ,
126131 } ,
127132 {
128133 files : [ 'playground/**' ] ,
@@ -135,17 +140,17 @@ module.exports = defineConfig({
135140 'node/no-unsupported-features/es-builtins' : [
136141 'error' ,
137142 {
138- version : '^14.18.0 || >=16.0.0'
139- }
143+ version : '^14.18.0 || >=16.0.0' ,
144+ } ,
140145 ] ,
141146 'node/no-unsupported-features/node-builtins' : [
142147 'error' ,
143148 {
144- version : '^14.18.0 || >=16.0.0'
145- }
149+ version : '^14.18.0 || >=16.0.0' ,
150+ } ,
146151 ] ,
147- '@typescript-eslint/explicit-module-boundary-types' : 'off'
148- }
152+ '@typescript-eslint/explicit-module-boundary-types' : 'off' ,
153+ } ,
149154 } ,
150155 {
151156 files : [ 'playground/**' ] ,
@@ -154,21 +159,21 @@ module.exports = defineConfig({
154159 'no-undef' : 'off' ,
155160 'no-empty' : 'off' ,
156161 'no-constant-condition' : 'off' ,
157- '@typescript-eslint/no-empty-function' : 'off'
158- }
162+ '@typescript-eslint/no-empty-function' : 'off' ,
163+ } ,
159164 } ,
160165 {
161166 files : [ '*.js' , '*.mjs' , '*.cjs' ] ,
162167 rules : {
163- '@typescript-eslint/explicit-module-boundary-types' : 'off'
164- }
168+ '@typescript-eslint/explicit-module-boundary-types' : 'off' ,
169+ } ,
165170 } ,
166171 {
167172 files : [ '*.d.ts' ] ,
168173 rules : {
169- '@typescript-eslint/triple-slash-reference' : 'off'
170- }
171- }
174+ '@typescript-eslint/triple-slash-reference' : 'off' ,
175+ } ,
176+ } ,
172177 ] ,
173- reportUnusedDisableDirectives : true
178+ reportUnusedDisableDirectives : true ,
174179} )
0 commit comments