11import globals from "globals" ;
2- import pluginJs from "@eslint/js " ;
3- import tseslint from "typescript-eslint" ;
2+ import tsPlugin from "@typescript- eslint/eslint-plugin " ;
3+ import tsParser from "@ typescript-eslint/parser " ;
44
55export default [
6- pluginJs . configs . recommended ,
7- ...tseslint . configs . recommended ,
86 {
97 files : [ "**/*.{js,mjs,cjs,ts}" ] ,
8+ languageOptions : {
9+ parser : tsParser ,
10+ parserOptions : {
11+ ecmaVersion : 2022 ,
12+ sourceType : "module" ,
13+ project : "./tsconfig.eslint.json" ,
14+ } ,
15+ globals : globals . browser ,
16+ } ,
17+ plugins : {
18+ '@typescript-eslint' : tsPlugin ,
19+ } ,
20+
1021 rules : {
1122 semi : [ "error" , "always" ] ,
1223 quotes : [ "off" , "double" ] ,
1324 "@typescript-eslint/explicit-function-return-type" : "off" ,
14- "@typescript-eslint/camelcase" : "off" ,
1525 "@typescript-eslint/no-unsafe-function-type" : "off" ,
1626 "@typescript-eslint/no-explicit-any" : "off" ,
1727 "no-useless-escape" : "off" ,
@@ -27,9 +37,8 @@ export default [
2737 } ,
2838 ] ,
2939 "@typescript-eslint/no-unused-vars" : "warn" ,
30- "@typescript-eslint/class-name-casing" : "off" ,
3140 } ,
32- ignores : [ "lib/*" , "deps/*" , "dist/*" , "archived" ] ,
41+ ignores : [ "lib/*" , "deps/*" , "dist/*" , "archived" , "node_modules" , "./*.js" ] ,
3342 } ,
3443 {
3544 files : [ "**/__tests__/*.{j,t}s?(x)" , "**/tests/**/*.spec.{j,t}s?(x)" ] ,
0 commit comments