@@ -29,6 +29,7 @@ module.exports = {
29
29
"@mysticatea/ts/no-array-constructor" : "error" ,
30
30
"@mysticatea/ts/no-empty-interface" : "error" ,
31
31
"@mysticatea/ts/no-extraneous-class" : "error" ,
32
+ "@mysticatea/ts/no-floating-promises" : "error" ,
32
33
"@mysticatea/ts/no-for-in-array" : "error" ,
33
34
"@mysticatea/ts/no-inferrable-types" : "error" ,
34
35
"@mysticatea/ts/no-misused-new" : "error" ,
@@ -41,20 +42,18 @@ module.exports = {
41
42
] ,
42
43
"@mysticatea/ts/no-triple-slash-reference" : "error" ,
43
44
"@mysticatea/ts/no-unnecessary-qualifier" : "error" ,
44
- // https://github.com/typescript-eslint/typescript-eslint/issues/453
45
- "@mysticatea/ts/no-unnecessary-type-assertion" : "off" ,
46
- "@mysticatea/ts/no-useless-constructor" : "error" ,
45
+ "@mysticatea/ts/no-unnecessary-type-assertion" : "error" ,
47
46
"@mysticatea/ts/no-var-requires" : "error" ,
48
47
// https://github.com/typescript-eslint/typescript-eslint/issues/454
49
48
"@mysticatea/ts/prefer-function-type" : "off" ,
50
49
"@mysticatea/ts/prefer-includes" : "error" ,
51
50
"@mysticatea/ts/prefer-namespace-keyword" : "error" ,
51
+ "@mysticatea/ts/prefer-regexp-exec" : "error" ,
52
52
"@mysticatea/ts/prefer-string-starts-ends-with" : "error" ,
53
53
"@mysticatea/ts/restrict-plus-operands" : "error" ,
54
54
"@mysticatea/ts/require-array-sort-compare" : "error" ,
55
55
"@mysticatea/ts/unbound-method" : [
56
- // https://github.com/typescript-eslint/typescript-eslint/issues/451
57
- "off" ,
56
+ "error" ,
58
57
{ ignoreStatic : true } ,
59
58
] ,
60
59
// https://github.com/typescript-eslint/typescript-eslint/issues/452
@@ -72,6 +71,14 @@ module.exports = {
72
71
} ,
73
72
] ,
74
73
74
+ // Replacements
75
+ camelcase : "off" ,
76
+ "@mysticatea/ts/camelcase" : "error" ,
77
+ "no-empty-function" : "off" ,
78
+ "@mysticatea/ts/no-empty-function" : "error" ,
79
+ "no-useless-constructor" : "off" ,
80
+ "@mysticatea/ts/no-useless-constructor" : "error" ,
81
+
75
82
// Disabled rules
76
83
"func-style" : "off" ,
77
84
"init-declarations" : "off" ,
@@ -85,22 +92,24 @@ module.exports = {
85
92
"no-use-before-define" : "off" ,
86
93
"one-var" : "off" ,
87
94
"@mysticatea/ts/ban-types" : "off" ,
88
- "@mysticatea/ts/camelcase " : "off" , // ?
95
+ "@mysticatea/ts/consistent-type-definitions " : "off" ,
89
96
"@mysticatea/ts/explicit-function-return-type" : "off" , // I want but this is not so...
97
+ "@mysticatea/ts/func-call-spacing" : "off" , // favor of Prettier.
90
98
"@mysticatea/ts/generic-type-naming" : "off" ,
91
99
"@mysticatea/ts/indent" : "off" , // favor of Prettier.
92
100
"@mysticatea/ts/member-delimiter-style" : "off" , // favor of Prettier.
93
101
"@mysticatea/ts/member-ordering" : "off" ,
94
102
"@mysticatea/ts/no-explicit-any" : "off" ,
95
103
"@mysticatea/ts/no-extra-parens" : "off" , // favor of Prettier.
104
+ "@mysticatea/ts/no-magic-numbers" : "off" ,
96
105
"@mysticatea/ts/no-namespace" : "off" , // I like the namespace for interfaces (type only things).
97
106
"@mysticatea/ts/no-non-null-assertion" : "off" ,
98
107
"@mysticatea/ts/no-type-alias" : "off" ,
99
108
"@mysticatea/ts/no-unused-vars" : "off" , // tsc verifies it.
100
109
"@mysticatea/ts/no-use-before-define" : "off" , // tsc verifies it.
101
110
"@mysticatea/ts/prefer-for-of" : "off" ,
102
- "@mysticatea/ts/prefer-interface" : "off" ,
103
111
"@mysticatea/ts/promise-function-async" : "off" ,
112
+ "@mysticatea/ts/semi" : "off" , // favor of Prettier.
104
113
"@mysticatea/ts/type-annotation-spacing" : "off" , // favor of Prettier.
105
114
} ,
106
115
settings : {
0 commit comments