@@ -117,20 +117,28 @@ export const converters = new Map([
117
117
[ "adjacent-overload-signatures" , convertAdjacentOverloadSignatures ] ,
118
118
[ "array-type" , convertArrayType ] ,
119
119
[ "arrow-parens" , convertArrowParens ] ,
120
+ [ "arrow-return-shorthand" , convertArrowReturnShorthand ] ,
120
121
[ "await-promise" , convertAwaitPromise ] ,
121
122
[ "ban-comma-operator" , convertBanCommaOperator ] ,
122
123
[ "ban-ts-ignore" , convertBanTsIgnore ] ,
123
124
[ "ban-types" , convertBanTypes ] ,
124
125
[ "binary-expression-operand-order" , convertBinaryExpressionOperandOrder ] ,
125
126
[ "callable-types" , convertCallableTypes ] ,
126
127
[ "class-name" , convertClassName ] ,
128
+ [ "curly" , convertCurly ] ,
129
+ [ "cyclomatic-complexity" , convertCyclomaticComplexity ] ,
127
130
[ "eofline" , convertEofline ] ,
128
131
[ "forin" , convertForin ] ,
129
132
[ "function-constructor" , convertFunctionConstructor ] ,
133
+ [ "increment-decrement" , convertIncrementDecrement ] ,
130
134
[ "indent" , convertIndent ] ,
131
135
[ "interface-name" , convertInterfaceName ] ,
132
136
[ "interface-over-type-literal" , convertInterfaceOverTypeLiteral ] ,
133
137
[ "label-position" , convertLabelPosition ] ,
138
+ [ "linebreak-style" , convertLinebreakStyle ] ,
139
+ [ "max-classes-per-file" , convertMaxClassesPerFile ] ,
140
+ [ "max-file-line-count" , convertMaxFileLineCount ] ,
141
+ [ "max-line-length" , convertMaxLineLength ] ,
134
142
[ "member-access" , convertMemberAccess ] ,
135
143
[ "member-ordering" , convertMemberOrdering ] ,
136
144
[ "new-parens" , convertNewParens ] ,
@@ -139,92 +147,84 @@ export const converters = new Map([
139
147
[ "no-angle-bracket-type-assertion" , convertNoAngleBracketTypeAssertion ] ,
140
148
[ "no-any" , convertNoExplicitAny ] ,
141
149
[ "no-arg" , convertNoArg ] ,
150
+ [ "no-banned-terms" , convertNoBannedTerms ] ,
142
151
[ "no-bitwise" , convertNoBitwise ] ,
143
152
[ "no-conditional-assignment" , convertNoConditionalAssignment ] ,
153
+ [ "no-consecutive-blank-lines" , convertNoConsecutiveBlankLines ] ,
154
+ [ "no-console" , convertNoConsole ] ,
155
+ [ "no-constant-condition" , convertNoConstantCondition ] ,
144
156
[ "no-construct" , convertNoConstruct ] ,
157
+ [ "no-control-regex" , convertNoControlRegex ] ,
145
158
[ "no-debugger" , convertNoDebugger ] ,
146
159
[ "no-duplicate-imports" , convertNoDuplicateImports ] ,
147
160
[ "no-duplicate-super" , convertNoDuplicateSuper ] ,
148
161
[ "no-duplicate-switch-case" , convertNoDuplicateSwitchCase ] ,
149
162
[ "no-empty-interface" , convertNoEmptyInterface ] ,
163
+ [ "no-empty" , convertNoEmpty ] ,
150
164
[ "no-eval" , convertNoEval ] ,
151
165
[ "no-floating-promises" , convertNoFloatingPromises ] ,
152
- [ "no-for-in" , convertNoForIn ] ,
153
166
[ "no-for-in-array" , convertNoForInArray ] ,
167
+ [ "no-for-in" , convertNoForIn ] ,
154
168
[ "no-inferrable-types" , convertNoInferrableTypes ] ,
155
169
[ "no-internal-module" , convertNoInternalModule ] ,
170
+ [ "no-invalid-regexp" , convertNoInvalidRegexp ] ,
171
+ [ "no-invalid-template-strings" , convertNoInvalidTemplateStrings ] ,
172
+ [ "no-invalid-this" , convertNoInvalidThis ] ,
156
173
[ "no-irregular-whitespace" , convertNoIrregularWhitespace ] ,
174
+ [ "no-magic-numbers" , convertNoMagicNumbers ] ,
157
175
[ "no-misused-new" , convertNoMisusedNew ] ,
176
+ [ "no-multiline-string" , convertNoMultilineString ] ,
158
177
[ "no-namespace" , convertNoNamespace ] ,
159
178
[ "no-non-null-assertion" , convertNoNonNullAssertion ] ,
160
179
[ "no-object-literal-type-assertion" , convertNoObjectLiteralTypeAssertion ] ,
180
+ [ "no-octal-literal" , convertNoOctalLiteral ] ,
161
181
[ "no-parameter-properties" , convertNoParameterProperties ] ,
162
182
[ "no-parameter-reassignment" , convertNoParameterReassignment ] ,
163
183
[ "no-reference" , convertNoReference ] ,
184
+ [ "no-regex-spaces" , convertNoRegexSpaces ] ,
164
185
[ "no-require-imports" , convertNoRequireImports ] ,
165
186
[ "no-return-await" , convertNoReturnAwait ] ,
166
187
[ "no-sparse-arrays" , convertNoSparseArrays ] ,
167
188
[ "no-string-literal" , convertNoStringLiteral ] ,
168
189
[ "no-string-throw" , convertNoStringThrow ] ,
169
190
[ "no-switch-case-fall-through" , convertNoSwitchCaseFallThrough ] ,
170
- [ "no-trailing-whitespace" , convertNoTrailingWhitespace ] ,
171
191
[ "no-this-assignment" , convertNoThisAssignment ] ,
192
+ [ "no-trailing-whitespace" , convertNoTrailingWhitespace ] ,
172
193
[ "no-unbound-method" , convertNoUnboundMethod ] ,
173
194
[ "no-unnecessary-class" , convertNoUnnecessaryClass ] ,
174
195
[ "no-unnecessary-initializer" , convertNoUnnecessaryInitializer ] ,
175
196
[ "no-unnecessary-qualifier" , convertNoUnnecessaryQualifier ] ,
197
+ [ "no-unnecessary-semicolons" , convertNoUnnecessarySemicolons ] ,
176
198
[ "no-unnecessary-type-assertion" , convertNoUnnecessaryTypeAssertion ] ,
177
199
[ "no-unsafe-finally" , convertNoUnsafeFinally ] ,
178
200
[ "no-use-before-declare" , convertNoUseBeforeDeclare ] ,
179
201
[ "no-var-keyword" , convertNoVarKeyword ] ,
180
202
[ "no-var-requires" , convertNoVarRequires ] ,
181
203
[ "no-void-expression" , convertNoVoidExpression ] ,
204
+ [ "object-literal-key-quotes" , convertObjectLiteralKeyQuotes ] ,
205
+ [ "object-literal-shorthand" , convertObjectLiteralShorthand ] ,
206
+ [ "one-variable-per-declaration" , convertOneVariablePerDeclaration ] ,
207
+ [ "only-arrow-functions" , convertOnlyArrowFunctions ] ,
208
+ [ "prefer-const" , convertPreferConst ] ,
182
209
[ "prefer-for-of" , convertPreferForOf ] ,
210
+ [ "prefer-function-over-method" , convertPreferFunctionOverMethod ] ,
183
211
[ "prefer-object-spread" , convertPreferObjectSpread ] ,
212
+ [ "prefer-readonly" , convertPreferReadonly ] ,
213
+ [ "prefer-template" , convertPreferTemplate ] ,
184
214
[ "promise-function-async" , convertPromiseFunctionAsync ] ,
215
+ [ "quotemark" , convertQuotemark ] ,
185
216
[ "radix" , convertRadix ] ,
186
217
[ "restrict-plus-operands" , convertRestrictPlusOperands ] ,
218
+ [ "space-before-function-paren" , convertSpaceBeforeFunctionParen ] ,
219
+ [ "switch-default" , convertSwitchDefault ] ,
220
+ [ "triple-equals" , convertTripleEquals ] ,
187
221
[ "type-literal-delimiter" , convertTypeLiteralDelimiter ] ,
188
222
[ "typedef-whitespace" , convertTypedefWhitespace ] ,
189
223
[ "typeof-compare" , convertTypeofCompare ] ,
190
224
[ "unified-signatures" , convertUnifiedSignatures ] ,
191
225
[ "unnecessary-bind" , convertUnnecessaryBind ] ,
192
226
[ "unnecessary-constructor" , convertUnnecessaryConstructor ] ,
193
227
[ "use-isnan" , convertUseIsnan ] ,
194
- [ "arrow-return-shorthand" , convertArrowReturnShorthand ] ,
195
- [ "curly" , convertCurly ] ,
196
- [ "cyclomatic-complexity" , convertCyclomaticComplexity ] ,
197
- [ "increment-decrement" , convertIncrementDecrement ] ,
198
- [ "linebreak-style" , convertLinebreakStyle ] ,
199
- [ "max-classes-per-file" , convertMaxClassesPerFile ] ,
200
- [ "max-file-line-count" , convertMaxFileLineCount ] ,
201
- [ "max-line-length" , convertMaxLineLength ] ,
202
- [ "no-consecutive-blank-lines" , convertNoConsecutiveBlankLines ] ,
203
- [ "no-console" , convertNoConsole ] ,
204
- [ "no-empty" , convertNoEmpty ] ,
205
- [ "no-invalid-template-strings" , convertNoInvalidTemplateStrings ] ,
206
- [ "no-invalid-this" , convertNoInvalidThis ] ,
207
- [ "no-magic-numbers" , convertNoMagicNumbers ] ,
208
- [ "object-literal-key-quotes" , convertObjectLiteralKeyQuotes ] ,
209
- [ "object-literal-shorthand" , convertObjectLiteralShorthand ] ,
210
- [ "one-variable-per-declaration" , convertOneVariablePerDeclaration ] ,
211
- [ "only-arrow-functions" , convertOnlyArrowFunctions ] ,
212
- [ "prefer-const" , convertPreferConst ] ,
213
- [ "prefer-function-over-method" , convertPreferFunctionOverMethod ] ,
214
- [ "prefer-readonly" , convertPreferReadonly ] ,
215
- [ "prefer-template" , convertPreferTemplate ] ,
216
- [ "space-before-function-paren" , convertSpaceBeforeFunctionParen ] ,
217
- [ "switch-default" , convertSwitchDefault ] ,
218
- [ "no-banned-terms" , convertNoBannedTerms ] ,
219
- [ "no-constant-condition" , convertNoConstantCondition ] ,
220
- [ "no-control-regex" , convertNoControlRegex ] ,
221
- [ "no-multiline-string" , convertNoMultilineString ] ,
222
- [ "no-invalid-regexp" , convertNoInvalidRegexp ] ,
223
- [ "no-octal-literal" , convertNoOctalLiteral ] ,
224
- [ "no-regex-spaces" , convertNoRegexSpaces ] ,
225
- [ "no-unnecessary-semicolons" , convertNoUnnecessarySemicolons ] ,
226
- [ "quotemark" , convertQuotemark ] ,
227
- [ "triple-equals" , convertTripleEquals ] ,
228
228
229
229
// These converters are all for rules that need more complex option conversions.
230
230
// Some of them will likely need to have notices about changed lint behaviors...
@@ -236,9 +236,7 @@ export const converters = new Map([
236
236
// ["import-blacklist", convertImportBlacklist], // no-restricted-imports
237
237
// ["no-duplicate-variable", convertNoDuplicateVariable], // no-redeclare
238
238
// ["no-shadowed-variable", convertNoShadowedVariable], // no-shadow
239
- // ["no-trailing-whitespace", convertNoTrailingWhitespace], // no-trailing-spaces
240
239
// ["no-unused-expression", convertNoUnusedExpression], // no-unused-expressions
241
- // ["no-void-expression", convertNoVoidExpression], // (no exact equivalent)
242
240
// ["space-within-parens", convertSpaceWithinParens], // space-in-parens
243
241
// ["variable-name", convertVariableName], // a bunch of rules...
244
242
0 commit comments