File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -133,7 +133,8 @@ export default tseslint.config(
133
133
} ,
134
134
] ,
135
135
136
- 'regexp/no-contradiction-with-assertion' : 'error' ,
136
+ 'regexp/prefer-regexp-exec' : 'error' ,
137
+ 'regexp/prefer-regexp-test' : 'error' ,
137
138
// in some cases using explicit letter-casing is more performant than the `i` flag
138
139
'regexp/use-ignore-case' : 'off' ,
139
140
} ,
@@ -221,6 +222,14 @@ export default tseslint.config(
221
222
'n/no-extraneous-import' : 'off' ,
222
223
} ,
223
224
} ,
225
+ {
226
+ name : 'disables/vite/cjs' ,
227
+ files : [ 'packages/vite/index.cjs' ] ,
228
+ rules : {
229
+ 'no-restricted-globals' : 'off' ,
230
+ 'n/no-missing-require' : 'off' ,
231
+ } ,
232
+ } ,
224
233
{
225
234
name : 'disables/create-vite/templates' ,
226
235
files : [
Original file line number Diff line number Diff line change 1
- /* eslint-disable no-restricted-globals */
2
-
3
1
warnCjsUsage ( )
4
2
5
3
// type utils
6
4
module . exports . defineConfig = ( config ) => config
7
5
8
6
// proxy cjs utils (sync functions)
9
- // eslint-disable-next-line n/no-missing-require -- will be generated by build
10
7
Object . assign ( module . exports , require ( './dist/node-cjs/publicUtils.cjs' ) )
11
8
12
9
// async functions, can be redirect from ESM build
You can’t perform that action at this time.
0 commit comments