1
1
// eslint-disable-next-line unicorn/prefer-module
2
2
module . exports = {
3
- parser : ' @typescript-eslint/parser' ,
3
+ parser : " @typescript-eslint/parser" ,
4
4
extends : [
5
- ' prettier' ,
6
- ' standard' ,
7
- ' plugin:unicorn/recommended' ,
8
- ' plugin:@typescript-eslint/recommended' ,
9
- ' plugin:@typescript-eslint/eslint-recommended' ,
10
- ' plugin:import/errors' ,
11
- ' plugin:import/warnings'
5
+ " prettier" ,
6
+ " standard" ,
7
+ " plugin:unicorn/recommended" ,
8
+ " plugin:@typescript-eslint/recommended" ,
9
+ " plugin:@typescript-eslint/eslint-recommended" ,
10
+ " plugin:import/errors" ,
11
+ " plugin:import/warnings" ,
12
12
] ,
13
- plugins : [ ' @typescript-eslint' ] ,
13
+ plugins : [ " @typescript-eslint" ] ,
14
14
settings : {
15
- 'import/parsers' : {
16
- '@typescript-eslint/parser' : [ '.ts' , '.tsx' ]
15
+ "import/parsers" : {
16
+ "@typescript-eslint/parser" : [ ".ts" , ".tsx" ] ,
17
+ } ,
18
+ "import/resolver" : {
19
+ node : { extensions : [ ".js" , ".mjs" , ".cjs" ] } ,
20
+ typescript : { } ,
17
21
} ,
18
- 'import/resolver' : {
19
- node : { extensions : [ '.js' , '.mjs' , '.cjs' ] } ,
20
- typescript : { }
21
- }
22
22
} ,
23
23
rules : {
24
24
// Disable formatting rules
25
25
semi : 0 ,
26
26
quotes : 0 ,
27
+ indent : 0 ,
27
28
"space-before-function-paren" : 0 ,
28
29
"arrow-parens" : 0 ,
29
30
"comma-dangle" : 0 ,
30
31
"keyword-spacing" : 0 ,
31
32
"no-multiple-empty-lines" : 0 ,
32
33
"no-trailing-spaces" : 0 ,
34
+ "unicorn/number-literal-case" : 0 ,
35
+ "unicorn/template-indent" : 0 ,
36
+ "generator-star-spacing" : 0 ,
33
37
34
38
// Disable some unnecessary or conflicting rules
35
39
"no-use-before-define" : "off" ,
@@ -41,45 +45,46 @@ module.exports = {
41
45
"@typescript-eslint/no-empty-function" : 0 ,
42
46
"@typescript-eslint/no-var-requires" : 0 ,
43
47
"@typescript-eslint/ban-ts-comment" : 0 ,
48
+ "@typescript-eslint/no-empty-interface" : 0 ,
44
49
45
50
// Enforce import order
46
- ' import/order' : ' error' ,
51
+ " import/order" : " error" ,
47
52
48
53
// Imports should come first
49
- ' import/first' : ' error' ,
54
+ " import/first" : " error" ,
50
55
51
56
// Other import rules
52
- ' import/no-mutable-exports' : ' error' ,
57
+ " import/no-mutable-exports" : " error" ,
53
58
54
59
// Allow unresolved imports
55
- ' import/no-unresolved' : ' off' ,
60
+ " import/no-unresolved" : " off" ,
56
61
57
62
// Prefer const over let
58
- ' prefer-const' : [
59
- ' error' ,
63
+ " prefer-const" : [
64
+ " error" ,
60
65
{
61
- destructuring : ' any' ,
62
- ignoreReadBeforeAssign : false
63
- }
66
+ destructuring : " any" ,
67
+ ignoreReadBeforeAssign : false ,
68
+ } ,
64
69
] ,
65
70
66
71
// No single if in an "else" block
67
- ' no-lonely-if' : ' error' ,
72
+ " no-lonely-if" : " error" ,
68
73
69
74
// Force curly braces for control flow,
70
75
// including if blocks with a single statement
71
- curly : [ ' error' , ' all' ] ,
76
+ curly : [ " error" , " all" ] ,
72
77
73
78
// No async function without await
74
- ' require-await' : ' error' ,
79
+ " require-await" : " error" ,
75
80
76
81
// Force dot notation when possible
77
- ' dot-notation' : ' error' ,
82
+ " dot-notation" : " error" ,
78
83
79
84
// Force object shorthand where possible
80
- ' object-shorthand' : ' error' ,
85
+ " object-shorthand" : " error" ,
81
86
82
87
// No useless destructuring/importing/exporting renames
83
- ' no-useless-rename' : ' error'
84
- }
85
- }
88
+ " no-useless-rename" : " error" ,
89
+ } ,
90
+ } ;
0 commit comments