Skip to content

Commit 8b0f6dd

Browse files
author
Josh Goldberg
committed
Cleanup: converters.ts post merge sorting and pruning
1 parent 9df14a2 commit 8b0f6dd

File tree

1 file changed

+36
-38
lines changed

1 file changed

+36
-38
lines changed

src/rules/converters.ts

Lines changed: 36 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -117,20 +117,28 @@ export const converters = new Map([
117117
["adjacent-overload-signatures", convertAdjacentOverloadSignatures],
118118
["array-type", convertArrayType],
119119
["arrow-parens", convertArrowParens],
120+
["arrow-return-shorthand", convertArrowReturnShorthand],
120121
["await-promise", convertAwaitPromise],
121122
["ban-comma-operator", convertBanCommaOperator],
122123
["ban-ts-ignore", convertBanTsIgnore],
123124
["ban-types", convertBanTypes],
124125
["binary-expression-operand-order", convertBinaryExpressionOperandOrder],
125126
["callable-types", convertCallableTypes],
126127
["class-name", convertClassName],
128+
["curly", convertCurly],
129+
["cyclomatic-complexity", convertCyclomaticComplexity],
127130
["eofline", convertEofline],
128131
["forin", convertForin],
129132
["function-constructor", convertFunctionConstructor],
133+
["increment-decrement", convertIncrementDecrement],
130134
["indent", convertIndent],
131135
["interface-name", convertInterfaceName],
132136
["interface-over-type-literal", convertInterfaceOverTypeLiteral],
133137
["label-position", convertLabelPosition],
138+
["linebreak-style", convertLinebreakStyle],
139+
["max-classes-per-file", convertMaxClassesPerFile],
140+
["max-file-line-count", convertMaxFileLineCount],
141+
["max-line-length", convertMaxLineLength],
134142
["member-access", convertMemberAccess],
135143
["member-ordering", convertMemberOrdering],
136144
["new-parens", convertNewParens],
@@ -139,92 +147,84 @@ export const converters = new Map([
139147
["no-angle-bracket-type-assertion", convertNoAngleBracketTypeAssertion],
140148
["no-any", convertNoExplicitAny],
141149
["no-arg", convertNoArg],
150+
["no-banned-terms", convertNoBannedTerms],
142151
["no-bitwise", convertNoBitwise],
143152
["no-conditional-assignment", convertNoConditionalAssignment],
153+
["no-consecutive-blank-lines", convertNoConsecutiveBlankLines],
154+
["no-console", convertNoConsole],
155+
["no-constant-condition", convertNoConstantCondition],
144156
["no-construct", convertNoConstruct],
157+
["no-control-regex", convertNoControlRegex],
145158
["no-debugger", convertNoDebugger],
146159
["no-duplicate-imports", convertNoDuplicateImports],
147160
["no-duplicate-super", convertNoDuplicateSuper],
148161
["no-duplicate-switch-case", convertNoDuplicateSwitchCase],
149162
["no-empty-interface", convertNoEmptyInterface],
163+
["no-empty", convertNoEmpty],
150164
["no-eval", convertNoEval],
151165
["no-floating-promises", convertNoFloatingPromises],
152-
["no-for-in", convertNoForIn],
153166
["no-for-in-array", convertNoForInArray],
167+
["no-for-in", convertNoForIn],
154168
["no-inferrable-types", convertNoInferrableTypes],
155169
["no-internal-module", convertNoInternalModule],
170+
["no-invalid-regexp", convertNoInvalidRegexp],
171+
["no-invalid-template-strings", convertNoInvalidTemplateStrings],
172+
["no-invalid-this", convertNoInvalidThis],
156173
["no-irregular-whitespace", convertNoIrregularWhitespace],
174+
["no-magic-numbers", convertNoMagicNumbers],
157175
["no-misused-new", convertNoMisusedNew],
176+
["no-multiline-string", convertNoMultilineString],
158177
["no-namespace", convertNoNamespace],
159178
["no-non-null-assertion", convertNoNonNullAssertion],
160179
["no-object-literal-type-assertion", convertNoObjectLiteralTypeAssertion],
180+
["no-octal-literal", convertNoOctalLiteral],
161181
["no-parameter-properties", convertNoParameterProperties],
162182
["no-parameter-reassignment", convertNoParameterReassignment],
163183
["no-reference", convertNoReference],
184+
["no-regex-spaces", convertNoRegexSpaces],
164185
["no-require-imports", convertNoRequireImports],
165186
["no-return-await", convertNoReturnAwait],
166187
["no-sparse-arrays", convertNoSparseArrays],
167188
["no-string-literal", convertNoStringLiteral],
168189
["no-string-throw", convertNoStringThrow],
169190
["no-switch-case-fall-through", convertNoSwitchCaseFallThrough],
170-
["no-trailing-whitespace", convertNoTrailingWhitespace],
171191
["no-this-assignment", convertNoThisAssignment],
192+
["no-trailing-whitespace", convertNoTrailingWhitespace],
172193
["no-unbound-method", convertNoUnboundMethod],
173194
["no-unnecessary-class", convertNoUnnecessaryClass],
174195
["no-unnecessary-initializer", convertNoUnnecessaryInitializer],
175196
["no-unnecessary-qualifier", convertNoUnnecessaryQualifier],
197+
["no-unnecessary-semicolons", convertNoUnnecessarySemicolons],
176198
["no-unnecessary-type-assertion", convertNoUnnecessaryTypeAssertion],
177199
["no-unsafe-finally", convertNoUnsafeFinally],
178200
["no-use-before-declare", convertNoUseBeforeDeclare],
179201
["no-var-keyword", convertNoVarKeyword],
180202
["no-var-requires", convertNoVarRequires],
181203
["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],
182209
["prefer-for-of", convertPreferForOf],
210+
["prefer-function-over-method", convertPreferFunctionOverMethod],
183211
["prefer-object-spread", convertPreferObjectSpread],
212+
["prefer-readonly", convertPreferReadonly],
213+
["prefer-template", convertPreferTemplate],
184214
["promise-function-async", convertPromiseFunctionAsync],
215+
["quotemark", convertQuotemark],
185216
["radix", convertRadix],
186217
["restrict-plus-operands", convertRestrictPlusOperands],
218+
["space-before-function-paren", convertSpaceBeforeFunctionParen],
219+
["switch-default", convertSwitchDefault],
220+
["triple-equals", convertTripleEquals],
187221
["type-literal-delimiter", convertTypeLiteralDelimiter],
188222
["typedef-whitespace", convertTypedefWhitespace],
189223
["typeof-compare", convertTypeofCompare],
190224
["unified-signatures", convertUnifiedSignatures],
191225
["unnecessary-bind", convertUnnecessaryBind],
192226
["unnecessary-constructor", convertUnnecessaryConstructor],
193227
["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],
228228

229229
// These converters are all for rules that need more complex option conversions.
230230
// Some of them will likely need to have notices about changed lint behaviors...
@@ -236,9 +236,7 @@ export const converters = new Map([
236236
// ["import-blacklist", convertImportBlacklist], // no-restricted-imports
237237
// ["no-duplicate-variable", convertNoDuplicateVariable], // no-redeclare
238238
// ["no-shadowed-variable", convertNoShadowedVariable], // no-shadow
239-
// ["no-trailing-whitespace", convertNoTrailingWhitespace], // no-trailing-spaces
240239
// ["no-unused-expression", convertNoUnusedExpression], // no-unused-expressions
241-
// ["no-void-expression", convertNoVoidExpression], // (no exact equivalent)
242240
// ["space-within-parens", convertSpaceWithinParens], // space-in-parens
243241
// ["variable-name", convertVariableName], // a bunch of rules...
244242

0 commit comments

Comments
 (0)