1+ import globals from "globals" ;
2+ import pluginJs from "@eslint/js" ;
3+ import tseslint from "typescript-eslint" ;
4+ import pluginReact from "eslint-plugin-react" ;
5+
6+
7+ /** @type {import('eslint').Linter.Config[] } */
8+ export default [
9+ {
10+ languageOptions : { globals : globals . browser } ,
11+ settings : {
12+ react : {
13+ version : "detect" , // Automatically detect the React version
14+ } ,
15+ } ,
16+ } ,
17+ pluginJs . configs . recommended ,
18+ ...tseslint . configs . recommended ,
19+ pluginReact . configs . flat . recommended ,
20+ {
21+ rules : {
22+ "@typescript-eslint/ban-ts-comment" : "off" ,
23+ "@typescript-eslint/no-non-null-asserted-optional-chain" : "off" ,
24+ "@typescript-eslint/no-empty-object-type" : "off" ,
25+ "@typescript-eslint/no-explicit-any" : "off" ,
26+ "@typescript-eslint/no-unused-expressions" : "off" ,
27+ "@typescript-eslint/no-unused-vars" : "off" ,
28+ "no-empty-pattern" : "off" ,
29+ "no-empty" : "off" ,
30+ "no-var" : "off" ,
31+ "no-unsafe-optional-chaining" : "off" ,
32+ "no-useless-escape" : "off" ,
33+ "prefer-const" : "off" ,
34+ "react/jsx-key" : "off" ,
35+ "react/no-unescaped-entities" : "off" ,
36+ }
37+ }
38+ ] ;
0 commit comments