@@ -15,12 +15,12 @@ module.exports = {
15
15
'airbnb-base' ,
16
16
] ,
17
17
rules : {
18
- 'import/no-extraneous-dependencies' : [ 'error' ] ,
18
+ 'import/no-extraneous-dependencies' : [ 'error' ] ,
19
19
'import/prefer-default-export' : 'off' ,
20
20
'filenames/match-regex' : [ 'error' , / ^ [ 0 - 9 a - z . - ] + $ / , true ] ,
21
21
'consistent-return' : 0 ,
22
22
'no-unused-expressions' : 0 ,
23
- ' indent' : [ 'warn' , 2 , {
23
+ indent : [ 'warn' , 2 , {
24
24
ObjectExpression : 'first' ,
25
25
CallExpression : { arguments : 'first' } ,
26
26
FunctionDeclaration : { parameters : 'first' } ,
@@ -29,39 +29,39 @@ module.exports = {
29
29
SwitchCase : 1 ,
30
30
ignoredNodes : [ 'ConditionalExpression' ] ,
31
31
} ] ,
32
- 'no-console' : 'error' ,
32
+ 'no-console' : [ 'error' , { allow : [ 'warn' , 'error' ] } ] ,
33
33
'no-return-await' : 'error' ,
34
34
'promise/catch-or-return' : 'error' ,
35
35
'unicorn/no-abusive-eslint-disable' : 'error' ,
36
36
'max-params' : [ 1 , 5 ] ,
37
37
'max-depth' : [ 'error' , 4 ] ,
38
38
'max-len' : [ 'error' , 120 , 2 , {
39
- ' ignoreUrls' : true ,
40
- ' ignoreComments' : true ,
41
- ' ignoreRegExpLiterals' : true ,
42
- ' ignoreStrings' : true ,
43
- ' ignoreTemplateLiterals' : true
39
+ ignoreUrls : true ,
40
+ ignoreComments : true ,
41
+ ignoreRegExpLiterals : true ,
42
+ ignoreStrings : true ,
43
+ ignoreTemplateLiterals : true ,
44
44
} ] ,
45
45
'class-methods-use-this' : 'off' ,
46
46
'no-floating-decimal' : 'off' ,
47
47
'key-spacing' : [ 'error' , {
48
48
beforeColon : false ,
49
49
afterColon : true ,
50
- mode : 'minimum'
50
+ mode : 'minimum' ,
51
51
} ] ,
52
52
'padded-blocks' : [ 'error' , {
53
53
switches : 'never' ,
54
54
} , {
55
- allowSingleLineBlocks : true
55
+ allowSingleLineBlocks : true ,
56
56
} ] ,
57
57
'arrow-parens' : [ 'error' , 'as-needed' , { requireForBlockBody : true } ] ,
58
58
'lines-between-class-members' : [ 'error' , 'always' , { exceptAfterSingleLine : true } ] ,
59
59
'no-plusplus' : 'off' ,
60
60
'for-direction' : 'off' ,
61
61
'no-nested-ternary' : 'off' ,
62
- " object-curly-newline" : [ " error" , {
63
- " ImportDeclaration" : { " multiline" : true } ,
64
- " ExportDeclaration" : { " multiline" : true }
62
+ ' object-curly-newline' : [ ' error' , {
63
+ ImportDeclaration : { multiline : true } ,
64
+ ExportDeclaration : { multiline : true } ,
65
65
} ] ,
66
66
'operator-linebreak' : [ 'error' , 'before' , {
67
67
overrides : { ':' : 'ignore' } ,
@@ -71,11 +71,11 @@ module.exports = {
71
71
allowAllPropertiesOnSameLine : true ,
72
72
} ] ,
73
73
'no-mixed-operators' : 'off' ,
74
- ' strict' : 'off' ,
74
+ strict : 'off' ,
75
75
'template-curly-spacing' : [ 'error' , 'always' ] ,
76
76
'semi-style' : 'off' ,
77
77
'no-multi-spaces' : 'off' ,
78
- 'import/extensions' : [ 'error' , 'never' , { ' json' : 'always' } ]
78
+ 'import/extensions' : [ 'error' , 'never' , { json : 'always' } ] ,
79
79
} ,
80
80
overrides : [
81
81
{
@@ -85,15 +85,15 @@ module.exports = {
85
85
project : './tsconfig.json' ,
86
86
ecmaVersion : 2020 ,
87
87
} ,
88
- " settings" : {
89
- " import/parsers" : {
90
- " @typescript-eslint/parser" : [ " .ts" ]
88
+ settings : {
89
+ ' import/parsers' : {
90
+ ' @typescript-eslint/parser' : [ ' .ts' ] ,
91
91
} ,
92
- " import/resolver" : {
93
- " typescript" : {
92
+ ' import/resolver' : {
93
+ typescript : {
94
94
// use <root>/path/to/folder/tsconfig.json
95
95
// More examples: https://www.npmjs.com/package/eslint-import-resolver-typescript#configuration
96
- " directory" : " ./tsconfig.json"
96
+ directory : ' ./tsconfig.json' ,
97
97
} ,
98
98
} ,
99
99
} ,
@@ -117,21 +117,21 @@ module.exports = {
117
117
'@typescript-eslint/no-explicit-any' : 'off' ,
118
118
'@typescript-eslint/no-non-null-assertion' : 'off' ,
119
119
'@typescript-eslint/member-delimiter-style' : [ 'error' , { // Prevents us from using any delimiter for interface properties.
120
- 'multiline' : {
121
- 'delimiter' : 'semi' ,
122
- 'requireLast' : true
120
+ multiline : {
121
+ delimiter : 'semi' ,
122
+ requireLast : true ,
123
+ } ,
124
+ singleline : {
125
+ delimiter : 'semi' ,
126
+ requireLast : false ,
123
127
} ,
124
- 'singleline' : {
125
- 'delimiter' : 'semi' ,
126
- 'requireLast' : false
127
- }
128
128
} ] ,
129
129
'@typescript-eslint/indent' : 'off' , // This is the job of StandardJS, they are competing rules so we turn off the Typescript one.
130
130
'@typescript-eslint/no-use-before-define' : [ 'error' , {
131
131
functions : false ,
132
132
classes : false ,
133
133
} ] ,
134
- " @typescript-eslint/explicit-member-accessibility" : [ " error" ] ,
134
+ ' @typescript-eslint/explicit-member-accessibility' : [ ' error' ] ,
135
135
'function-paren-newline' : 'off' ,
136
136
'implicit-arrow-linebreak' : 'off' ,
137
137
'@typescript-eslint/explicit-function-return-type' : 'off' ,
0 commit comments