1- import globals from "globals" ;
2- import pluginJs from "@eslint/js" ;
3- import tseslint from "typescript-eslint" ;
1+ const pluginJs = require ( '@eslint/js' )
2+ const tseslint = require ( 'typescript-eslint' )
43
54
65/** @type {import('eslint').Linter.Config[] } */
7- export default [
6+ module . exports = [
87 pluginJs . configs . recommended ,
98 ...tseslint . configs . recommended ,
10- { ignores : [ '**/*.{js,mjs,cjs}' , 'builds/**/*' ] } ,
9+ { ignores : [ '**/*.{js,mjs,cjs}' , 'builds/**/*' , '**/*.d.ts' ] } ,
1110 {
1211 rules : {
13- " no-empty" : " off" ,
14- " prefer-rest-params" : " off" ,
15- " prefer-spread" : " off" ,
16- " prefer-const" : " off" ,
17- " no-useless-escape" : " off" ,
18- " no-useless-assignment" : " off" ,
12+ ' no-empty' : ' off' ,
13+ ' prefer-rest-params' : ' off' ,
14+ ' prefer-spread' : ' off' ,
15+ ' prefer-const' : ' off' ,
16+ ' no-useless-escape' : ' off' ,
17+ ' no-useless-assignment' : ' off' ,
1918// "no-var": "off",
20- " no-array-constructor" : " off" ,
21- " no-misleading-character-class" : " off" ,
22- " @typescript-eslint/no-this-alias" : " off" ,
23- " @typescript-eslint/no-array-constructor" : " off" ,
24- " @typescript-eslint/no-explicit-any" : " off" ,
25- " @typescript-eslint/no-require-imports" : " off" ,
26- " @typescript-eslint/no-unused-vars" : " off" ,
27- " @typescript-eslint/no-unsafe-function-type" : " off"
19+ ' no-array-constructor' : ' off' ,
20+ ' no-misleading-character-class' : ' off' ,
21+ ' @typescript-eslint/no-this-alias' : ' off' ,
22+ ' @typescript-eslint/no-array-constructor' : ' off' ,
23+ ' @typescript-eslint/no-explicit-any' : ' off' ,
24+ ' @typescript-eslint/no-require-imports' : ' off' ,
25+ ' @typescript-eslint/no-unused-vars' : ' off' ,
26+ ' @typescript-eslint/no-unsafe-function-type' : ' off'
2827 }
2928 }
30- ] ;
29+ ]
0 commit comments