1
- import eslint from '@eslint/js' ;
2
- import tseslint from 'typescript-eslint' ;
3
- import eslintConfigPrettier from " eslint-config-prettier" ;
4
- import jest from " eslint-plugin-jest" ;
1
+ import eslint from '@eslint/js'
2
+ import tseslint from 'typescript-eslint'
3
+ import eslintConfigPrettier from ' eslint-config-prettier'
4
+ import jest from ' eslint-plugin-jest'
5
5
6
6
export default tseslint . config (
7
7
eslintConfigPrettier ,
@@ -10,63 +10,63 @@ export default tseslint.config(
10
10
...tseslint . configs . recommended ,
11
11
{
12
12
languageOptions : {
13
- globals : {
14
- process : true ,
15
- module : true ,
16
- }
13
+ globals : {
14
+ process : true ,
15
+ module : true
16
+ }
17
17
} ,
18
18
rules : {
19
- " jest/no-conditional-expect" : " off" ,
20
- " @typescript-eslint/ban-types" : [
21
- " error" ,
19
+ ' jest/no-conditional-expect' : ' off' ,
20
+ ' @typescript-eslint/ban-types' : [
21
+ ' error' ,
22
22
{
23
23
types : {
24
- " Number" : {
25
- " message" : " Use number instead" ,
26
- " fixWith" : " number"
24
+ Number : {
25
+ message : ' Use number instead' ,
26
+ fixWith : ' number'
27
27
} ,
28
- " String" : {
29
- " message" : " Use string instead" ,
30
- " fixWith" : " string"
28
+ String : {
29
+ message : ' Use string instead' ,
30
+ fixWith : ' string'
31
31
} ,
32
- " Boolean" : {
33
- " message" : " Use boolean instead" ,
34
- " fixWith" : " boolean"
32
+ Boolean : {
33
+ message : ' Use boolean instead' ,
34
+ fixWith : ' boolean'
35
35
} ,
36
- " Object" : {
37
- " message" : " Use object instead" ,
38
- " fixWith" : " object"
36
+ Object : {
37
+ message : ' Use object instead' ,
38
+ fixWith : ' object'
39
39
} ,
40
- "{}" : {
41
- " message" : " Use object instead" ,
42
- " fixWith" : " object"
40
+ '{}' : {
41
+ message : ' Use object instead' ,
42
+ fixWith : ' object'
43
43
} ,
44
- " Symbol" : {
45
- " message" : " Use symbol instead" ,
46
- " fixWith" : " symbol"
44
+ Symbol : {
45
+ message : ' Use symbol instead' ,
46
+ fixWith : ' symbol'
47
47
}
48
48
}
49
49
}
50
50
] ,
51
- " @typescript-eslint/array-type" : [ " error" , { " default" : " array" } ] ,
52
- " @typescript-eslint/explicit-module-boundary-types" : " error" ,
53
- " @typescript-eslint/no-explicit-any" : " error" ,
54
- " @typescript-eslint/no-unused-vars" : " error" ,
55
- " @typescript-eslint/explicit-function-return-type" : " error" ,
56
- " object-shorthand" : [ " error" , " always" ] ,
57
- " prefer-destructuring" : [
58
- " error" ,
51
+ ' @typescript-eslint/array-type' : [ ' error' , { default : ' array' } ] ,
52
+ ' @typescript-eslint/explicit-module-boundary-types' : ' error' ,
53
+ ' @typescript-eslint/no-explicit-any' : ' error' ,
54
+ ' @typescript-eslint/no-unused-vars' : ' error' ,
55
+ ' @typescript-eslint/explicit-function-return-type' : ' error' ,
56
+ ' object-shorthand' : [ ' error' , ' always' ] ,
57
+ ' prefer-destructuring' : [
58
+ ' error' ,
59
59
{
60
- " array" : false ,
61
- " object" : true
60
+ array : false ,
61
+ object : true
62
62
} ,
63
63
{
64
- " enforceForRenamedProperties" : false
64
+ enforceForRenamedProperties : false
65
65
}
66
66
] ,
67
- " no-console" : [ " error" , { " allow" : [ " warn" , " error" ] } ] ,
68
- " no-alert" : " error" ,
69
- " no-debugger" : " error"
67
+ ' no-console' : [ ' error' , { allow : [ ' warn' , ' error' ] } ] ,
68
+ ' no-alert' : ' error' ,
69
+ ' no-debugger' : ' error'
70
70
}
71
71
}
72
- ) ;
72
+ )
0 commit comments