1- const pluginJs = require ( '@eslint/js' )
2- const tseslint = require ( 'typescript-eslint' )
1+ import globals from "globals" ;
2+ import pluginJs from "@eslint/js" ;
3+ import tseslint from "typescript-eslint" ;
34
45
56/** @type {import('eslint').Linter.Config[] } */
6- module . exports = [
7+ export default [
78 pluginJs . configs . recommended ,
89 ...tseslint . configs . recommended ,
9- { ignores : [ '**/*.{js,mjs,cjs}' , 'builds/**/*' , '**/*.d.ts' ] } ,
10+ { ignores : [ '**/*.{js,mjs,cjs}' , 'builds/**/*' ] } ,
1011 {
1112 rules : {
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' ,
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" ,
1819// "no-var": "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'
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"
2728 }
2829 }
29- ]
30+ ] ;
0 commit comments