1
+ module . exports = {
2
+ root : true ,
3
+ env : {
4
+ browser : true ,
5
+ es2021 : true
6
+ } ,
7
+ ignorePatterns : [ "node_modules" , ".eslintrc.js" , "dist" ] ,
8
+ extends : [
9
+ "eslint:recommended" ,
10
+ "plugin:@typescript-eslint/recommended" ,
11
+ "eslint:recommended" ,
12
+ "prettier" ,
13
+ "plugin:@typescript-eslint/recommended-requiring-type-checking" ,
14
+ ] ,
15
+ overrides : [
16
+ {
17
+ files : [ "**/*.jsx" , "**/*.js" , "**/*.ts" , "**/*.tsx" ] ,
18
+ } ,
19
+ ] ,
20
+ parser : "@typescript-eslint/parser" ,
21
+ parserOptions : {
22
+ ecmaVersion : 12 ,
23
+ sourceType : "module" ,
24
+ tsconfigRootDir : __dirname ,
25
+ project : "./tsconfig.json" ,
26
+ ecmaFeatures : {
27
+ jsx : true ,
28
+ } ,
29
+ } ,
30
+ plugins : [ "react" , "plugin:react-hooks/recommended" , "simple-import-sort" , "@typescript-eslint" , "prettier" , "unused-imports" ] ,
31
+ rules : {
32
+ "radix" : 0 ,
33
+ "no-new" : 0 ,
34
+ "no-void" : 0 ,
35
+ "no-shadow" : 0 ,
36
+ "no-bitwise" : 0 ,
37
+ "no-unused-vars" : 0 ,
38
+ "prettier/prettier" : [ "error" ] ,
39
+ "linebreak-style" : [ "error" , "unix" ] ,
40
+ "no-prototype-builtins" : 0 ,
41
+ "prefer-rest-params" : 0 ,
42
+ "no-mixed-spaces-and-tabs" : 0 ,
43
+ "react/react-in-jsx-scope" : "off" ,
44
+ "react/jsx-uses-vars" : 2 ,
45
+ "unused-imports/no-unused-imports-ts" : 2 ,
46
+ "@typescript-eslint/unbound-method" : 0 ,
47
+ "@typescript-eslint/no-unsafe-argument" : 0 ,
48
+ "@typescript-eslint/no-unsafe-return" : 0 ,
49
+ "@typescript-eslint/no-non-null-assertion" : 0 ,
50
+ "@typescript-eslint/no-empty-function" : 0 ,
51
+ "@typescript-eslint/ban-ts-comment" : 0 ,
52
+ "@typescript-eslint/no-var-requires" : 0 ,
53
+ "eslint-comments/no-unlimited-disable" : 0 ,
54
+ "@typescript-eslint/explicit-module-boundary-types" : 0 ,
55
+ "@typescript-eslint/no-explicit-any" : 0 ,
56
+ "@typescript-eslint/no-unsafe-call" : 0 ,
57
+ "@typescript-eslint/no-unused-vars" : 0 ,
58
+ "@typescript-eslint/no-shadow" : 0 ,
59
+ "@typescript-eslint/no-unused-vars" : "off" ,
60
+ "@typescript-eslint/no-unnecessary-type-constraint" : 0 ,
61
+ "@typescript-eslint/restrict-plus-operands" : 0 ,
62
+ "@typescript-eslint/no-unsafe-assignment" : 0 ,
63
+ "@typescript-eslint/restrict-plus-operands" : 2 ,
64
+ "@typescript-eslint/consistent-type-imports" : "error" ,
65
+ "@typescript-eslint/no-unsafe-member-access" : 0 ,
66
+ "@typescript-eslint/no-floating-promises" : [
67
+ "error" ,
68
+ { ignoreVoid : true , ignoreIIFE : true } ,
69
+ ] ,
70
+ } ,
71
+ } ;
0 commit comments