1- import { defineConfig } from "eslint/config" ;
1+ import { defineConfig , globalIgnores } from "eslint/config" ;
22import typescriptEslint from "@typescript-eslint/eslint-plugin" ;
33import prettier from "eslint-plugin-prettier" ;
44import globals from "globals" ;
@@ -13,35 +13,38 @@ const __dirname = path.dirname(__filename);
1313const compat = new FlatCompat ( {
1414 baseDirectory : __dirname ,
1515 recommendedConfig : js . configs . recommended ,
16- allConfig : js . configs . all
16+ allConfig : js . configs . all ,
1717} ) ;
1818
19- export default defineConfig ( [ {
20- extends : compat . extends ( "eslint:recommended" , "plugin:@typescript-eslint/recommended" ) ,
19+ export default defineConfig ( [
20+ globalIgnores ( [ "test/generated/" , "test/resources/" , "dist/" ] ) ,
21+ {
22+ extends : compat . extends ( "eslint:recommended" , "plugin:@typescript-eslint/recommended" ) ,
2123
22- plugins : {
23- "@typescript-eslint" : typescriptEslint ,
24- prettier,
25- } ,
26-
27- languageOptions : {
28- globals : {
29- ...globals . browser ,
24+ plugins : {
25+ "@typescript-eslint" : typescriptEslint ,
26+ prettier,
3027 } ,
3128
32- parser : tsParser ,
33- ecmaVersion : 12 ,
34- sourceType : "module" ,
35- } ,
29+ languageOptions : {
30+ globals : {
31+ ... globals . browser ,
32+ } ,
3633
37- rules : {
38- "prettier/prettier" : "warn" ,
39- "@typescript-eslint/no-explicit-any" : 0 ,
40- "@typescript-eslint/no-unused-vars" : 0 ,
41- "@typescript-eslint/no-var-requires" : 0 ,
42- "@typescript-eslint/ban-types" : 0 ,
43- "@typescript-eslint/no-namespace" : 0 ,
44- "@typescript-eslint/explicit-module-boundary-types" : 0 ,
45- "@typescript-eslint/no-empty-interface" : 0 ,
34+ parser : tsParser ,
35+ ecmaVersion : 12 ,
36+ sourceType : "module" ,
37+ } ,
38+
39+ rules : {
40+ "prettier/prettier" : "warn" ,
41+ "@typescript-eslint/no-explicit-any" : 0 ,
42+ "@typescript-eslint/no-unused-vars" : 0 ,
43+ "@typescript-eslint/no-var-requires" : 0 ,
44+ "@typescript-eslint/ban-types" : 0 ,
45+ "@typescript-eslint/no-namespace" : 0 ,
46+ "@typescript-eslint/explicit-module-boundary-types" : 0 ,
47+ "@typescript-eslint/no-empty-interface" : 0 ,
48+ } ,
4649 } ,
47- } ] ) ;
50+ ] ) ;
0 commit comments