diff --git a/src/converters/lintConfigs/rules/ruleConverters.ts b/src/converters/lintConfigs/rules/ruleConverters.ts index eaee02140..80e7d4ef0 100644 --- a/src/converters/lintConfigs/rules/ruleConverters.ts +++ b/src/converters/lintConfigs/rules/ruleConverters.ts @@ -1,5 +1,6 @@ import { convertAdjacentOverloadSignatures } from "./ruleConverters/adjacent-overload-signatures"; import { convertAlign } from "./ruleConverters/align"; +import { convertAngularWhitespace } from "./ruleConverters/angular-whitespace"; import { convertArrayType } from "./ruleConverters/array-type"; import { convertArrowParens } from "./ruleConverters/arrow-parens"; import { convertArrowReturnShorthand } from "./ruleConverters/arrow-return-shorthand"; @@ -10,202 +11,79 @@ import { convertBanTypes } from "./ruleConverters/ban-types"; import { convertBinaryExpressionOperandOrder } from "./ruleConverters/binary-expression-operand-order"; import { convertCallableTypes } from "./ruleConverters/callable-types"; import { convertClassName } from "./ruleConverters/class-name"; -import { convertAngularWhitespace } from "./ruleConverters/codelyzer/angular-whitespace"; -import { convertComponentClassSuffix } from "./ruleConverters/codelyzer/component-class-suffix"; -import { convertComponentMaxInlineDeclarations } from "./ruleConverters/codelyzer/component-max-inline-declarations"; -import { convertComponentSelector } from "./ruleConverters/codelyzer/component-selector"; -import { convertContextualDecorator } from "./ruleConverters/codelyzer/contextual-decorator"; -import { convertContextualLifecycle } from "./ruleConverters/codelyzer/contextual-lifecycle"; -import { convertDirectiveClassSuffix } from "./ruleConverters/codelyzer/directive-class-suffix"; -import { convertDirectiveSelector } from "./ruleConverters/codelyzer/directive-selector"; -import { convertImportDestructuringSpacing } from "./ruleConverters/codelyzer/import-destructuring-spacing"; -import { convertNoAttributeDecorator } from "./ruleConverters/codelyzer/no-attribute-decorator"; -import { convertNoConflictingLifecycle } from "./ruleConverters/codelyzer/no-conflicting-lifecycle"; -import { convertNoForwardRef } from "./ruleConverters/codelyzer/no-forward-ref"; -import { convertNoHostMetadataProperty } from "./ruleConverters/codelyzer/no-host-metadata-property"; -import { convertNoInputPrefix } from "./ruleConverters/codelyzer/no-input-prefix"; -import { convertNoInputRename } from "./ruleConverters/codelyzer/no-input-rename"; -import { convertNoInputsMetadataProperty } from "./ruleConverters/codelyzer/no-inputs-metadata-property"; -import { convertNoLifecycleCall } from "./ruleConverters/codelyzer/no-lifecycle-call"; -import { convertNoOutputNative } from "./ruleConverters/codelyzer/no-output-native"; -import { convertNoOutputOnPrefix } from "./ruleConverters/codelyzer/no-output-on-prefix"; -import { convertNoOutputRename } from "./ruleConverters/codelyzer/no-output-rename"; -import { convertNoOutputsMetadataProperty } from "./ruleConverters/codelyzer/no-outputs-metadata-property"; -import { convertNoPipeImpure } from "./ruleConverters/codelyzer/no-pipe-impure"; -import { convertNoQueriesMetadataProperty } from "./ruleConverters/codelyzer/no-queries-metadata-property"; -import { convertPipePrefix } from "./ruleConverters/codelyzer/pipe-prefix"; -import { convertPreferInlineDecorator } from "./ruleConverters/codelyzer/prefer-inline-decorator"; -import { convertPreferOnPushComponentChangeDetection } from "./ruleConverters/codelyzer/prefer-on-push-component-change-detection"; -import { convertPreferOutputReadonly } from "./ruleConverters/codelyzer/prefer-output-readonly"; -import { convertRelativeUrlPrefix } from "./ruleConverters/codelyzer/relative-url-prefix"; -import { convertTemplateAccessibilityAltText } from "./ruleConverters/codelyzer/template-accessibility-alt-text"; -import { convertTemplateAccessibilityElementsContent } from "./ruleConverters/codelyzer/template-accessibility-elements-content"; -import { convertTemplateAccessibilityLabelFor } from "./ruleConverters/codelyzer/template-accessibility-label-for"; -import { convertTemplateAccessibilityTabindexNoPositive } from "./ruleConverters/codelyzer/template-accessibility-tabindex-no-positive"; -import { convertTemplateAccessibilityTableScope } from "./ruleConverters/codelyzer/template-accessibility-table-scope"; -import { convertTemplateAccessibilityValidAria } from "./ruleConverters/codelyzer/template-accessibility-valid-aria"; -import { convertTemplateBananaInBox } from "./ruleConverters/codelyzer/template-banana-in-box"; -import { convertTemplateClickEventsHaveKeyEvents } from "./ruleConverters/codelyzer/template-click-events-have-key-events"; -import { convertTemplateConditionalComplexity } from "./ruleConverters/codelyzer/template-conditional-complexity"; -import { convertTemplateCyclomaticComplexity } from "./ruleConverters/codelyzer/template-cyclomatic-complexity"; -import { convertTemplateI18N } from "./ruleConverters/codelyzer/template-i18n"; -import { convertTemplateMouseEventsHaveKeyEvents } from "./ruleConverters/codelyzer/template-mouse-events-have-key-events"; -import { convertTemplateNoAny } from "./ruleConverters/codelyzer/template-no-any"; -import { convertTemplateNoAutofocus } from "./ruleConverters/codelyzer/template-no-autofocus"; -import { convertTemplateNoCallExpression } from "./ruleConverters/codelyzer/template-no-call-expression"; -import { convertTemplateNoDistractingElements } from "./ruleConverters/codelyzer/template-no-distracting-elements"; -import { convertTemplateNoNegatedAsync } from "./ruleConverters/codelyzer/template-no-negated-async"; -import { convertTemplateUseTrackByFunction } from "./ruleConverters/codelyzer/template-use-track-by-function"; -import { convertUseComponentSelector } from "./ruleConverters/codelyzer/use-component-selector"; -import { convertUseComponentViewEncapsulation } from "./ruleConverters/codelyzer/use-component-view-encapsulation"; -import { convertUseInjectableProvidedIn } from "./ruleConverters/codelyzer/use-injectable-provided-in"; -import { convertUseLifecycleInterface } from "./ruleConverters/codelyzer/use-lifecycle-interface"; -import { convertUsePipeDecorator } from "./ruleConverters/codelyzer/use-pipe-decorator"; -import { convertUsePipeTransformInterface } from "./ruleConverters/codelyzer/use-pipe-transform-interface"; +import { convertCognitiveComplexity } from "./ruleConverters/cognitive-complexity"; import { convertCommentFormat } from "./ruleConverters/comment-format"; +import { convertComponentClassSuffix } from "./ruleConverters/component-class-suffix"; +import { convertComponentMaxInlineDeclarations } from "./ruleConverters/component-max-inline-declarations"; +import { convertComponentSelector } from "./ruleConverters/component-selector"; +import { convertConsecutiveOverloads } from "./ruleConverters/consecutive-overloads"; +import { convertContextualDecorator } from "./ruleConverters/contextual-decorator"; +import { convertContextualLifecycle } from "./ruleConverters/contextual-lifecycle"; import { convertCurly } from "./ruleConverters/curly"; import { convertCyclomaticComplexity } from "./ruleConverters/cyclomatic-complexity"; import { convertDeprecation } from "./ruleConverters/deprecation"; +import { convertDirectiveClassSuffix } from "./ruleConverters/directive-class-suffix"; +import { convertDirectiveSelector } from "./ruleConverters/directive-selector"; import { convertEofline } from "./ruleConverters/eofline"; -import { convertJsxBanProps } from "./ruleConverters/eslint-plugin-react/jsx-ban-props"; -import { convertJsxBooleanValue } from "./ruleConverters/eslint-plugin-react/jsx-boolean-value"; -import { convertJsxCurlySpacing } from "./ruleConverters/eslint-plugin-react/jsx-curly-spacing"; -import { convertJsxEqualsSpacing } from "./ruleConverters/eslint-plugin-react/jsx-equals-spacing"; -import { convertJsxKey } from "./ruleConverters/eslint-plugin-react/jsx-key"; -import { convertJsxNoBind } from "./ruleConverters/eslint-plugin-react/jsx-no-bind"; -import { convertJsxNoLambda } from "./ruleConverters/eslint-plugin-react/jsx-no-lambda"; -import { convertJsxSelfClose } from "./ruleConverters/eslint-plugin-react/jsx-self-close"; -import { convertJsxSpaceBeforeTrailingSlash } from "./ruleConverters/eslint-plugin-react/jsx-space-before-trailing-slash"; -import { convertJsxWrapMultiline } from "./ruleConverters/eslint-plugin-react/jsx-wrap-multiline"; -import { convertAdd } from "./ruleConverters/eslint-plugin-rxjs/add"; -import { convertBanObservables } from "./ruleConverters/eslint-plugin-rxjs/ban-observables"; -import { convertBanOperators } from "./ruleConverters/eslint-plugin-rxjs/ban-operators"; -import { convertDeepOperators } from "./ruleConverters/eslint-plugin-rxjs/deep-operators"; -import { convertFinnish } from "./ruleConverters/eslint-plugin-rxjs/finnish"; -import { convertJust } from "./ruleConverters/eslint-plugin-rxjs/just"; -import { convertNoAdd } from "./ruleConverters/eslint-plugin-rxjs/no-add"; -import { convertNoAsyncSubscribe } from "./ruleConverters/eslint-plugin-rxjs/no-async-subscribe"; -import { convertNoCompat } from "./ruleConverters/eslint-plugin-rxjs/no-compat"; -import { convertNoConnectable } from "./ruleConverters/eslint-plugin-rxjs/no-connectable"; -import { convertNoCreate } from "./ruleConverters/eslint-plugin-rxjs/no-create"; -import { convertNoDeepOperators } from "./ruleConverters/eslint-plugin-rxjs/no-deep-operators"; -import { convertNoExplicitGenerics } from "./ruleConverters/eslint-plugin-rxjs/no-explicit-generics"; -import { convertNoExposedSubjects } from "./ruleConverters/eslint-plugin-rxjs/no-exposed-subjects"; -import { convertNoFinnish } from "./ruleConverters/eslint-plugin-rxjs/no-finnish"; -import { convertNoIgnoredError } from "./ruleConverters/eslint-plugin-rxjs/no-ignored-error"; -import { convertNoIgnoredNotifier } from "./ruleConverters/eslint-plugin-rxjs/no-ignored-notifier"; -import { convertNoIgnoredObservable } from "./ruleConverters/eslint-plugin-rxjs/no-ignored-observable"; -import { convertNoIgnoredReplayBuffer } from "./ruleConverters/eslint-plugin-rxjs/no-ignored-replay-buffer"; -import { convertNoIgnoredSubscribe } from "./ruleConverters/eslint-plugin-rxjs/no-ignored-subscribe"; -import { convertNoIgnoredSubscription } from "./ruleConverters/eslint-plugin-rxjs/no-ignored-subscription"; -import { convertNoIgnoredTakewhileValue } from "./ruleConverters/eslint-plugin-rxjs/no-ignored-takewhile-value"; -import { convertNoImplicitAnyCatch } from "./ruleConverters/eslint-plugin-rxjs/no-implicit-any-catch"; -import { convertNoIndex } from "./ruleConverters/eslint-plugin-rxjs/no-index"; -import { convertNoInternal } from "./ruleConverters/eslint-plugin-rxjs/no-internal"; -import { convertNoNestedSubscribe } from "./ruleConverters/eslint-plugin-rxjs/no-nested-subscribe"; -import { convertNoOperator } from "./ruleConverters/eslint-plugin-rxjs/no-operator"; -import { convertNoPatched } from "./ruleConverters/eslint-plugin-rxjs/no-patched"; -import { convertNoRedundantNotify } from "./ruleConverters/eslint-plugin-rxjs/no-redundant-notify"; -import { convertNoShareReplay } from "./ruleConverters/eslint-plugin-rxjs/no-sharereplay"; -import { convertNoSubclass } from "./ruleConverters/eslint-plugin-rxjs/no-subclass"; -import { convertNoSubjectUnubscribe } from "./ruleConverters/eslint-plugin-rxjs/no-subject-unsubscribe"; -import { convertNoSubjectValue } from "./ruleConverters/eslint-plugin-rxjs/no-subject-value"; -import { convertNoTap } from "./ruleConverters/eslint-plugin-rxjs/no-tap"; -import { convertNoToPromise } from "./ruleConverters/eslint-plugin-rxjs/no-topromise"; -import { convertNoUnboundMethods } from "./ruleConverters/eslint-plugin-rxjs/no-unbound-methods"; -import { convertNoUnsafeCatch } from "./ruleConverters/eslint-plugin-rxjs/no-unsafe-catch"; -import { convertNoUnsafeFirst } from "./ruleConverters/eslint-plugin-rxjs/no-unsafe-first"; -import { convertNoUnsafeScope } from "./ruleConverters/eslint-plugin-rxjs/no-unsafe-scope"; -import { convertNoUnsafeSubjectNext } from "./ruleConverters/eslint-plugin-rxjs/no-unsafe-subject-next"; -import { convertNoUnsafeSwitchmap } from "./ruleConverters/eslint-plugin-rxjs/no-unsafe-switchmap"; -import { convertNoUnsafeTakeuntil } from "./ruleConverters/eslint-plugin-rxjs/no-unsafe-takeuntil"; -import { convertNoUnsafeTakewhile } from "./ruleConverters/eslint-plugin-rxjs/no-unsafe-takewhile"; -import { convertNoUnusedAdd } from "./ruleConverters/eslint-plugin-rxjs/no-unused-add"; -import { convertNoWholesale } from "./ruleConverters/eslint-plugin-rxjs/no-wholesale"; -import { convertPreferAdd } from "./ruleConverters/eslint-plugin-rxjs/prefer-add"; -import { convertPreferAngularAsyncPipe } from "./ruleConverters/eslint-plugin-rxjs/prefer-angular-async-pipe"; -import { convertPreferAngularComposition } from "./ruleConverters/eslint-plugin-rxjs/prefer-angular-composition"; -import { convertPreferAngularTakeuntil } from "./ruleConverters/eslint-plugin-rxjs/prefer-angular-takeuntil"; -import { convertPreferObserver } from "./ruleConverters/eslint-plugin-rxjs/prefer-observer"; -import { convertSuffixSubjects } from "./ruleConverters/eslint-plugin-rxjs/suffix-subjects"; -import { convertThrowError } from "./ruleConverters/eslint-plugin-rxjs/throw-error"; -import { convertCognitiveComplexity } from "./ruleConverters/eslint-plugin-sonarjs/cognitive-complexity"; -import { convertConsecutiveOverloads } from "./ruleConverters/eslint-plugin-sonarjs/consecutive-overloads"; -import { convertMaxSwitchCases } from "./ruleConverters/eslint-plugin-sonarjs/max-switch-cases"; -import { convertNoAllDuplicatedBranches } from "./ruleConverters/eslint-plugin-sonarjs/no-all-duplicated-branches"; -import { convertNoAlphabeticalSort } from "./ruleConverters/eslint-plugin-sonarjs/no-alphabetical-sort"; -import { convertNoBigFunction } from "./ruleConverters/eslint-plugin-sonarjs/no-big-function"; -import { convertNoCollapsibleIf } from "./ruleConverters/eslint-plugin-sonarjs/no-collapsible-if"; -import { convertNoCollectionSizeMischeck } from "./ruleConverters/eslint-plugin-sonarjs/no-collection-size-mischeck"; -import { convertNoDuplicateString } from "./ruleConverters/eslint-plugin-sonarjs/no-duplicate-string"; -import { convertNoDuplicatedBranches } from "./ruleConverters/eslint-plugin-sonarjs/no-duplicated-branches"; -import { convertNoElementOverwrite } from "./ruleConverters/eslint-plugin-sonarjs/no-element-overwrite"; -import { convertNoEmptyDestructuring } from "./ruleConverters/eslint-plugin-sonarjs/no-empty-destructuring"; -import { convertNoEmptyNestedBlocks } from "./ruleConverters/eslint-plugin-sonarjs/no-empty-nested-blocks"; -import { convertNoExtraSemicolon } from "./ruleConverters/eslint-plugin-sonarjs/no-extra-semicolon"; -import { convertNoIdenticalConditions } from "./ruleConverters/eslint-plugin-sonarjs/no-identical-conditions"; -import { convertNoIdenticalExpressions } from "./ruleConverters/eslint-plugin-sonarjs/no-identical-expressions"; -import { convertNoIdenticalFunctions } from "./ruleConverters/eslint-plugin-sonarjs/no-identical-functions"; -import { convertNoInMisuse } from "./ruleConverters/eslint-plugin-sonarjs/no-in-misuse"; -import { convertNoInvalidAwait } from "./ruleConverters/eslint-plugin-sonarjs/no-invalid-await"; -import { convertNoInvertedBooleanCheck } from "./ruleConverters/eslint-plugin-sonarjs/no-inverted-boolean-check"; -import { convertNoMultilineStringLiterals } from "./ruleConverters/eslint-plugin-sonarjs/no-multiline-string-literals"; -import { convertNoRedundantBoolean } from "./ruleConverters/eslint-plugin-sonarjs/no-redundant-boolean"; -import { convertNoRedundantJump } from "./ruleConverters/eslint-plugin-sonarjs/no-redundant-jump"; -import { convertNoRedundantParentheses } from "./ruleConverters/eslint-plugin-sonarjs/no-redundant-parentheses"; -import { convertNoSameLineConditional } from "./ruleConverters/eslint-plugin-sonarjs/no-same-line-conditional"; -import { convertNoSelfAssignment } from "./ruleConverters/eslint-plugin-sonarjs/no-self-assignment"; -import { convertNoSmallSwitch } from "./ruleConverters/eslint-plugin-sonarjs/no-small-switch"; -import { convertNoUnconditionalJump } from "./ruleConverters/eslint-plugin-sonarjs/no-unconditional-jump"; -import { convertNoUnusedArray } from "./ruleConverters/eslint-plugin-sonarjs/no-unused-array"; -import { convertNoUseOfEmptyReturnValue } from "./ruleConverters/eslint-plugin-sonarjs/no-use-of-empty-return-value"; -import { convertNoUselessCast } from "./ruleConverters/eslint-plugin-sonarjs/no-useless-cast"; -import { convertNoUselessCatch } from "./ruleConverters/eslint-plugin-sonarjs/no-useless-catch"; -import { convertNoVariableUsageBeforeDeclaration } from "./ruleConverters/eslint-plugin-sonarjs/no-variable-usage-before-declaration"; -import { convertParametersMaxNumber } from "./ruleConverters/eslint-plugin-sonarjs/parameters-max-number"; -import { convertPreferDefaultLast } from "./ruleConverters/eslint-plugin-sonarjs/prefer-default-last"; -import { convertPreferImmediateReturn } from "./ruleConverters/eslint-plugin-sonarjs/prefer-immediate-return"; -import { convertUsePrimitiveType } from "./ruleConverters/eslint-plugin-sonarjs/use-primitive-type"; import { convertFileNameCasing } from "./ruleConverters/file-name-casing"; import { convertForin } from "./ruleConverters/forin"; import { convertFunctionConstructor } from "./ruleConverters/function-constructor"; import { convertImportBlacklist } from "./ruleConverters/import-blacklist"; +import { convertImportDestructuringSpacing } from "./ruleConverters/import-destructuring-spacing"; import { convertIncrementDecrement } from "./ruleConverters/increment-decrement"; import { convertIndent } from "./ruleConverters/indent"; import { convertInterfaceName } from "./ruleConverters/interface-name"; import { convertInterfaceOverTypeLiteral } from "./ruleConverters/interface-over-type-literal"; import { convertJSDocFormat } from "./ruleConverters/jsdoc-format"; +import { convertJsxBanProps } from "./ruleConverters/jsx-ban-props"; +import { convertJsxBooleanValue } from "./ruleConverters/jsx-boolean-value"; +import { convertJsxCurlySpacing } from "./ruleConverters/jsx-curly-spacing"; +import { convertJsxEqualsSpacing } from "./ruleConverters/jsx-equals-spacing"; +import { convertJsxKey } from "./ruleConverters/jsx-key"; +import { convertJsxNoBind } from "./ruleConverters/jsx-no-bind"; +import { convertJsxNoLambda } from "./ruleConverters/jsx-no-lambda"; +import { convertJsxSelfClose } from "./ruleConverters/jsx-self-close"; +import { convertJsxSpaceBeforeTrailingSlash } from "./ruleConverters/jsx-space-before-trailing-slash"; +import { convertJsxWrapMultiline } from "./ruleConverters/jsx-wrap-multiline"; import { convertLabelPosition } from "./ruleConverters/label-position"; import { convertLinebreakStyle } from "./ruleConverters/linebreak-style"; import { convertMaxClassesPerFile } from "./ruleConverters/max-classes-per-file"; import { convertMaxFileLineCount } from "./ruleConverters/max-file-line-count"; import { convertMaxFuncBodyLength } from "./ruleConverters/max-func-body-length"; import { convertMaxLineLength } from "./ruleConverters/max-line-length"; +import { convertMaxSwitchCases } from "./ruleConverters/max-switch-cases"; import { convertMemberAccess } from "./ruleConverters/member-access"; import { convertMemberOrdering } from "./ruleConverters/member-ordering"; import { convertMochaAvoidOnly } from "./ruleConverters/mocha-avoid-only"; import { convertNewParens } from "./ruleConverters/new-parens"; import { convertNewlineBeforeReturn } from "./ruleConverters/newline-before-return"; import { convertNewlinePerChainedCall } from "./ruleConverters/newline-per-chained-call"; -import { convertActionHygiene } from "./ruleConverters/ngrx-tslint-rules/action-hygiene"; -import { convertAvoidDispatchingMultipleActionsSequentially } from "./ruleConverters/ngrx-tslint-rules/avoid-dispatching-multiple-actions-sequentially"; -import { convertEffectCreatorAndDecorator } from "./ruleConverters/ngrx-tslint-rules/effect-creator-and-decorator"; -import { convertNoDispatchInEffects } from "./ruleConverters/ngrx-tslint-rules/no-dispatch-in-effects"; -import { convertNoDuplicateActionTypes } from "./ruleConverters/ngrx-tslint-rules/no-duplicate-action-types"; -import { convertNoEffectDecorator } from "./ruleConverters/ngrx-tslint-rules/no-effect-decorator"; -import { convertNoEffectsInProviders } from "./ruleConverters/ngrx-tslint-rules/no-effects-in-providers"; -import { convertNoMultipleActionsInEffects } from "./ruleConverters/ngrx-tslint-rules/no-multiple-actions-in-effects"; -import { convertNoReducerInKeyNames } from "./ruleConverters/ngrx-tslint-rules/no-reducer-in-key-names"; -import { convertNoTypedStore } from "./ruleConverters/ngrx-tslint-rules/no-typed-store"; -import { convertOnReducerExplicitReturnType } from "./ruleConverters/ngrx-tslint-rules/on-reducer-explicit-return-type"; -import { convertSelectorForSelect } from "./ruleConverters/ngrx-tslint-rules/selector-for-select"; +import { convertNgrxActionHygiene } from "./ruleConverters/ngrx-action-hygiene"; +import { convertNgrxAvoidDispatchingMultipleActionsSequentially } from "./ruleConverters/ngrx-avoid-dispatching-multiple-actions-sequentially"; +import { convertNgrxEffectCreatorAndDecorator } from "./ruleConverters/ngrx-effect-creator-and-decorator"; +import { convertNgrxNoDispatchInEffects } from "./ruleConverters/ngrx-no-dispatch-in-effects"; +import { convertNgrxNoDuplicateActionTypes } from "./ruleConverters/ngrx-no-duplicate-action-types"; +import { convertNgrxNoEffectDecorator } from "./ruleConverters/ngrx-no-effect-decorator"; +import { convertNgrxNoEffectsInProviders } from "./ruleConverters/ngrx-no-effects-in-providers"; +import { convertNgrxNoMultipleActionsInEffects } from "./ruleConverters/ngrx-no-multiple-actions-in-effects"; +import { convertNgrxNoReducerInKeyNames } from "./ruleConverters/ngrx-no-reducer-in-key-names"; +import { convertNgrxNoTypedStore } from "./ruleConverters/ngrx-no-typed-store"; +import { convertNgrxOnReducerExplicitReturnType } from "./ruleConverters/ngrx-on-reducer-explicit-return-type"; +import { convertNgrxSelectorForSelect } from "./ruleConverters/ngrx-selector-for-select"; +import { convertNoAllDuplicatedBranches } from "./ruleConverters/no-all-duplicated-branches"; +import { convertNoAlphabeticalSort } from "./ruleConverters/no-alphabetical-sort"; import { convertNoAngleBracketTypeAssertion } from "./ruleConverters/no-angle-bracket-type-assertion"; import { convertNoArg } from "./ruleConverters/no-arg"; import { convertNoAsyncWithoutAwait } from "./ruleConverters/no-async-without-await"; +import { convertNoAttributeDecorator } from "./ruleConverters/no-attribute-decorator"; import { convertNoBannedTerms } from "./ruleConverters/no-banned-terms"; +import { convertNoBigFunction } from "./ruleConverters/no-big-function"; import { convertNoBitwise } from "./ruleConverters/no-bitwise"; import { convertNoBooleanLiteralCompare } from "./ruleConverters/no-boolean-literal-compare"; +import { convertNoCollapsibleIf } from "./ruleConverters/no-collapsible-if"; +import { convertNoCollectionSizeMischeck } from "./ruleConverters/no-collection-size-mischeck"; import { convertNoConditionalAssignment } from "./ruleConverters/no-conditional-assignment"; +import { convertNoConflictingLifecycle } from "./ruleConverters/no-conflicting-lifecycle"; import { convertNoConsecutiveBlankLines } from "./ruleConverters/no-consecutive-blank-lines"; import { convertNoConsole } from "./ruleConverters/no-console"; import { convertNoConstantCondition } from "./ruleConverters/no-constant-condition"; @@ -218,45 +96,76 @@ import { convertNoDeleteExpression } from "./ruleConverters/no-delete-expression import { convertNoDocumentDomain } from "./ruleConverters/no-document-domain"; import { convertNoDocumentWrite } from "./ruleConverters/no-document-write"; import { convertNoDuplicateImports } from "./ruleConverters/no-duplicate-imports"; +import { convertNoDuplicateString } from "./ruleConverters/no-duplicate-string"; import { convertNoDuplicateSuper } from "./ruleConverters/no-duplicate-super"; import { convertNoDuplicateSwitchCase } from "./ruleConverters/no-duplicate-switch-case"; import { convertNoDuplicateVariable } from "./ruleConverters/no-duplicate-variable"; +import { convertNoDuplicatedBranches } from "./ruleConverters/no-duplicated-branches"; import { convertNoDynamicDelete } from "./ruleConverters/no-dynamic-delete"; +import { convertNoElementOverwrite } from "./ruleConverters/no-element-overwrite"; import { convertNoEmpty } from "./ruleConverters/no-empty"; +import { convertNoEmptyDestructuring } from "./ruleConverters/no-empty-destructuring"; import { convertNoEmptyInterface } from "./ruleConverters/no-empty-interface"; import { convertNoEmptyLineAfterOpeningBrace } from "./ruleConverters/no-empty-line-after-opening-brace"; +import { convertNoEmptyNestedBlocks } from "./ruleConverters/no-empty-nested-blocks"; import { convertNoEval } from "./ruleConverters/no-eval"; import { convertNoExecScript } from "./ruleConverters/no-exec-script"; import { convertNoExplicitAny } from "./ruleConverters/no-explicit-any"; +import { convertNoExtraSemicolon } from "./ruleConverters/no-extra-semicolon"; import { convertNoFloatingPromises } from "./ruleConverters/no-floating-promises"; import { convertNoForIn } from "./ruleConverters/no-for-in"; import { convertNoForInArray } from "./ruleConverters/no-for-in-array"; +import { convertNoForwardRef } from "./ruleConverters/no-forward-ref"; import { convertNoFunctionExpression } from "./ruleConverters/no-function-expression"; +import { convertNoHostMetadataProperty } from "./ruleConverters/no-host-metadata-property"; +import { convertNoIdenticalConditions } from "./ruleConverters/no-identical-conditions"; +import { convertNoIdenticalExpressions } from "./ruleConverters/no-identical-expressions"; +import { convertNoIdenticalFunctions } from "./ruleConverters/no-identical-functions"; import { convertNoImplicitDependencies } from "./ruleConverters/no-implicit-dependencies"; import { convertNoImportSideEffect } from "./ruleConverters/no-import-side-effect"; +import { convertNoInMisuse } from "./ruleConverters/no-in-misuse"; import { convertNoInferrableTypes } from "./ruleConverters/no-inferrable-types"; +import { convertNoInputPrefix } from "./ruleConverters/no-input-prefix"; +import { convertNoInputRename } from "./ruleConverters/no-input-rename"; +import { convertNoInputsMetadataProperty } from "./ruleConverters/no-inputs-metadata-property"; import { convertNoInternalModule } from "./ruleConverters/no-internal-module"; +import { convertNoInvalidAwait } from "./ruleConverters/no-invalid-await"; import { convertNoInvalidRegexp } from "./ruleConverters/no-invalid-regexp"; import { convertNoInvalidTemplateStrings } from "./ruleConverters/no-invalid-template-strings"; import { convertNoInvalidThis } from "./ruleConverters/no-invalid-this"; +import { convertNoInvertedBooleanCheck } from "./ruleConverters/no-inverted-boolean-check"; import { convertNoIrregularWhitespace } from "./ruleConverters/no-irregular-whitespace"; +import { convertNoLifecycleCall } from "./ruleConverters/no-lifecycle-call"; import { convertNoMagicNumbers } from "./ruleConverters/no-magic-numbers"; import { convertNoMisusedNew } from "./ruleConverters/no-misused-new"; import { convertNoMultilineString } from "./ruleConverters/no-multiline-string"; +import { convertNoMultilineStringLiterals } from "./ruleConverters/no-multiline-string-literals"; import { convertNoNamespace } from "./ruleConverters/no-namespace"; import { convertNoNonNullAssertion } from "./ruleConverters/no-non-null-assertion"; import { convertNoNullKeyword } from "./ruleConverters/no-null-keyword"; import { convertNoObjectLiteralTypeAssertion } from "./ruleConverters/no-object-literal-type-assertion"; import { convertNoOctalLiteral } from "./ruleConverters/no-octal-literal"; +import { convertNoOutputNative } from "./ruleConverters/no-output-native"; +import { convertNoOutputOnPrefix } from "./ruleConverters/no-output-on-prefix"; +import { convertNoOutputRename } from "./ruleConverters/no-output-rename"; +import { convertNoOutputsMetadataProperty } from "./ruleConverters/no-outputs-metadata-property"; import { convertNoParameterProperties } from "./ruleConverters/no-parameter-properties"; import { convertNoParameterReassignment } from "./ruleConverters/no-parameter-reassignment"; +import { convertNoPipeImpure } from "./ruleConverters/no-pipe-impure"; +import { convertNoQueriesMetadataProperty } from "./ruleConverters/no-queries-metadata-property"; +import { convertNoRedundantBoolean } from "./ruleConverters/no-redundant-boolean"; import { convertNoRedundantJsdoc } from "./ruleConverters/no-redundant-jsdoc"; +import { convertNoRedundantJump } from "./ruleConverters/no-redundant-jump"; +import { convertNoRedundantParentheses } from "./ruleConverters/no-redundant-parentheses"; import { convertNoReference } from "./ruleConverters/no-reference"; import { convertNoReferenceImport } from "./ruleConverters/no-reference-import"; import { convertNoRegexSpaces } from "./ruleConverters/no-regex-spaces"; import { convertNoRequireImports } from "./ruleConverters/no-require-imports"; import { convertNoReturnAwait } from "./ruleConverters/no-return-await"; +import { convertNoSameLineConditional } from "./ruleConverters/no-same-line-conditional"; +import { convertNoSelfAssignment } from "./ruleConverters/no-self-assignment"; import { convertNoShadowedVariable } from "./ruleConverters/no-shadowed-variable"; +import { convertNoSmallSwitch } from "./ruleConverters/no-small-switch"; import { convertNoSparseArrays } from "./ruleConverters/no-sparse-arrays"; import { convertNoStringLiteral } from "./ruleConverters/no-string-literal"; import { convertNoStringThrow } from "./ruleConverters/no-string-throw"; @@ -266,6 +175,7 @@ import { convertNoSwitchCaseFallThrough } from "./ruleConverters/no-switch-case- import { convertNoThisAssignment } from "./ruleConverters/no-this-assignment"; import { convertNoTrailingWhitespace } from "./ruleConverters/no-trailing-whitespace"; import { convertNoUnboundMethod } from "./ruleConverters/no-unbound-method"; +import { convertNoUnconditionalJump } from "./ruleConverters/no-unconditional-jump"; import { convertNoUnnecessaryClass } from "./ruleConverters/no-unnecessary-class"; import { convertNoUnnecessaryFieldInitialization } from "./ruleConverters/no-unnecessary-field-initialization"; import { convertNoUnnecessaryInitializer } from "./ruleConverters/no-unnecessary-initializer"; @@ -273,11 +183,16 @@ import { convertNoUnnecessaryQualifier } from "./ruleConverters/no-unnecessary-q import { convertNoUnnecessarySemicolons } from "./ruleConverters/no-unnecessary-semicolons"; import { convertNoUnnecessaryTypeAssertion } from "./ruleConverters/no-unnecessary-type-assertion"; import { convertNoUnsafeFinally } from "./ruleConverters/no-unsafe-finally"; +import { convertNoUnusedArray } from "./ruleConverters/no-unused-array"; import { convertNoUnusedExpression } from "./ruleConverters/no-unused-expression"; import { convertNoUnusedVariable } from "./ruleConverters/no-unused-variable"; import { convertNoUseBeforeDeclare } from "./ruleConverters/no-use-before-declare"; +import { convertNoUseOfEmptyReturnValue } from "./ruleConverters/no-use-of-empty-return-value"; +import { convertNoUselessCast } from "./ruleConverters/no-useless-cast"; +import { convertNoUselessCatch } from "./ruleConverters/no-useless-catch"; import { convertNoVarKeyword } from "./ruleConverters/no-var-keyword"; import { convertNoVarRequires } from "./ruleConverters/no-var-requires"; +import { convertNoVariableUsageBeforeDeclaration } from "./ruleConverters/no-variable-usage-before-declaration"; import { convertNoVoidExpression } from "./ruleConverters/no-void-expression"; import { convertNoWithStatement } from "./ruleConverters/no-with-statement"; import { convertNonLiteralFsPath } from "./ruleConverters/non-literal-fs-path"; @@ -288,13 +203,20 @@ import { convertOneLine } from "./ruleConverters/one-line"; import { convertOneVariablePerDeclaration } from "./ruleConverters/one-variable-per-declaration"; import { convertOnlyArrowFunctions } from "./ruleConverters/only-arrow-functions"; import { convertOrderedImports } from "./ruleConverters/ordered-imports"; +import { convertParametersMaxNumber } from "./ruleConverters/parameters-max-number"; +import { convertPipePrefix } from "./ruleConverters/pipe-prefix"; import { convertPossibleTimingAttack } from "./ruleConverters/possible-timing-attack"; import { convertPreferArrayLiteral } from "./ruleConverters/prefer-array-literal"; import { convertPreferConditionalExpression } from "./ruleConverters/prefer-conditional-expression"; import { convertPreferConst } from "./ruleConverters/prefer-const"; +import { convertPreferDefaultLast } from "./ruleConverters/prefer-default-last"; import { convertPreferForOf } from "./ruleConverters/prefer-for-of"; import { convertPreferFunctionOverMethod } from "./ruleConverters/prefer-function-over-method"; +import { convertPreferImmediateReturn } from "./ruleConverters/prefer-immediate-return"; +import { convertPreferInlineDecorator } from "./ruleConverters/prefer-inline-decorator"; import { convertPreferObjectSpread } from "./ruleConverters/prefer-object-spread"; +import { convertPreferOnPushComponentChangeDetection } from "./ruleConverters/prefer-on-push-component-change-detection"; +import { convertPreferOutputReadonly } from "./ruleConverters/prefer-output-readonly"; import { convertPreferReadonly } from "./ruleConverters/prefer-readonly"; import { convertPreferSwitch } from "./ruleConverters/prefer-switch"; import { convertPreferTemplate } from "./ruleConverters/prefer-template"; @@ -318,12 +240,83 @@ import { convertReactA11yTabIndexNoPositive } from "./ruleConverters/react-a11y- import { convertReactNoDangerousHtml } from "./ruleConverters/react-no-dangerous-html"; import { convertReactTsxCurlySpacing } from "./ruleConverters/react-tsx-curly-spacing"; import { convertReactUnusedPropsAndState } from "./ruleConverters/react-unused-props-and-state"; +import { convertRelativeUrlPrefix } from "./ruleConverters/relative-url-prefix"; import { convertRestrictPlusOperands } from "./ruleConverters/restrict-plus-operands"; +import { convertRxjsAdd } from "./ruleConverters/rxjs-add"; +import { convertRxjsBanObservables } from "./ruleConverters/rxjs-ban-observables"; +import { convertRxjsBanOperators } from "./ruleConverters/rxjs-ban-operators"; +import { convertRxjsDeepOperators } from "./ruleConverters/rxjs-deep-operators"; +import { convertRxjsFinnish } from "./ruleConverters/rxjs-finnish"; +import { convertRxjsJust } from "./ruleConverters/rxjs-just"; +import { convertRxjsNoAdd } from "./ruleConverters/rxjs-no-add"; +import { convertRxjsNoAsyncSubscribe } from "./ruleConverters/rxjs-no-async-subscribe"; +import { convertRxjsNoCompat } from "./ruleConverters/rxjs-no-compat"; +import { convertRxjsNoConnectable } from "./ruleConverters/rxjs-no-connectable"; +import { convertRxjsNoCreate } from "./ruleConverters/rxjs-no-create"; +import { convertRxjsNoDeepOperators } from "./ruleConverters/rxjs-no-deep-operators"; +import { convertRxjsNoExplicitGenerics } from "./ruleConverters/rxjs-no-explicit-generics"; +import { convertRxjsNoExposedSubjects } from "./ruleConverters/rxjs-no-exposed-subjects"; +import { convertRxjsNoFinnish } from "./ruleConverters/rxjs-no-finnish"; +import { convertRxjsNoIgnoredError } from "./ruleConverters/rxjs-no-ignored-error"; +import { convertRxjsNoIgnoredNotifier } from "./ruleConverters/rxjs-no-ignored-notifier"; +import { convertRxjsNoIgnoredObservable } from "./ruleConverters/rxjs-no-ignored-observable"; +import { convertRxjsNoIgnoredReplayBuffer } from "./ruleConverters/rxjs-no-ignored-replay-buffer"; +import { convertRxjsNoIgnoredSubscribe } from "./ruleConverters/rxjs-no-ignored-subscribe"; +import { convertRxjsNoIgnoredSubscription } from "./ruleConverters/rxjs-no-ignored-subscription"; +import { convertRxjsNoIgnoredTakeWhileValue } from "./ruleConverters/rxjs-no-ignored-takewhile-value"; +import { convertRxjsNoImplicitAnyCatch } from "./ruleConverters/rxjs-no-implicit-any-catch"; +import { convertRxjsNoIndex } from "./ruleConverters/rxjs-no-index"; +import { convertRxjsNoInternal } from "./ruleConverters/rxjs-no-internal"; +import { convertRxjsNoNestedSubscribe } from "./ruleConverters/rxjs-no-nested-subscribe"; +import { convertRxjsNoOperator } from "./ruleConverters/rxjs-no-operator"; +import { convertRxjsNoPatched } from "./ruleConverters/rxjs-no-patched"; +import { convertRxjsNoRedundantNotify } from "./ruleConverters/rxjs-no-redundant-notify"; +import { convertRxjsNoShareReplay } from "./ruleConverters/rxjs-no-sharereplay"; +import { convertRxjsNoSubclass } from "./ruleConverters/rxjs-no-subclass"; +import { convertRxjsNoSubjectUnubscribe } from "./ruleConverters/rxjs-no-subject-unsubscribe"; +import { convertRxjsNoSubjectValue } from "./ruleConverters/rxjs-no-subject-value"; +import { convertRxjsNoTap } from "./ruleConverters/rxjs-no-tap"; +import { convertRxjsNoToPromise } from "./ruleConverters/rxjs-no-topromise"; +import { convertRxjsNoUnboundMethods } from "./ruleConverters/rxjs-no-unbound-methods"; +import { convertRxjsNoUnsafeCatch } from "./ruleConverters/rxjs-no-unsafe-catch"; +import { convertRxjsNoUnsafeFirst } from "./ruleConverters/rxjs-no-unsafe-first"; +import { convertRxjsNoUnsafeScope } from "./ruleConverters/rxjs-no-unsafe-scope"; +import { convertRxjsNoUnsafeSubjectNext } from "./ruleConverters/rxjs-no-unsafe-subject-next"; +import { convertRxjsNoUnsafeSwitchmap } from "./ruleConverters/rxjs-no-unsafe-switchmap"; +import { convertRxjsNoUnsafeTakeUntil } from "./ruleConverters/rxjs-no-unsafe-takeuntil"; +import { convertRxjsNoUnsafeTakewhile } from "./ruleConverters/rxjs-no-unsafe-takewhile"; +import { convertRxjsNoUnusedAdd } from "./ruleConverters/rxjs-no-unused-add"; +import { convertRxjsNoWholesale } from "./ruleConverters/rxjs-no-wholesale"; +import { convertRxjsPreferAdd } from "./ruleConverters/rxjs-prefer-add"; +import { convertRxjsPreferAngularAsyncPipe } from "./ruleConverters/rxjs-prefer-angular-async-pipe"; +import { convertRxjsPreferAngularComposition } from "./ruleConverters/rxjs-prefer-angular-composition"; +import { convertRxjsPreferAngularTakeuntil } from "./ruleConverters/rxjs-prefer-angular-takeuntil"; +import { convertRxjsPreferObserver } from "./ruleConverters/rxjs-prefer-observer"; +import { convertRxjsSuffixSubjects } from "./ruleConverters/rxjs-suffix-subjects"; +import { convertRxjsThrowError } from "./ruleConverters/rxjs-throw-error"; import { convertSemicolon } from "./ruleConverters/semicolon"; import { convertSpaceBeforeFunctionParen } from "./ruleConverters/space-before-function-paren"; import { convertSpaceWithinParens } from "./ruleConverters/space-within-parens"; import { convertStrictBooleanExpressions } from "./ruleConverters/strict-boolean-expressions"; import { convertSwitchDefault } from "./ruleConverters/switch-default"; +import { convertTemplateAccessibilityAltText } from "./ruleConverters/template-accessibility-alt-text"; +import { convertTemplateAccessibilityElementsContent } from "./ruleConverters/template-accessibility-elements-content"; +import { convertTemplateAccessibilityLabelFor } from "./ruleConverters/template-accessibility-label-for"; +import { convertTemplateAccessibilityTabindexNoPositive } from "./ruleConverters/template-accessibility-tabindex-no-positive"; +import { convertTemplateAccessibilityTableScope } from "./ruleConverters/template-accessibility-table-scope"; +import { convertTemplateAccessibilityValidAria } from "./ruleConverters/template-accessibility-valid-aria"; +import { convertTemplateBananaInBox } from "./ruleConverters/template-banana-in-box"; +import { convertTemplateClickEventsHaveKeyEvents } from "./ruleConverters/template-click-events-have-key-events"; +import { convertTemplateConditionalComplexity } from "./ruleConverters/template-conditional-complexity"; +import { convertTemplateCyclomaticComplexity } from "./ruleConverters/template-cyclomatic-complexity"; +import { convertTemplateI18N } from "./ruleConverters/template-i18n"; +import { convertTemplateMouseEventsHaveKeyEvents } from "./ruleConverters/template-mouse-events-have-key-events"; +import { convertTemplateNoAny } from "./ruleConverters/template-no-any"; +import { convertTemplateNoAutofocus } from "./ruleConverters/template-no-autofocus"; +import { convertTemplateNoCallExpression } from "./ruleConverters/template-no-call-expression"; +import { convertTemplateNoDistractingElements } from "./ruleConverters/template-no-distracting-elements"; +import { convertTemplateNoNegatedAsync } from "./ruleConverters/template-no-negated-async"; +import { convertTemplateUseTrackByFunction } from "./ruleConverters/template-use-track-by-function"; import { convertTrailingComma } from "./ruleConverters/trailing-comma"; import { convertTripleEquals } from "./ruleConverters/triple-equals"; import { convertTypeLiteralDelimiter } from "./ruleConverters/type-literal-delimiter"; @@ -333,8 +326,15 @@ import { convertUnderscoreConsistentInvocation } from "./ruleConverters/undersco import { convertUnifiedSignatures } from "./ruleConverters/unified-signatures"; import { convertUnnecessaryBind } from "./ruleConverters/unnecessary-bind"; import { convertUnnecessaryConstructor } from "./ruleConverters/unnecessary-constructor"; +import { convertUseComponentSelector } from "./ruleConverters/use-component-selector"; +import { convertUseComponentViewEncapsulation } from "./ruleConverters/use-component-view-encapsulation"; import { convertUseDefaultTypeParameter } from "./ruleConverters/use-default-type-parameter"; +import { convertUseInjectableProvidedIn } from "./ruleConverters/use-injectable-provided-in"; import { convertUseIsnan } from "./ruleConverters/use-isnan"; +import { convertUseLifecycleInterface } from "./ruleConverters/use-lifecycle-interface"; +import { convertUsePipeDecorator } from "./ruleConverters/use-pipe-decorator"; +import { convertUsePipeTransformInterface } from "./ruleConverters/use-pipe-transform-interface"; +import { convertUsePrimitiveType } from "./ruleConverters/use-primitive-type"; import { convertVariableName } from "./ruleConverters/variable-name"; /** @@ -402,22 +402,21 @@ export const ruleConverters = new Map([ ["new-parens", convertNewParens], ["newline-before-return", convertNewlineBeforeReturn], ["newline-per-chained-call", convertNewlinePerChainedCall], - ["ngrx-action-hygiene", convertActionHygiene], + ["ngrx-action-hygiene", convertNgrxActionHygiene], [ "ngrx-avoid-dispatching-multiple-actions-sequentially", - convertAvoidDispatchingMultipleActionsSequentially, + convertNgrxAvoidDispatchingMultipleActionsSequentially, ], - ["ngrx-effect-creator-and-decorator", convertEffectCreatorAndDecorator], - ["ngrx-no-dispatch-in-effects", convertNoDispatchInEffects], - ["ngrx-no-duplicate-action-types", convertNoDuplicateActionTypes], - ["ngrx-no-effect-decorator", convertNoEffectDecorator], - ["ngrx-no-effects-in-providers", convertNoEffectsInProviders], - ["ngrx-no-multiple-actions-in-effects", convertNoMultipleActionsInEffects], - ["ngrx-no-reducer-in-key-names", convertNoReducerInKeyNames], - ["ngrx-no-reducer-in-key-names", convertNoReducerInKeyNames], - ["ngrx-no-typed-store", convertNoTypedStore], - ["ngrx-on-reducer-explicit-return-type", convertOnReducerExplicitReturnType], - ["ngrx-selector-for-select", convertSelectorForSelect], + ["ngrx-effect-creator-and-decorator", convertNgrxEffectCreatorAndDecorator], + ["ngrx-no-dispatch-in-effects", convertNgrxNoDispatchInEffects], + ["ngrx-no-duplicate-action-types", convertNgrxNoDuplicateActionTypes], + ["ngrx-no-effect-decorator", convertNgrxNoEffectDecorator], + ["ngrx-no-effects-in-providers", convertNgrxNoEffectsInProviders], + ["ngrx-no-multiple-actions-in-effects", convertNgrxNoMultipleActionsInEffects], + ["ngrx-no-reducer-in-key-names", convertNgrxNoReducerInKeyNames], + ["ngrx-no-typed-store", convertNgrxNoTypedStore], + ["ngrx-on-reducer-explicit-return-type", convertNgrxOnReducerExplicitReturnType], + ["ngrx-selector-for-select", convertNgrxSelectorForSelect], ["no-all-duplicated-branches", convertNoAllDuplicatedBranches], ["no-alphabetical-sort", convertNoAlphabeticalSort], ["no-angle-bracket-type-assertion", convertNoAngleBracketTypeAssertion], @@ -489,8 +488,6 @@ export const ruleConverters = new Map([ ["no-multiline-string-literals", convertNoMultilineStringLiterals], ["no-multiline-string", convertNoMultilineString], ["no-namespace", convertNoNamespace], - ["no-unnecessary-field-initialization", convertNoUnnecessaryFieldInitialization], - ["non-literal-fs-path", convertNonLiteralFsPath], ["no-non-null-assertion", convertNoNonNullAssertion], ["no-null-keyword", convertNoNullKeyword], ["no-object-literal-type-assertion", convertNoObjectLiteralTypeAssertion], @@ -527,6 +524,7 @@ export const ruleConverters = new Map([ ["no-unbound-method", convertNoUnboundMethod], ["no-unconditional-jump", convertNoUnconditionalJump], ["no-unnecessary-class", convertNoUnnecessaryClass], + ["no-unnecessary-field-initialization", convertNoUnnecessaryFieldInitialization], ["no-unnecessary-initializer", convertNoUnnecessaryInitializer], ["no-unnecessary-qualifier", convertNoUnnecessaryQualifier], ["no-unnecessary-semicolons", convertNoUnnecessarySemicolons], @@ -544,6 +542,7 @@ export const ruleConverters = new Map([ ["no-variable-usage-before-declaration", convertNoVariableUsageBeforeDeclaration], ["no-void-expression", convertNoVoidExpression], ["no-with-statement", convertNoWithStatement], + ["non-literal-fs-path", convertNonLiteralFsPath], ["non-literal-require", convertNonLiteralRequire], ["object-literal-key-quotes", convertObjectLiteralKeyQuotes], ["object-literal-shorthand", convertObjectLiteralShorthand], @@ -589,59 +588,59 @@ export const ruleConverters = new Map([ ["react-unused-props-and-state", convertReactUnusedPropsAndState], ["relative-url-prefix", convertRelativeUrlPrefix], ["restrict-plus-operands", convertRestrictPlusOperands], - ["rxjs-add", convertAdd], - ["rxjs-ban-observables", convertBanObservables], - ["rxjs-ban-operators", convertBanOperators], - ["rxjs-deep-operators", convertDeepOperators], - ["rxjs-finnish", convertFinnish], - ["rxjs-just", convertJust], - ["rxjs-no-add", convertNoAdd], - ["rxjs-no-async-subscribe", convertNoAsyncSubscribe], - ["rxjs-no-compat", convertNoCompat], - ["rxjs-no-connectable", convertNoConnectable], - ["rxjs-no-create", convertNoCreate], - ["rxjs-no-deep-operators", convertNoDeepOperators], - ["rxjs-no-do", convertNoTap], - ["rxjs-no-explicit-generics", convertNoExplicitGenerics], - ["rxjs-no-exposed-subjects", convertNoExposedSubjects], - ["rxjs-no-finnish", convertNoFinnish], - ["rxjs-no-ignored-error", convertNoIgnoredError], - ["rxjs-no-ignored-notifier", convertNoIgnoredNotifier], - ["rxjs-no-ignored-observable", convertNoIgnoredObservable], - ["rxjs-no-ignored-replay-buffer", convertNoIgnoredReplayBuffer], - ["rxjs-no-ignored-subscribe", convertNoIgnoredSubscribe], - ["rxjs-no-ignored-subscription", convertNoIgnoredSubscription], - ["rxjs-no-ignored-takewhile-value", convertNoIgnoredTakewhileValue], - ["rxjs-no-implicit-any-catch", convertNoImplicitAnyCatch], - ["rxjs-no-index", convertNoIndex], - ["rxjs-no-internal", convertNoInternal], - ["rxjs-no-nested-subscribe", convertNoNestedSubscribe], - ["rxjs-no-operator", convertNoOperator], - ["rxjs-no-patched", convertNoPatched], - ["rxjs-no-redundant-notify", convertNoRedundantNotify], - ["rxjs-no-sharereplay", convertNoShareReplay], - ["rxjs-no-subclass", convertNoSubclass], - ["rxjs-no-subject-unsubscribe", convertNoSubjectUnubscribe], - ["rxjs-no-subject-value", convertNoSubjectValue], - ["rxjs-no-tap", convertNoTap], - ["rxjs-no-topromise", convertNoToPromise], - ["rxjs-no-unbound-methods", convertNoUnboundMethods], - ["rxjs-no-unsafe-catch", convertNoUnsafeCatch], - ["rxjs-no-unsafe-first", convertNoUnsafeFirst], - ["rxjs-no-unsafe-scope", convertNoUnsafeScope], - ["rxjs-no-unsafe-subject-next", convertNoUnsafeSubjectNext], - ["rxjs-no-unsafe-switchmap", convertNoUnsafeSwitchmap], - ["rxjs-no-unsafe-takeuntil", convertNoUnsafeTakeuntil], - ["rxjs-no-unsafe-takewhile", convertNoUnsafeTakewhile], - ["rxjs-no-unused-add", convertNoUnusedAdd], - ["rxjs-no-wholesale", convertNoWholesale], - ["rxjs-prefer-add", convertPreferAdd], - ["rxjs-prefer-angular-async-pipe", convertPreferAngularAsyncPipe], - ["rxjs-prefer-angular-composition", convertPreferAngularComposition], - ["rxjs-prefer-angular-takeuntil", convertPreferAngularTakeuntil], - ["rxjs-prefer-observer", convertPreferObserver], - ["rxjs-suffix-subjects", convertSuffixSubjects], - ["rxjs-throw-error", convertThrowError], + ["rxjs-add", convertRxjsAdd], + ["rxjs-ban-observables", convertRxjsBanObservables], + ["rxjs-ban-operators", convertRxjsBanOperators], + ["rxjs-deep-operators", convertRxjsDeepOperators], + ["rxjs-finnish", convertRxjsFinnish], + ["rxjs-just", convertRxjsJust], + ["rxjs-no-add", convertRxjsNoAdd], + ["rxjs-no-async-subscribe", convertRxjsNoAsyncSubscribe], + ["rxjs-no-compat", convertRxjsNoCompat], + ["rxjs-no-connectable", convertRxjsNoConnectable], + ["rxjs-no-create", convertRxjsNoCreate], + ["rxjs-no-deep-operators", convertRxjsNoDeepOperators], + ["rxjs-no-do", convertRxjsNoTap], + ["rxjs-no-explicit-generics", convertRxjsNoExplicitGenerics], + ["rxjs-no-exposed-subjects", convertRxjsNoExposedSubjects], + ["rxjs-no-finnish", convertRxjsNoFinnish], + ["rxjs-no-ignored-error", convertRxjsNoIgnoredError], + ["rxjs-no-ignored-notifier", convertRxjsNoIgnoredNotifier], + ["rxjs-no-ignored-observable", convertRxjsNoIgnoredObservable], + ["rxjs-no-ignored-replay-buffer", convertRxjsNoIgnoredReplayBuffer], + ["rxjs-no-ignored-subscribe", convertRxjsNoIgnoredSubscribe], + ["rxjs-no-ignored-subscription", convertRxjsNoIgnoredSubscription], + ["rxjs-no-ignored-takewhile-value", convertRxjsNoIgnoredTakeWhileValue], + ["rxjs-no-implicit-any-catch", convertRxjsNoImplicitAnyCatch], + ["rxjs-no-index", convertRxjsNoIndex], + ["rxjs-no-internal", convertRxjsNoInternal], + ["rxjs-no-nested-subscribe", convertRxjsNoNestedSubscribe], + ["rxjs-no-operator", convertRxjsNoOperator], + ["rxjs-no-patched", convertRxjsNoPatched], + ["rxjs-no-redundant-notify", convertRxjsNoRedundantNotify], + ["rxjs-no-sharereplay", convertRxjsNoShareReplay], + ["rxjs-no-subclass", convertRxjsNoSubclass], + ["rxjs-no-subject-unsubscribe", convertRxjsNoSubjectUnubscribe], + ["rxjs-no-subject-value", convertRxjsNoSubjectValue], + ["rxjs-no-tap", convertRxjsNoTap], + ["rxjs-no-topromise", convertRxjsNoToPromise], + ["rxjs-no-unbound-methods", convertRxjsNoUnboundMethods], + ["rxjs-no-unsafe-catch", convertRxjsNoUnsafeCatch], + ["rxjs-no-unsafe-first", convertRxjsNoUnsafeFirst], + ["rxjs-no-unsafe-scope", convertRxjsNoUnsafeScope], + ["rxjs-no-unsafe-subject-next", convertRxjsNoUnsafeSubjectNext], + ["rxjs-no-unsafe-switchmap", convertRxjsNoUnsafeSwitchmap], + ["rxjs-no-unsafe-takeuntil", convertRxjsNoUnsafeTakeUntil], + ["rxjs-no-unsafe-takewhile", convertRxjsNoUnsafeTakewhile], + ["rxjs-no-unused-add", convertRxjsNoUnusedAdd], + ["rxjs-no-wholesale", convertRxjsNoWholesale], + ["rxjs-prefer-add", convertRxjsPreferAdd], + ["rxjs-prefer-angular-async-pipe", convertRxjsPreferAngularAsyncPipe], + ["rxjs-prefer-angular-composition", convertRxjsPreferAngularComposition], + ["rxjs-prefer-angular-takeuntil", convertRxjsPreferAngularTakeuntil], + ["rxjs-prefer-observer", convertRxjsPreferObserver], + ["rxjs-suffix-subjects", convertRxjsSuffixSubjects], + ["rxjs-throw-error", convertRxjsThrowError], ["semicolon", convertSemicolon], ["space-before-function-paren", convertSpaceBeforeFunctionParen], ["space-within-parens", convertSpaceWithinParens], diff --git a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/angular-whitespace.ts b/src/converters/lintConfigs/rules/ruleConverters/angular-whitespace.ts similarity index 60% rename from src/converters/lintConfigs/rules/ruleConverters/codelyzer/angular-whitespace.ts rename to src/converters/lintConfigs/rules/ruleConverters/angular-whitespace.ts index 3dcd10957..4812333af 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/angular-whitespace.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/angular-whitespace.ts @@ -1,4 +1,4 @@ -import { RuleConverter } from "../../ruleConverter"; +import { RuleConverter } from "../ruleConverter"; export const convertAngularWhitespace: RuleConverter = () => { return {}; diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/cognitive-complexity.ts b/src/converters/lintConfigs/rules/ruleConverters/cognitive-complexity.ts similarity index 87% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/cognitive-complexity.ts rename to src/converters/lintConfigs/rules/ruleConverters/cognitive-complexity.ts index 59dd318d1..9c1d9268f 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/cognitive-complexity.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/cognitive-complexity.ts @@ -1,4 +1,4 @@ -import { RuleConverter } from "../../ruleConverter"; +import { RuleConverter } from "../ruleConverter"; export const convertCognitiveComplexity: RuleConverter = (tslintRule) => { return { diff --git a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/component-class-suffix.ts b/src/converters/lintConfigs/rules/ruleConverters/component-class-suffix.ts similarity index 91% rename from src/converters/lintConfigs/rules/ruleConverters/codelyzer/component-class-suffix.ts rename to src/converters/lintConfigs/rules/ruleConverters/component-class-suffix.ts index 247af4b50..54c6ddeb0 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/component-class-suffix.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/component-class-suffix.ts @@ -1,4 +1,4 @@ -import { RuleConverter } from "../../ruleConverter"; +import { RuleConverter } from "../ruleConverter"; export const convertComponentClassSuffix: RuleConverter = (tslintRule) => { return { diff --git a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/component-max-inline-declarations.ts b/src/converters/lintConfigs/rules/ruleConverters/component-max-inline-declarations.ts similarity index 89% rename from src/converters/lintConfigs/rules/ruleConverters/codelyzer/component-max-inline-declarations.ts rename to src/converters/lintConfigs/rules/ruleConverters/component-max-inline-declarations.ts index 8ceadc55f..6edac1262 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/component-max-inline-declarations.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/component-max-inline-declarations.ts @@ -1,4 +1,4 @@ -import { RuleConverter } from "../../ruleConverter"; +import { RuleConverter } from "../ruleConverter"; export const convertComponentMaxInlineDeclarations: RuleConverter = (tslintRule) => { return { diff --git a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/component-selector.ts b/src/converters/lintConfigs/rules/ruleConverters/component-selector.ts similarity index 92% rename from src/converters/lintConfigs/rules/ruleConverters/codelyzer/component-selector.ts rename to src/converters/lintConfigs/rules/ruleConverters/component-selector.ts index 806b68c5a..1ebf396fe 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/component-selector.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/component-selector.ts @@ -1,4 +1,4 @@ -import { RuleConverter } from "../../ruleConverter"; +import { RuleConverter } from "../ruleConverter"; export const convertComponentSelector: RuleConverter = (tslintRule) => { return { diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/consecutive-overloads.ts b/src/converters/lintConfigs/rules/ruleConverters/consecutive-overloads.ts similarity index 80% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/consecutive-overloads.ts rename to src/converters/lintConfigs/rules/ruleConverters/consecutive-overloads.ts index e274822d5..870d3c149 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/consecutive-overloads.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/consecutive-overloads.ts @@ -1,4 +1,4 @@ -import { RuleConverter } from "../../ruleConverter"; +import { RuleConverter } from "../ruleConverter"; export const convertConsecutiveOverloads: RuleConverter = () => { return { diff --git a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/contextual-decorator.ts b/src/converters/lintConfigs/rules/ruleConverters/contextual-decorator.ts similarity index 83% rename from src/converters/lintConfigs/rules/ruleConverters/codelyzer/contextual-decorator.ts rename to src/converters/lintConfigs/rules/ruleConverters/contextual-decorator.ts index d8df5b207..f054a0047 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/contextual-decorator.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/contextual-decorator.ts @@ -1,4 +1,4 @@ -import { RuleConverter } from "../../ruleConverter"; +import { RuleConverter } from "../ruleConverter"; export const convertContextualDecorator: RuleConverter = () => { return { diff --git a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/contextual-lifecycle.ts b/src/converters/lintConfigs/rules/ruleConverters/contextual-lifecycle.ts similarity index 83% rename from src/converters/lintConfigs/rules/ruleConverters/codelyzer/contextual-lifecycle.ts rename to src/converters/lintConfigs/rules/ruleConverters/contextual-lifecycle.ts index 3feb7dee6..9fa734006 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/contextual-lifecycle.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/contextual-lifecycle.ts @@ -1,4 +1,4 @@ -import { RuleConverter } from "../../ruleConverter"; +import { RuleConverter } from "../ruleConverter"; export const convertContextualLifecycle: RuleConverter = () => { return { diff --git a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/directive-class-suffix.ts b/src/converters/lintConfigs/rules/ruleConverters/directive-class-suffix.ts similarity index 91% rename from src/converters/lintConfigs/rules/ruleConverters/codelyzer/directive-class-suffix.ts rename to src/converters/lintConfigs/rules/ruleConverters/directive-class-suffix.ts index c06648d33..e822e7847 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/directive-class-suffix.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/directive-class-suffix.ts @@ -1,4 +1,4 @@ -import { RuleConverter } from "../../ruleConverter"; +import { RuleConverter } from "../ruleConverter"; export const convertDirectiveClassSuffix: RuleConverter = (tslintRule) => { return { diff --git a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/directive-selector.ts b/src/converters/lintConfigs/rules/ruleConverters/directive-selector.ts similarity index 92% rename from src/converters/lintConfigs/rules/ruleConverters/codelyzer/directive-selector.ts rename to src/converters/lintConfigs/rules/ruleConverters/directive-selector.ts index 83c5a1e57..fbcd99b73 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/directive-selector.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/directive-selector.ts @@ -1,4 +1,4 @@ -import { RuleConverter } from "../../ruleConverter"; +import { RuleConverter } from "../ruleConverter"; export const convertDirectiveSelector: RuleConverter = (tslintRule) => { return { diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/add.ts b/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/add.ts deleted file mode 100644 index 45e716d0f..000000000 --- a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/add.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { RuleConverter } from "../../ruleConverter"; - -export const convertAdd: RuleConverter = () => { - return {}; -}; diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/deep-operators.ts b/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/deep-operators.ts deleted file mode 100644 index 2bfebb5cd..000000000 --- a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/deep-operators.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { RuleConverter } from "../../ruleConverter"; - -export const convertDeepOperators: RuleConverter = () => { - return {}; -}; diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/no-add.ts b/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/no-add.ts deleted file mode 100644 index deba043e7..000000000 --- a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/no-add.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { RuleConverter } from "../../ruleConverter"; - -export const convertNoAdd: RuleConverter = () => { - return {}; -}; diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/no-deep-operators.ts b/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/no-deep-operators.ts deleted file mode 100644 index aec9837b8..000000000 --- a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/no-deep-operators.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { RuleConverter } from "../../ruleConverter"; - -export const convertNoDeepOperators: RuleConverter = () => { - return {}; -}; diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/no-operator.ts b/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/no-operator.ts deleted file mode 100644 index a9e0770fe..000000000 --- a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/no-operator.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { RuleConverter } from "../../ruleConverter"; - -export const convertNoOperator: RuleConverter = () => { - return {}; -}; diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/no-patched.ts b/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/no-patched.ts deleted file mode 100644 index 33421a5c1..000000000 --- a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/no-patched.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { RuleConverter } from "../../ruleConverter"; - -export const convertNoPatched: RuleConverter = () => { - return {}; -}; diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/no-unsafe-scope.ts b/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/no-unsafe-scope.ts deleted file mode 100644 index 094e98c58..000000000 --- a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/no-unsafe-scope.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { RuleConverter } from "../../ruleConverter"; - -export const convertNoUnsafeScope: RuleConverter = () => { - return {}; -}; diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/no-unused-add.ts b/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/no-unused-add.ts deleted file mode 100644 index 2c9e30c35..000000000 --- a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/no-unused-add.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { RuleConverter } from "../../ruleConverter"; - -export const convertNoUnusedAdd: RuleConverter = () => { - return {}; -}; diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/no-wholesale.ts b/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/no-wholesale.ts deleted file mode 100644 index 6eec4ca85..000000000 --- a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/no-wholesale.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { RuleConverter } from "../../ruleConverter"; - -export const convertNoWholesale: RuleConverter = () => { - return {}; -}; diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/prefer-add.ts b/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/prefer-add.ts deleted file mode 100644 index 83af4f15d..000000000 --- a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/prefer-add.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { RuleConverter } from "../../ruleConverter"; - -export const convertPreferAdd: RuleConverter = () => { - return {}; -}; diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/add.test.ts b/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/add.test.ts deleted file mode 100644 index 002355fa0..000000000 --- a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/add.test.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { convertAdd } from "../add"; - -describe(convertAdd, () => { - test("conversion without arguments", () => { - const result = convertAdd({ - ruleArguments: [], - }); - - expect(result).toEqual({}); - }); -}); diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/deep-operators.test.ts b/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/deep-operators.test.ts deleted file mode 100644 index bdb11c7d0..000000000 --- a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/deep-operators.test.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { convertDeepOperators } from "../deep-operators"; - -describe(convertDeepOperators, () => { - test("conversion without arguments", () => { - const result = convertDeepOperators({ - ruleArguments: [], - }); - - expect(result).toEqual({}); - }); -}); diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/no-deep-operators.test.ts b/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/no-deep-operators.test.ts deleted file mode 100644 index 0a411b689..000000000 --- a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/no-deep-operators.test.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { convertNoDeepOperators } from "../no-deep-operators"; - -describe(convertNoDeepOperators, () => { - test("conversion without arguments", () => { - const result = convertNoDeepOperators({ - ruleArguments: [], - }); - - expect(result).toEqual({}); - }); -}); diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/no-operator.test.ts b/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/no-operator.test.ts deleted file mode 100644 index 015ebf9b2..000000000 --- a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/no-operator.test.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { convertNoOperator } from "../no-operator"; - -describe(convertNoOperator, () => { - test("conversion without arguments", () => { - const result = convertNoOperator({ - ruleArguments: [], - }); - - expect(result).toEqual({}); - }); -}); diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/no-unsafe-scope.test.ts b/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/no-unsafe-scope.test.ts deleted file mode 100644 index ccf8b627d..000000000 --- a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/no-unsafe-scope.test.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { convertNoUnsafeScope } from "../no-unsafe-scope"; - -describe(convertNoUnsafeScope, () => { - test("conversion without arguments", () => { - const result = convertNoUnsafeScope({ - ruleArguments: [], - }); - - expect(result).toEqual({}); - }); -}); diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/no-unused-add.test.ts b/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/no-unused-add.test.ts deleted file mode 100644 index fdcfa4df8..000000000 --- a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/no-unused-add.test.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { convertNoUnusedAdd } from "../no-unused-add"; - -describe(convertNoUnusedAdd, () => { - test("conversion without arguments", () => { - const result = convertNoUnusedAdd({ - ruleArguments: [], - }); - - expect(result).toEqual({}); - }); -}); diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/no-wholesale.test.ts b/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/no-wholesale.test.ts deleted file mode 100644 index cd39d14a4..000000000 --- a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/no-wholesale.test.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { convertNoWholesale } from "../no-wholesale"; - -describe(convertNoWholesale, () => { - test("conversion without arguments", () => { - const result = convertNoWholesale({ - ruleArguments: [], - }); - - expect(result).toEqual({}); - }); -}); diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/prefer-add.test.ts b/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/prefer-add.test.ts deleted file mode 100644 index 5b6f0405c..000000000 --- a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/prefer-add.test.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { convertPreferAdd } from "../prefer-add"; - -describe(convertPreferAdd, () => { - test("conversion without arguments", () => { - const result = convertPreferAdd({ - ruleArguments: [], - }); - - expect(result).toEqual({}); - }); -}); diff --git a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/import-destructuring-spacing.ts b/src/converters/lintConfigs/rules/ruleConverters/import-destructuring-spacing.ts similarity index 63% rename from src/converters/lintConfigs/rules/ruleConverters/codelyzer/import-destructuring-spacing.ts rename to src/converters/lintConfigs/rules/ruleConverters/import-destructuring-spacing.ts index b4c55f9ea..1d0a27a35 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/import-destructuring-spacing.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/import-destructuring-spacing.ts @@ -1,4 +1,4 @@ -import { RuleConverter } from "../../ruleConverter"; +import { RuleConverter } from "../ruleConverter"; export const convertImportDestructuringSpacing: RuleConverter = () => { return {}; diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-react/jsx-ban-props.ts b/src/converters/lintConfigs/rules/ruleConverters/jsx-ban-props.ts similarity index 93% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-react/jsx-ban-props.ts rename to src/converters/lintConfigs/rules/ruleConverters/jsx-ban-props.ts index d66dae7e6..7646ee665 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-react/jsx-ban-props.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/jsx-ban-props.ts @@ -1,4 +1,4 @@ -import { RuleConverter } from "../../ruleConverter"; +import { RuleConverter } from "../ruleConverter"; export const convertJsxBanProps: RuleConverter = (tslintRule) => { return { diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-react/jsx-boolean-value.ts b/src/converters/lintConfigs/rules/ruleConverters/jsx-boolean-value.ts similarity index 88% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-react/jsx-boolean-value.ts rename to src/converters/lintConfigs/rules/ruleConverters/jsx-boolean-value.ts index 5fe9d2c04..631f1adca 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-react/jsx-boolean-value.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/jsx-boolean-value.ts @@ -1,4 +1,4 @@ -import { RuleConverter } from "../../ruleConverter"; +import { RuleConverter } from "../ruleConverter"; export const convertJsxBooleanValue: RuleConverter = (tslintRule) => { return { diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-react/jsx-curly-spacing.ts b/src/converters/lintConfigs/rules/ruleConverters/jsx-curly-spacing.ts similarity index 90% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-react/jsx-curly-spacing.ts rename to src/converters/lintConfigs/rules/ruleConverters/jsx-curly-spacing.ts index 1369c5826..5d21d68b8 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-react/jsx-curly-spacing.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/jsx-curly-spacing.ts @@ -1,4 +1,4 @@ -import { RuleConverter } from "../../ruleConverter"; +import { RuleConverter } from "../ruleConverter"; export const convertJsxCurlySpacing: RuleConverter = (tslintRule) => { return { diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-react/jsx-equals-spacing.ts b/src/converters/lintConfigs/rules/ruleConverters/jsx-equals-spacing.ts similarity index 88% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-react/jsx-equals-spacing.ts rename to src/converters/lintConfigs/rules/ruleConverters/jsx-equals-spacing.ts index a65c3a370..ce397f935 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-react/jsx-equals-spacing.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/jsx-equals-spacing.ts @@ -1,4 +1,4 @@ -import { RuleConverter } from "../../ruleConverter"; +import { RuleConverter } from "../ruleConverter"; export const convertJsxEqualsSpacing: RuleConverter = (tslintRule) => { return { diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-react/jsx-key.ts b/src/converters/lintConfigs/rules/ruleConverters/jsx-key.ts similarity index 80% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-react/jsx-key.ts rename to src/converters/lintConfigs/rules/ruleConverters/jsx-key.ts index 4c6390589..189ff9e28 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-react/jsx-key.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/jsx-key.ts @@ -1,4 +1,4 @@ -import { RuleConverter } from "../../ruleConverter"; +import { RuleConverter } from "../ruleConverter"; export const convertJsxKey: RuleConverter = () => { return { diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-react/jsx-no-bind.ts b/src/converters/lintConfigs/rules/ruleConverters/jsx-no-bind.ts similarity index 85% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-react/jsx-no-bind.ts rename to src/converters/lintConfigs/rules/ruleConverters/jsx-no-bind.ts index e082ec5df..c617b3c33 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-react/jsx-no-bind.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/jsx-no-bind.ts @@ -1,4 +1,4 @@ -import { RuleConverter } from "../../ruleConverter"; +import { RuleConverter } from "../ruleConverter"; export const convertJsxNoBind: RuleConverter = () => { return { diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-react/jsx-no-lambda.ts b/src/converters/lintConfigs/rules/ruleConverters/jsx-no-lambda.ts similarity index 85% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-react/jsx-no-lambda.ts rename to src/converters/lintConfigs/rules/ruleConverters/jsx-no-lambda.ts index 62f52b363..35f12109d 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-react/jsx-no-lambda.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/jsx-no-lambda.ts @@ -1,4 +1,4 @@ -import { RuleConverter } from "../../ruleConverter"; +import { RuleConverter } from "../ruleConverter"; export const convertJsxNoLambda: RuleConverter = () => { return { diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-react/jsx-self-close.ts b/src/converters/lintConfigs/rules/ruleConverters/jsx-self-close.ts similarity index 81% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-react/jsx-self-close.ts rename to src/converters/lintConfigs/rules/ruleConverters/jsx-self-close.ts index 03ab28aff..a57f65907 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-react/jsx-self-close.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/jsx-self-close.ts @@ -1,4 +1,4 @@ -import { RuleConverter } from "../../ruleConverter"; +import { RuleConverter } from "../ruleConverter"; export const convertJsxSelfClose: RuleConverter = () => { return { diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-react/jsx-space-before-trailing-slash.ts b/src/converters/lintConfigs/rules/ruleConverters/jsx-space-before-trailing-slash.ts similarity index 89% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-react/jsx-space-before-trailing-slash.ts rename to src/converters/lintConfigs/rules/ruleConverters/jsx-space-before-trailing-slash.ts index 8a0027488..74b6db7b3 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-react/jsx-space-before-trailing-slash.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/jsx-space-before-trailing-slash.ts @@ -1,4 +1,4 @@ -import { RuleConverter } from "../../ruleConverter"; +import { RuleConverter } from "../ruleConverter"; export const convertJsxSpaceBeforeTrailingSlash: RuleConverter = () => { return { diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-react/jsx-wrap-multiline.ts b/src/converters/lintConfigs/rules/ruleConverters/jsx-wrap-multiline.ts similarity index 81% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-react/jsx-wrap-multiline.ts rename to src/converters/lintConfigs/rules/ruleConverters/jsx-wrap-multiline.ts index 81a3c4f96..0960e125a 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-react/jsx-wrap-multiline.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/jsx-wrap-multiline.ts @@ -1,4 +1,4 @@ -import { RuleConverter } from "../../ruleConverter"; +import { RuleConverter } from "../ruleConverter"; export const convertJsxWrapMultiline: RuleConverter = () => { return { diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/max-switch-cases.ts b/src/converters/lintConfigs/rules/ruleConverters/max-switch-cases.ts similarity index 87% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/max-switch-cases.ts rename to src/converters/lintConfigs/rules/ruleConverters/max-switch-cases.ts index 143f8e429..dc68ea48f 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/max-switch-cases.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/max-switch-cases.ts @@ -1,4 +1,4 @@ -import { RuleConverter } from "../../ruleConverter"; +import { RuleConverter } from "../ruleConverter"; export const convertMaxSwitchCases: RuleConverter = (tslintRule) => { return { diff --git a/src/converters/lintConfigs/rules/ruleConverters/ngrx-tslint-rules/action-hygiene.ts b/src/converters/lintConfigs/rules/ruleConverters/ngrx-action-hygiene.ts similarity index 60% rename from src/converters/lintConfigs/rules/ruleConverters/ngrx-tslint-rules/action-hygiene.ts rename to src/converters/lintConfigs/rules/ruleConverters/ngrx-action-hygiene.ts index 1776cce9d..464f9c2c3 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/ngrx-tslint-rules/action-hygiene.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/ngrx-action-hygiene.ts @@ -1,6 +1,6 @@ -import { RuleConverter } from "../../ruleConverter"; +import { RuleConverter } from "../ruleConverter"; -export const convertActionHygiene: RuleConverter = () => { +export const convertNgrxActionHygiene: RuleConverter = () => { return { rules: [ { diff --git a/src/converters/lintConfigs/rules/ruleConverters/ngrx-tslint-rules/avoid-dispatching-multiple-actions-sequentially.ts b/src/converters/lintConfigs/rules/ruleConverters/ngrx-avoid-dispatching-multiple-actions-sequentially.ts similarity index 58% rename from src/converters/lintConfigs/rules/ruleConverters/ngrx-tslint-rules/avoid-dispatching-multiple-actions-sequentially.ts rename to src/converters/lintConfigs/rules/ruleConverters/ngrx-avoid-dispatching-multiple-actions-sequentially.ts index 9bac55127..b6f0d7c06 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/ngrx-tslint-rules/avoid-dispatching-multiple-actions-sequentially.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/ngrx-avoid-dispatching-multiple-actions-sequentially.ts @@ -1,6 +1,6 @@ -import { RuleConverter } from "../../ruleConverter"; +import { RuleConverter } from "../ruleConverter"; -export const convertAvoidDispatchingMultipleActionsSequentially: RuleConverter = () => { +export const convertNgrxAvoidDispatchingMultipleActionsSequentially: RuleConverter = () => { return { rules: [ { diff --git a/src/converters/lintConfigs/rules/ruleConverters/ngrx-tslint-rules/effect-creator-and-decorator.ts b/src/converters/lintConfigs/rules/ruleConverters/ngrx-effect-creator-and-decorator.ts similarity index 60% rename from src/converters/lintConfigs/rules/ruleConverters/ngrx-tslint-rules/effect-creator-and-decorator.ts rename to src/converters/lintConfigs/rules/ruleConverters/ngrx-effect-creator-and-decorator.ts index 027d911ee..55b243502 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/ngrx-tslint-rules/effect-creator-and-decorator.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/ngrx-effect-creator-and-decorator.ts @@ -1,6 +1,6 @@ -import { RuleConverter } from "../../ruleConverter"; +import { RuleConverter } from "../ruleConverter"; -export const convertEffectCreatorAndDecorator: RuleConverter = () => { +export const convertNgrxEffectCreatorAndDecorator: RuleConverter = () => { return { rules: [ { diff --git a/src/converters/lintConfigs/rules/ruleConverters/ngrx-tslint-rules/no-dispatch-in-effects.ts b/src/converters/lintConfigs/rules/ruleConverters/ngrx-no-dispatch-in-effects.ts similarity index 60% rename from src/converters/lintConfigs/rules/ruleConverters/ngrx-tslint-rules/no-dispatch-in-effects.ts rename to src/converters/lintConfigs/rules/ruleConverters/ngrx-no-dispatch-in-effects.ts index 78c617455..6e4920bcf 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/ngrx-tslint-rules/no-dispatch-in-effects.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/ngrx-no-dispatch-in-effects.ts @@ -1,6 +1,6 @@ -import { RuleConverter } from "../../ruleConverter"; +import { RuleConverter } from "../ruleConverter"; -export const convertNoDispatchInEffects: RuleConverter = () => { +export const convertNgrxNoDispatchInEffects: RuleConverter = () => { return { rules: [ { diff --git a/src/converters/lintConfigs/rules/ruleConverters/ngrx-no-duplicate-action-types.ts b/src/converters/lintConfigs/rules/ruleConverters/ngrx-no-duplicate-action-types.ts new file mode 100644 index 000000000..6434288d7 --- /dev/null +++ b/src/converters/lintConfigs/rules/ruleConverters/ngrx-no-duplicate-action-types.ts @@ -0,0 +1,7 @@ +import { RuleConverter } from "../ruleConverter"; + +export const convertNgrxNoDuplicateActionTypes: RuleConverter = () => { + return { + rules: [], + }; +}; diff --git a/src/converters/lintConfigs/rules/ruleConverters/ngrx-tslint-rules/no-effect-decorator.ts b/src/converters/lintConfigs/rules/ruleConverters/ngrx-no-effect-decorator.ts similarity index 60% rename from src/converters/lintConfigs/rules/ruleConverters/ngrx-tslint-rules/no-effect-decorator.ts rename to src/converters/lintConfigs/rules/ruleConverters/ngrx-no-effect-decorator.ts index e7939c7ae..4ffd44ac9 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/ngrx-tslint-rules/no-effect-decorator.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/ngrx-no-effect-decorator.ts @@ -1,6 +1,6 @@ -import { RuleConverter } from "../../ruleConverter"; +import { RuleConverter } from "../ruleConverter"; -export const convertNoEffectDecorator: RuleConverter = () => { +export const convertNgrxNoEffectDecorator: RuleConverter = () => { return { rules: [ { diff --git a/src/converters/lintConfigs/rules/ruleConverters/ngrx-tslint-rules/no-effects-in-providers.ts b/src/converters/lintConfigs/rules/ruleConverters/ngrx-no-effects-in-providers.ts similarity index 60% rename from src/converters/lintConfigs/rules/ruleConverters/ngrx-tslint-rules/no-effects-in-providers.ts rename to src/converters/lintConfigs/rules/ruleConverters/ngrx-no-effects-in-providers.ts index 01c7a2a43..e34676a10 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/ngrx-tslint-rules/no-effects-in-providers.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/ngrx-no-effects-in-providers.ts @@ -1,6 +1,6 @@ -import { RuleConverter } from "../../ruleConverter"; +import { RuleConverter } from "../ruleConverter"; -export const convertNoEffectsInProviders: RuleConverter = () => { +export const convertNgrxNoEffectsInProviders: RuleConverter = () => { return { rules: [ { diff --git a/src/converters/lintConfigs/rules/ruleConverters/ngrx-tslint-rules/no-multiple-actions-in-effects.ts b/src/converters/lintConfigs/rules/ruleConverters/ngrx-no-multiple-actions-in-effects.ts similarity index 59% rename from src/converters/lintConfigs/rules/ruleConverters/ngrx-tslint-rules/no-multiple-actions-in-effects.ts rename to src/converters/lintConfigs/rules/ruleConverters/ngrx-no-multiple-actions-in-effects.ts index 66923ba87..4862fb77c 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/ngrx-tslint-rules/no-multiple-actions-in-effects.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/ngrx-no-multiple-actions-in-effects.ts @@ -1,6 +1,6 @@ -import { RuleConverter } from "../../ruleConverter"; +import { RuleConverter } from "../ruleConverter"; -export const convertNoMultipleActionsInEffects: RuleConverter = () => { +export const convertNgrxNoMultipleActionsInEffects: RuleConverter = () => { return { rules: [ { diff --git a/src/converters/lintConfigs/rules/ruleConverters/ngrx-tslint-rules/no-reducer-in-key-names.ts b/src/converters/lintConfigs/rules/ruleConverters/ngrx-no-reducer-in-key-names.ts similarity index 60% rename from src/converters/lintConfigs/rules/ruleConverters/ngrx-tslint-rules/no-reducer-in-key-names.ts rename to src/converters/lintConfigs/rules/ruleConverters/ngrx-no-reducer-in-key-names.ts index 054ac6c30..93740e4ca 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/ngrx-tslint-rules/no-reducer-in-key-names.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/ngrx-no-reducer-in-key-names.ts @@ -1,6 +1,6 @@ -import { RuleConverter } from "../../ruleConverter"; +import { RuleConverter } from "../ruleConverter"; -export const convertNoReducerInKeyNames: RuleConverter = () => { +export const convertNgrxNoReducerInKeyNames: RuleConverter = () => { return { rules: [ { diff --git a/src/converters/lintConfigs/rules/ruleConverters/ngrx-tslint-rules/no-typed-store.ts b/src/converters/lintConfigs/rules/ruleConverters/ngrx-no-typed-store.ts similarity index 61% rename from src/converters/lintConfigs/rules/ruleConverters/ngrx-tslint-rules/no-typed-store.ts rename to src/converters/lintConfigs/rules/ruleConverters/ngrx-no-typed-store.ts index 449e91fba..7303f946c 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/ngrx-tslint-rules/no-typed-store.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/ngrx-no-typed-store.ts @@ -1,6 +1,6 @@ -import { RuleConverter } from "../../ruleConverter"; +import { RuleConverter } from "../ruleConverter"; -export const convertNoTypedStore: RuleConverter = () => { +export const convertNgrxNoTypedStore: RuleConverter = () => { return { rules: [ { diff --git a/src/converters/lintConfigs/rules/ruleConverters/ngrx-tslint-rules/on-reducer-explicit-return-type.ts b/src/converters/lintConfigs/rules/ruleConverters/ngrx-on-reducer-explicit-return-type.ts similarity index 59% rename from src/converters/lintConfigs/rules/ruleConverters/ngrx-tslint-rules/on-reducer-explicit-return-type.ts rename to src/converters/lintConfigs/rules/ruleConverters/ngrx-on-reducer-explicit-return-type.ts index 166e34a20..fe530ebe6 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/ngrx-tslint-rules/on-reducer-explicit-return-type.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/ngrx-on-reducer-explicit-return-type.ts @@ -1,6 +1,6 @@ -import { RuleConverter } from "../../ruleConverter"; +import { RuleConverter } from "../ruleConverter"; -export const convertOnReducerExplicitReturnType: RuleConverter = () => { +export const convertNgrxOnReducerExplicitReturnType: RuleConverter = () => { return { rules: [ { diff --git a/src/converters/lintConfigs/rules/ruleConverters/ngrx-tslint-rules/selector-for-select.ts b/src/converters/lintConfigs/rules/ruleConverters/ngrx-selector-for-select.ts similarity index 60% rename from src/converters/lintConfigs/rules/ruleConverters/ngrx-tslint-rules/selector-for-select.ts rename to src/converters/lintConfigs/rules/ruleConverters/ngrx-selector-for-select.ts index a975d59e2..6228a95b5 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/ngrx-tslint-rules/selector-for-select.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/ngrx-selector-for-select.ts @@ -1,6 +1,6 @@ -import { RuleConverter } from "../../ruleConverter"; +import { RuleConverter } from "../ruleConverter"; -export const convertSelectorForSelect: RuleConverter = () => { +export const convertNgrxSelectorForSelect: RuleConverter = () => { return { rules: [ { diff --git a/src/converters/lintConfigs/rules/ruleConverters/ngrx-tslint-rules/no-duplicate-action-types.ts b/src/converters/lintConfigs/rules/ruleConverters/ngrx-tslint-rules/no-duplicate-action-types.ts deleted file mode 100644 index 7de53aa0a..000000000 --- a/src/converters/lintConfigs/rules/ruleConverters/ngrx-tslint-rules/no-duplicate-action-types.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { RuleConverter } from "../../ruleConverter"; - -export const convertNoDuplicateActionTypes: RuleConverter = () => { - return {}; -}; diff --git a/src/converters/lintConfigs/rules/ruleConverters/ngrx-tslint-rules/tests/no-duplicate-action-types.test.ts b/src/converters/lintConfigs/rules/ruleConverters/ngrx-tslint-rules/tests/no-duplicate-action-types.test.ts deleted file mode 100644 index 3dd7f7bb7..000000000 --- a/src/converters/lintConfigs/rules/ruleConverters/ngrx-tslint-rules/tests/no-duplicate-action-types.test.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { convertNoDuplicateActionTypes } from "../no-duplicate-action-types"; - -describe(convertNoDuplicateActionTypes, () => { - test("conversion without arguments", () => { - const result = convertNoDuplicateActionTypes({ - ruleArguments: [], - }); - - expect(result).toEqual({}); - }); -}); diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/no-all-duplicated-branches.ts b/src/converters/lintConfigs/rules/ruleConverters/no-all-duplicated-branches.ts similarity index 82% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/no-all-duplicated-branches.ts rename to src/converters/lintConfigs/rules/ruleConverters/no-all-duplicated-branches.ts index 85dc7c51f..6ec95af7a 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/no-all-duplicated-branches.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/no-all-duplicated-branches.ts @@ -1,4 +1,4 @@ -import { RuleConverter } from "../../ruleConverter"; +import { RuleConverter } from "../ruleConverter"; export const convertNoAllDuplicatedBranches: RuleConverter = () => { return { diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/no-alphabetical-sort.ts b/src/converters/lintConfigs/rules/ruleConverters/no-alphabetical-sort.ts similarity index 84% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/no-alphabetical-sort.ts rename to src/converters/lintConfigs/rules/ruleConverters/no-alphabetical-sort.ts index 6c778d5db..5b5e54060 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/no-alphabetical-sort.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/no-alphabetical-sort.ts @@ -1,4 +1,4 @@ -import { RuleConverter } from "../../ruleConverter"; +import { RuleConverter } from "../ruleConverter"; export const convertNoAlphabeticalSort: RuleConverter = () => { return { diff --git a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/no-attribute-decorator.ts b/src/converters/lintConfigs/rules/ruleConverters/no-attribute-decorator.ts similarity index 83% rename from src/converters/lintConfigs/rules/ruleConverters/codelyzer/no-attribute-decorator.ts rename to src/converters/lintConfigs/rules/ruleConverters/no-attribute-decorator.ts index 88f4b932b..bcf2864fc 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/no-attribute-decorator.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/no-attribute-decorator.ts @@ -1,4 +1,4 @@ -import { RuleConverter } from "../../ruleConverter"; +import { RuleConverter } from "../ruleConverter"; export const convertNoAttributeDecorator: RuleConverter = () => { return { diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/no-big-function.ts b/src/converters/lintConfigs/rules/ruleConverters/no-big-function.ts similarity index 84% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/no-big-function.ts rename to src/converters/lintConfigs/rules/ruleConverters/no-big-function.ts index 7b4fc6c8a..270b72f65 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/no-big-function.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/no-big-function.ts @@ -1,4 +1,4 @@ -import { RuleConverter } from "../../ruleConverter"; +import { RuleConverter } from "../ruleConverter"; export const convertNoBigFunction: RuleConverter = (tslintRule) => { return { diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/no-collapsible-if.ts b/src/converters/lintConfigs/rules/ruleConverters/no-collapsible-if.ts similarity index 81% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/no-collapsible-if.ts rename to src/converters/lintConfigs/rules/ruleConverters/no-collapsible-if.ts index b5c505418..9762fc3c3 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/no-collapsible-if.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/no-collapsible-if.ts @@ -1,4 +1,4 @@ -import { RuleConverter } from "../../ruleConverter"; +import { RuleConverter } from "../ruleConverter"; export const convertNoCollapsibleIf: RuleConverter = () => { return { diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/no-collection-size-mischeck.ts b/src/converters/lintConfigs/rules/ruleConverters/no-collection-size-mischeck.ts similarity index 82% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/no-collection-size-mischeck.ts rename to src/converters/lintConfigs/rules/ruleConverters/no-collection-size-mischeck.ts index 001a0c480..4fe4854d4 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/no-collection-size-mischeck.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/no-collection-size-mischeck.ts @@ -1,4 +1,4 @@ -import { RuleConverter } from "../../ruleConverter"; +import { RuleConverter } from "../ruleConverter"; export const convertNoCollectionSizeMischeck: RuleConverter = () => { return { diff --git a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/no-conflicting-lifecycle.ts b/src/converters/lintConfigs/rules/ruleConverters/no-conflicting-lifecycle.ts similarity index 83% rename from src/converters/lintConfigs/rules/ruleConverters/codelyzer/no-conflicting-lifecycle.ts rename to src/converters/lintConfigs/rules/ruleConverters/no-conflicting-lifecycle.ts index 1daf8ac30..91394acba 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/no-conflicting-lifecycle.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/no-conflicting-lifecycle.ts @@ -1,4 +1,4 @@ -import { RuleConverter } from "../../ruleConverter"; +import { RuleConverter } from "../ruleConverter"; export const convertNoConflictingLifecycle: RuleConverter = () => { return { diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/no-duplicate-string.ts b/src/converters/lintConfigs/rules/ruleConverters/no-duplicate-string.ts similarity index 87% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/no-duplicate-string.ts rename to src/converters/lintConfigs/rules/ruleConverters/no-duplicate-string.ts index 586352665..811bb829c 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/no-duplicate-string.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/no-duplicate-string.ts @@ -1,4 +1,4 @@ -import { RuleConverter } from "../../ruleConverter"; +import { RuleConverter } from "../ruleConverter"; export const convertNoDuplicateString: RuleConverter = (tslintRule) => { return { diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/no-duplicated-branches.ts b/src/converters/lintConfigs/rules/ruleConverters/no-duplicated-branches.ts similarity index 81% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/no-duplicated-branches.ts rename to src/converters/lintConfigs/rules/ruleConverters/no-duplicated-branches.ts index d2331afe8..65c0c66c7 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/no-duplicated-branches.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/no-duplicated-branches.ts @@ -1,4 +1,4 @@ -import { RuleConverter } from "../../ruleConverter"; +import { RuleConverter } from "../ruleConverter"; export const convertNoDuplicatedBranches: RuleConverter = () => { return { diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/no-element-overwrite.ts b/src/converters/lintConfigs/rules/ruleConverters/no-element-overwrite.ts similarity index 81% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/no-element-overwrite.ts rename to src/converters/lintConfigs/rules/ruleConverters/no-element-overwrite.ts index f22805889..20531a715 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/no-element-overwrite.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/no-element-overwrite.ts @@ -1,4 +1,4 @@ -import { RuleConverter } from "../../ruleConverter"; +import { RuleConverter } from "../ruleConverter"; export const convertNoElementOverwrite: RuleConverter = () => { return { diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/no-empty-destructuring.ts b/src/converters/lintConfigs/rules/ruleConverters/no-empty-destructuring.ts similarity index 78% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/no-empty-destructuring.ts rename to src/converters/lintConfigs/rules/ruleConverters/no-empty-destructuring.ts index f1f1f5f8e..45406df62 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/no-empty-destructuring.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/no-empty-destructuring.ts @@ -1,4 +1,4 @@ -import { RuleConverter } from "../../ruleConverter"; +import { RuleConverter } from "../ruleConverter"; export const convertNoEmptyDestructuring: RuleConverter = () => { return { diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/no-empty-nested-blocks.ts b/src/converters/lintConfigs/rules/ruleConverters/no-empty-nested-blocks.ts similarity index 82% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/no-empty-nested-blocks.ts rename to src/converters/lintConfigs/rules/ruleConverters/no-empty-nested-blocks.ts index 709f37265..471fb1b74 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/no-empty-nested-blocks.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/no-empty-nested-blocks.ts @@ -1,4 +1,4 @@ -import { RuleConverter } from "../../ruleConverter"; +import { RuleConverter } from "../ruleConverter"; export const convertNoEmptyNestedBlocks: RuleConverter = () => { return { diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/no-extra-semicolon.ts b/src/converters/lintConfigs/rules/ruleConverters/no-extra-semicolon.ts similarity index 85% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/no-extra-semicolon.ts rename to src/converters/lintConfigs/rules/ruleConverters/no-extra-semicolon.ts index c04cee51e..b27b3ea14 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/no-extra-semicolon.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/no-extra-semicolon.ts @@ -1,4 +1,4 @@ -import { RuleConverter } from "../../ruleConverter"; +import { RuleConverter } from "../ruleConverter"; export const convertNoExtraSemicolon: RuleConverter = () => { return { diff --git a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/no-forward-ref.ts b/src/converters/lintConfigs/rules/ruleConverters/no-forward-ref.ts similarity index 82% rename from src/converters/lintConfigs/rules/ruleConverters/codelyzer/no-forward-ref.ts rename to src/converters/lintConfigs/rules/ruleConverters/no-forward-ref.ts index 17a784e51..dde8b07ca 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/no-forward-ref.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/no-forward-ref.ts @@ -1,4 +1,4 @@ -import { RuleConverter } from "../../ruleConverter"; +import { RuleConverter } from "../ruleConverter"; export const convertNoForwardRef: RuleConverter = () => { return { diff --git a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/no-host-metadata-property.ts b/src/converters/lintConfigs/rules/ruleConverters/no-host-metadata-property.ts similarity index 83% rename from src/converters/lintConfigs/rules/ruleConverters/codelyzer/no-host-metadata-property.ts rename to src/converters/lintConfigs/rules/ruleConverters/no-host-metadata-property.ts index 99eccdd4d..cdf519374 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/no-host-metadata-property.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/no-host-metadata-property.ts @@ -1,4 +1,4 @@ -import { RuleConverter } from "../../ruleConverter"; +import { RuleConverter } from "../ruleConverter"; export const convertNoHostMetadataProperty: RuleConverter = () => { return { diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/no-identical-conditions.ts b/src/converters/lintConfigs/rules/ruleConverters/no-identical-conditions.ts similarity index 81% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/no-identical-conditions.ts rename to src/converters/lintConfigs/rules/ruleConverters/no-identical-conditions.ts index fcf383aa8..c946f3a69 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/no-identical-conditions.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/no-identical-conditions.ts @@ -1,4 +1,4 @@ -import { RuleConverter } from "../../ruleConverter"; +import { RuleConverter } from "../ruleConverter"; export const convertNoIdenticalConditions: RuleConverter = () => { return { diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/no-identical-expressions.ts b/src/converters/lintConfigs/rules/ruleConverters/no-identical-expressions.ts similarity index 81% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/no-identical-expressions.ts rename to src/converters/lintConfigs/rules/ruleConverters/no-identical-expressions.ts index 335f1f9f8..c43f58aa7 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/no-identical-expressions.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/no-identical-expressions.ts @@ -1,4 +1,4 @@ -import { RuleConverter } from "../../ruleConverter"; +import { RuleConverter } from "../ruleConverter"; export const convertNoIdenticalExpressions: RuleConverter = () => { return { diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/no-identical-functions.ts b/src/converters/lintConfigs/rules/ruleConverters/no-identical-functions.ts similarity index 81% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/no-identical-functions.ts rename to src/converters/lintConfigs/rules/ruleConverters/no-identical-functions.ts index 5af139bfc..a5c92ca9b 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/no-identical-functions.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/no-identical-functions.ts @@ -1,4 +1,4 @@ -import { RuleConverter } from "../../ruleConverter"; +import { RuleConverter } from "../ruleConverter"; export const convertNoIdenticalFunctions: RuleConverter = () => { return { diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/no-in-misuse.ts b/src/converters/lintConfigs/rules/ruleConverters/no-in-misuse.ts similarity index 79% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/no-in-misuse.ts rename to src/converters/lintConfigs/rules/ruleConverters/no-in-misuse.ts index 03cfe22dd..b054c2987 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/no-in-misuse.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/no-in-misuse.ts @@ -1,4 +1,4 @@ -import { RuleConverter } from "../../ruleConverter"; +import { RuleConverter } from "../ruleConverter"; export const convertNoInMisuse: RuleConverter = () => { return { diff --git a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/no-input-prefix.ts b/src/converters/lintConfigs/rules/ruleConverters/no-input-prefix.ts similarity index 90% rename from src/converters/lintConfigs/rules/ruleConverters/codelyzer/no-input-prefix.ts rename to src/converters/lintConfigs/rules/ruleConverters/no-input-prefix.ts index 74c64bf59..2c51986d5 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/no-input-prefix.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/no-input-prefix.ts @@ -1,4 +1,4 @@ -import { RuleConverter } from "../../ruleConverter"; +import { RuleConverter } from "../ruleConverter"; export const convertNoInputPrefix: RuleConverter = (tslintRule) => { return { diff --git a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/no-input-rename.ts b/src/converters/lintConfigs/rules/ruleConverters/no-input-rename.ts similarity index 82% rename from src/converters/lintConfigs/rules/ruleConverters/codelyzer/no-input-rename.ts rename to src/converters/lintConfigs/rules/ruleConverters/no-input-rename.ts index d66de3d6a..881cd7a4e 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/no-input-rename.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/no-input-rename.ts @@ -1,4 +1,4 @@ -import { RuleConverter } from "../../ruleConverter"; +import { RuleConverter } from "../ruleConverter"; export const convertNoInputRename: RuleConverter = () => { return { diff --git a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/no-inputs-metadata-property.ts b/src/converters/lintConfigs/rules/ruleConverters/no-inputs-metadata-property.ts similarity index 83% rename from src/converters/lintConfigs/rules/ruleConverters/codelyzer/no-inputs-metadata-property.ts rename to src/converters/lintConfigs/rules/ruleConverters/no-inputs-metadata-property.ts index 40d806f32..8696006a3 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/no-inputs-metadata-property.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/no-inputs-metadata-property.ts @@ -1,4 +1,4 @@ -import { RuleConverter } from "../../ruleConverter"; +import { RuleConverter } from "../ruleConverter"; export const convertNoInputsMetadataProperty: RuleConverter = () => { return { diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/no-invalid-await.ts b/src/converters/lintConfigs/rules/ruleConverters/no-invalid-await.ts similarity index 79% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/no-invalid-await.ts rename to src/converters/lintConfigs/rules/ruleConverters/no-invalid-await.ts index c0cf6e03b..07dd29157 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/no-invalid-await.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/no-invalid-await.ts @@ -1,4 +1,4 @@ -import { RuleConverter } from "../../ruleConverter"; +import { RuleConverter } from "../ruleConverter"; export const convertNoInvalidAwait: RuleConverter = () => { return { diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/no-inverted-boolean-check.ts b/src/converters/lintConfigs/rules/ruleConverters/no-inverted-boolean-check.ts similarity index 82% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/no-inverted-boolean-check.ts rename to src/converters/lintConfigs/rules/ruleConverters/no-inverted-boolean-check.ts index eaab49f79..d91887099 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/no-inverted-boolean-check.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/no-inverted-boolean-check.ts @@ -1,4 +1,4 @@ -import { RuleConverter } from "../../ruleConverter"; +import { RuleConverter } from "../ruleConverter"; export const convertNoInvertedBooleanCheck: RuleConverter = () => { return { diff --git a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/no-lifecycle-call.ts b/src/converters/lintConfigs/rules/ruleConverters/no-lifecycle-call.ts similarity index 82% rename from src/converters/lintConfigs/rules/ruleConverters/codelyzer/no-lifecycle-call.ts rename to src/converters/lintConfigs/rules/ruleConverters/no-lifecycle-call.ts index 43b5a745a..f31a53716 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/no-lifecycle-call.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/no-lifecycle-call.ts @@ -1,4 +1,4 @@ -import { RuleConverter } from "../../ruleConverter"; +import { RuleConverter } from "../ruleConverter"; export const convertNoLifecycleCall: RuleConverter = () => { return { diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/no-multiline-string-literals.ts b/src/converters/lintConfigs/rules/ruleConverters/no-multiline-string-literals.ts similarity index 78% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/no-multiline-string-literals.ts rename to src/converters/lintConfigs/rules/ruleConverters/no-multiline-string-literals.ts index 70f267960..66e1ad329 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/no-multiline-string-literals.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/no-multiline-string-literals.ts @@ -1,4 +1,4 @@ -import { RuleConverter } from "../../ruleConverter"; +import { RuleConverter } from "../ruleConverter"; export const convertNoMultilineStringLiterals: RuleConverter = () => { return { diff --git a/src/converters/lintConfigs/rules/ruleConverters/ngrx-tslint-rules/no-multiple-stores.ts b/src/converters/lintConfigs/rules/ruleConverters/no-multiple-stores.ts similarity index 82% rename from src/converters/lintConfigs/rules/ruleConverters/ngrx-tslint-rules/no-multiple-stores.ts rename to src/converters/lintConfigs/rules/ruleConverters/no-multiple-stores.ts index 0f91a9316..8a6bf03a7 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/ngrx-tslint-rules/no-multiple-stores.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/no-multiple-stores.ts @@ -1,4 +1,4 @@ -import { RuleConverter } from "../../ruleConverter"; +import { RuleConverter } from "../ruleConverter"; export const convertNoMultipleStores: RuleConverter = () => { return { diff --git a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/no-output-native.ts b/src/converters/lintConfigs/rules/ruleConverters/no-output-native.ts similarity index 82% rename from src/converters/lintConfigs/rules/ruleConverters/codelyzer/no-output-native.ts rename to src/converters/lintConfigs/rules/ruleConverters/no-output-native.ts index 37323922a..29fe94866 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/no-output-native.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/no-output-native.ts @@ -1,4 +1,4 @@ -import { RuleConverter } from "../../ruleConverter"; +import { RuleConverter } from "../ruleConverter"; export const convertNoOutputNative: RuleConverter = () => { return { diff --git a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/no-output-on-prefix.ts b/src/converters/lintConfigs/rules/ruleConverters/no-output-on-prefix.ts similarity index 83% rename from src/converters/lintConfigs/rules/ruleConverters/codelyzer/no-output-on-prefix.ts rename to src/converters/lintConfigs/rules/ruleConverters/no-output-on-prefix.ts index 1ebb9335d..72c9dbaf1 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/no-output-on-prefix.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/no-output-on-prefix.ts @@ -1,4 +1,4 @@ -import { RuleConverter } from "../../ruleConverter"; +import { RuleConverter } from "../ruleConverter"; export const convertNoOutputOnPrefix: RuleConverter = () => { return { diff --git a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/no-output-rename.ts b/src/converters/lintConfigs/rules/ruleConverters/no-output-rename.ts similarity index 82% rename from src/converters/lintConfigs/rules/ruleConverters/codelyzer/no-output-rename.ts rename to src/converters/lintConfigs/rules/ruleConverters/no-output-rename.ts index aef0731ed..563eaec7f 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/no-output-rename.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/no-output-rename.ts @@ -1,4 +1,4 @@ -import { RuleConverter } from "../../ruleConverter"; +import { RuleConverter } from "../ruleConverter"; export const convertNoOutputRename: RuleConverter = () => { return { diff --git a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/no-outputs-metadata-property.ts b/src/converters/lintConfigs/rules/ruleConverters/no-outputs-metadata-property.ts similarity index 83% rename from src/converters/lintConfigs/rules/ruleConverters/codelyzer/no-outputs-metadata-property.ts rename to src/converters/lintConfigs/rules/ruleConverters/no-outputs-metadata-property.ts index 5b86eb83f..b5fc4bc0f 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/no-outputs-metadata-property.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/no-outputs-metadata-property.ts @@ -1,4 +1,4 @@ -import { RuleConverter } from "../../ruleConverter"; +import { RuleConverter } from "../ruleConverter"; export const convertNoOutputsMetadataProperty: RuleConverter = () => { return { diff --git a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/no-pipe-impure.ts b/src/converters/lintConfigs/rules/ruleConverters/no-pipe-impure.ts similarity index 82% rename from src/converters/lintConfigs/rules/ruleConverters/codelyzer/no-pipe-impure.ts rename to src/converters/lintConfigs/rules/ruleConverters/no-pipe-impure.ts index d44a603a2..4190d9910 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/no-pipe-impure.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/no-pipe-impure.ts @@ -1,4 +1,4 @@ -import { RuleConverter } from "../../ruleConverter"; +import { RuleConverter } from "../ruleConverter"; export const convertNoPipeImpure: RuleConverter = () => { return { diff --git a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/no-queries-metadata-property.ts b/src/converters/lintConfigs/rules/ruleConverters/no-queries-metadata-property.ts similarity index 83% rename from src/converters/lintConfigs/rules/ruleConverters/codelyzer/no-queries-metadata-property.ts rename to src/converters/lintConfigs/rules/ruleConverters/no-queries-metadata-property.ts index c8bd5092f..612f4bb19 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/no-queries-metadata-property.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/no-queries-metadata-property.ts @@ -1,4 +1,4 @@ -import { RuleConverter } from "../../ruleConverter"; +import { RuleConverter } from "../ruleConverter"; export const convertNoQueriesMetadataProperty: RuleConverter = () => { return { diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/no-redundant-boolean.ts b/src/converters/lintConfigs/rules/ruleConverters/no-redundant-boolean.ts similarity index 81% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/no-redundant-boolean.ts rename to src/converters/lintConfigs/rules/ruleConverters/no-redundant-boolean.ts index 13718cd73..9c6304627 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/no-redundant-boolean.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/no-redundant-boolean.ts @@ -1,4 +1,4 @@ -import { RuleConverter } from "../../ruleConverter"; +import { RuleConverter } from "../ruleConverter"; export const convertNoRedundantBoolean: RuleConverter = () => { return { diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/no-redundant-jump.ts b/src/converters/lintConfigs/rules/ruleConverters/no-redundant-jump.ts similarity index 81% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/no-redundant-jump.ts rename to src/converters/lintConfigs/rules/ruleConverters/no-redundant-jump.ts index 23b16b5f1..fab00b8d5 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/no-redundant-jump.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/no-redundant-jump.ts @@ -1,4 +1,4 @@ -import { RuleConverter } from "../../ruleConverter"; +import { RuleConverter } from "../ruleConverter"; export const convertNoRedundantJump: RuleConverter = () => { return { diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/no-redundant-parentheses.ts b/src/converters/lintConfigs/rules/ruleConverters/no-redundant-parentheses.ts similarity index 78% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/no-redundant-parentheses.ts rename to src/converters/lintConfigs/rules/ruleConverters/no-redundant-parentheses.ts index a04c2c5c9..c78574592 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/no-redundant-parentheses.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/no-redundant-parentheses.ts @@ -1,4 +1,4 @@ -import { RuleConverter } from "../../ruleConverter"; +import { RuleConverter } from "../ruleConverter"; export const convertNoRedundantParentheses: RuleConverter = () => { return { diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/no-same-line-conditional.ts b/src/converters/lintConfigs/rules/ruleConverters/no-same-line-conditional.ts similarity index 81% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/no-same-line-conditional.ts rename to src/converters/lintConfigs/rules/ruleConverters/no-same-line-conditional.ts index d465729e3..a98e17ae6 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/no-same-line-conditional.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/no-same-line-conditional.ts @@ -1,4 +1,4 @@ -import { RuleConverter } from "../../ruleConverter"; +import { RuleConverter } from "../ruleConverter"; export const convertNoSameLineConditional: RuleConverter = () => { return { diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/no-self-assignment.ts b/src/converters/lintConfigs/rules/ruleConverters/no-self-assignment.ts similarity index 77% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/no-self-assignment.ts rename to src/converters/lintConfigs/rules/ruleConverters/no-self-assignment.ts index ca7ab9608..8c006ec90 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/no-self-assignment.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/no-self-assignment.ts @@ -1,4 +1,4 @@ -import { RuleConverter } from "../../ruleConverter"; +import { RuleConverter } from "../ruleConverter"; export const convertNoSelfAssignment: RuleConverter = () => { return { diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/no-small-switch.ts b/src/converters/lintConfigs/rules/ruleConverters/no-small-switch.ts similarity index 80% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/no-small-switch.ts rename to src/converters/lintConfigs/rules/ruleConverters/no-small-switch.ts index 818b3f674..016cc5745 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/no-small-switch.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/no-small-switch.ts @@ -1,4 +1,4 @@ -import { RuleConverter } from "../../ruleConverter"; +import { RuleConverter } from "../ruleConverter"; export const convertNoSmallSwitch: RuleConverter = () => { return { diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/no-unconditional-jump.ts b/src/converters/lintConfigs/rules/ruleConverters/no-unconditional-jump.ts similarity index 81% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/no-unconditional-jump.ts rename to src/converters/lintConfigs/rules/ruleConverters/no-unconditional-jump.ts index 091430cc8..d6d3a8fe0 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/no-unconditional-jump.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/no-unconditional-jump.ts @@ -1,4 +1,4 @@ -import { RuleConverter } from "../../ruleConverter"; +import { RuleConverter } from "../ruleConverter"; export const convertNoUnconditionalJump: RuleConverter = () => { return { diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/no-unused-array.ts b/src/converters/lintConfigs/rules/ruleConverters/no-unused-array.ts similarity index 81% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/no-unused-array.ts rename to src/converters/lintConfigs/rules/ruleConverters/no-unused-array.ts index b67b4a6d1..e2c1150b7 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/no-unused-array.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/no-unused-array.ts @@ -1,4 +1,4 @@ -import { RuleConverter } from "../../ruleConverter"; +import { RuleConverter } from "../ruleConverter"; export const convertNoUnusedArray: RuleConverter = () => { return { diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/no-use-of-empty-return-value.ts b/src/converters/lintConfigs/rules/ruleConverters/no-use-of-empty-return-value.ts similarity index 82% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/no-use-of-empty-return-value.ts rename to src/converters/lintConfigs/rules/ruleConverters/no-use-of-empty-return-value.ts index c8ef1fb4d..e1fa5a0aa 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/no-use-of-empty-return-value.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/no-use-of-empty-return-value.ts @@ -1,4 +1,4 @@ -import { RuleConverter } from "../../ruleConverter"; +import { RuleConverter } from "../ruleConverter"; export const convertNoUseOfEmptyReturnValue: RuleConverter = () => { return { diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/no-useless-cast.ts b/src/converters/lintConfigs/rules/ruleConverters/no-useless-cast.ts similarity index 80% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/no-useless-cast.ts rename to src/converters/lintConfigs/rules/ruleConverters/no-useless-cast.ts index 343aeaa99..c1b587fdd 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/no-useless-cast.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/no-useless-cast.ts @@ -1,4 +1,4 @@ -import { RuleConverter } from "../../ruleConverter"; +import { RuleConverter } from "../ruleConverter"; export const convertNoUselessCast: RuleConverter = () => { return { diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/no-useless-catch.ts b/src/converters/lintConfigs/rules/ruleConverters/no-useless-catch.ts similarity index 80% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/no-useless-catch.ts rename to src/converters/lintConfigs/rules/ruleConverters/no-useless-catch.ts index b07b49e82..7c01f7583 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/no-useless-catch.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/no-useless-catch.ts @@ -1,4 +1,4 @@ -import { RuleConverter } from "../../ruleConverter"; +import { RuleConverter } from "../ruleConverter"; export const convertNoUselessCatch: RuleConverter = () => { return { diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/no-variable-usage-before-declaration.ts b/src/converters/lintConfigs/rules/ruleConverters/no-variable-usage-before-declaration.ts similarity index 88% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/no-variable-usage-before-declaration.ts rename to src/converters/lintConfigs/rules/ruleConverters/no-variable-usage-before-declaration.ts index 39791f736..b01d4b5c0 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/no-variable-usage-before-declaration.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/no-variable-usage-before-declaration.ts @@ -1,4 +1,4 @@ -import { RuleConverter } from "../../ruleConverter"; +import { RuleConverter } from "../ruleConverter"; export const convertNoVariableUsageBeforeDeclaration: RuleConverter = () => { return { diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/parameters-max-number.ts b/src/converters/lintConfigs/rules/ruleConverters/parameters-max-number.ts similarity index 83% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/parameters-max-number.ts rename to src/converters/lintConfigs/rules/ruleConverters/parameters-max-number.ts index 5389f0786..9d04cf243 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/parameters-max-number.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/parameters-max-number.ts @@ -1,4 +1,4 @@ -import { RuleConverter } from "../../ruleConverter"; +import { RuleConverter } from "../ruleConverter"; export const convertParametersMaxNumber: RuleConverter = (tslintRule) => { return { diff --git a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/pipe-prefix.ts b/src/converters/lintConfigs/rules/ruleConverters/pipe-prefix.ts similarity index 90% rename from src/converters/lintConfigs/rules/ruleConverters/codelyzer/pipe-prefix.ts rename to src/converters/lintConfigs/rules/ruleConverters/pipe-prefix.ts index 5618585f6..19e0aece9 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/pipe-prefix.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/pipe-prefix.ts @@ -1,4 +1,4 @@ -import { RuleConverter } from "../../ruleConverter"; +import { RuleConverter } from "../ruleConverter"; export const convertPipePrefix: RuleConverter = (tslintRule) => { return { diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/prefer-default-last.ts b/src/converters/lintConfigs/rules/ruleConverters/prefer-default-last.ts similarity index 78% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/prefer-default-last.ts rename to src/converters/lintConfigs/rules/ruleConverters/prefer-default-last.ts index e13b7ee56..1f334d42a 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/prefer-default-last.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/prefer-default-last.ts @@ -1,4 +1,4 @@ -import { RuleConverter } from "../../ruleConverter"; +import { RuleConverter } from "../ruleConverter"; export const convertPreferDefaultLast: RuleConverter = () => { return { diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/prefer-immediate-return.ts b/src/converters/lintConfigs/rules/ruleConverters/prefer-immediate-return.ts similarity index 81% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/prefer-immediate-return.ts rename to src/converters/lintConfigs/rules/ruleConverters/prefer-immediate-return.ts index 6fce05b4a..2d753972d 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/prefer-immediate-return.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/prefer-immediate-return.ts @@ -1,4 +1,4 @@ -import { RuleConverter } from "../../ruleConverter"; +import { RuleConverter } from "../ruleConverter"; export const convertPreferImmediateReturn: RuleConverter = () => { return { diff --git a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/prefer-inline-decorator.ts b/src/converters/lintConfigs/rules/ruleConverters/prefer-inline-decorator.ts similarity index 61% rename from src/converters/lintConfigs/rules/ruleConverters/codelyzer/prefer-inline-decorator.ts rename to src/converters/lintConfigs/rules/ruleConverters/prefer-inline-decorator.ts index 57417a327..8d674d55e 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/prefer-inline-decorator.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/prefer-inline-decorator.ts @@ -1,4 +1,4 @@ -import { RuleConverter } from "../../ruleConverter"; +import { RuleConverter } from "../ruleConverter"; export const convertPreferInlineDecorator: RuleConverter = () => { return {}; diff --git a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/prefer-on-push-component-change-detection.ts b/src/converters/lintConfigs/rules/ruleConverters/prefer-on-push-component-change-detection.ts similarity index 85% rename from src/converters/lintConfigs/rules/ruleConverters/codelyzer/prefer-on-push-component-change-detection.ts rename to src/converters/lintConfigs/rules/ruleConverters/prefer-on-push-component-change-detection.ts index febe192d1..3f3db8995 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/prefer-on-push-component-change-detection.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/prefer-on-push-component-change-detection.ts @@ -1,4 +1,4 @@ -import { RuleConverter } from "../../ruleConverter"; +import { RuleConverter } from "../ruleConverter"; export const convertPreferOnPushComponentChangeDetection: RuleConverter = () => { return { diff --git a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/prefer-output-readonly.ts b/src/converters/lintConfigs/rules/ruleConverters/prefer-output-readonly.ts similarity index 83% rename from src/converters/lintConfigs/rules/ruleConverters/codelyzer/prefer-output-readonly.ts rename to src/converters/lintConfigs/rules/ruleConverters/prefer-output-readonly.ts index 0ede1bd61..5fa3ef409 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/prefer-output-readonly.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/prefer-output-readonly.ts @@ -1,4 +1,4 @@ -import { RuleConverter } from "../../ruleConverter"; +import { RuleConverter } from "../ruleConverter"; export const convertPreferOutputReadonly: RuleConverter = () => { return { diff --git a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/relative-url-prefix.ts b/src/converters/lintConfigs/rules/ruleConverters/relative-url-prefix.ts similarity index 83% rename from src/converters/lintConfigs/rules/ruleConverters/codelyzer/relative-url-prefix.ts rename to src/converters/lintConfigs/rules/ruleConverters/relative-url-prefix.ts index 354155414..bc9f87733 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/relative-url-prefix.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/relative-url-prefix.ts @@ -1,4 +1,4 @@ -import { RuleConverter } from "../../ruleConverter"; +import { RuleConverter } from "../ruleConverter"; export const convertRelativeUrlPrefix: RuleConverter = () => { return { diff --git a/src/converters/lintConfigs/rules/ruleConverters/rxjs-add.ts b/src/converters/lintConfigs/rules/ruleConverters/rxjs-add.ts new file mode 100644 index 000000000..2862da070 --- /dev/null +++ b/src/converters/lintConfigs/rules/ruleConverters/rxjs-add.ts @@ -0,0 +1,5 @@ +import { RuleConverter } from "../ruleConverter"; + +export const convertRxjsAdd: RuleConverter = () => { + return {}; +}; diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/ban-observables.ts b/src/converters/lintConfigs/rules/ruleConverters/rxjs-ban-observables.ts similarity index 64% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/ban-observables.ts rename to src/converters/lintConfigs/rules/ruleConverters/rxjs-ban-observables.ts index 2d5adb0f9..46cb3c25c 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/ban-observables.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/rxjs-ban-observables.ts @@ -1,6 +1,6 @@ -import { RuleConverter } from "../../ruleConverter"; +import { RuleConverter } from "../ruleConverter"; -export const convertBanObservables: RuleConverter = ({ ruleArguments }) => { +export const convertRxjsBanObservables: RuleConverter = ({ ruleArguments }) => { return { rules: [ { diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/ban-operators.ts b/src/converters/lintConfigs/rules/ruleConverters/rxjs-ban-operators.ts similarity index 65% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/ban-operators.ts rename to src/converters/lintConfigs/rules/ruleConverters/rxjs-ban-operators.ts index e719ab898..fe7898cd5 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/ban-operators.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/rxjs-ban-operators.ts @@ -1,6 +1,6 @@ -import { RuleConverter } from "../../ruleConverter"; +import { RuleConverter } from "../ruleConverter"; -export const convertBanOperators: RuleConverter = ({ ruleArguments }) => { +export const convertRxjsBanOperators: RuleConverter = ({ ruleArguments }) => { return { rules: [ { diff --git a/src/converters/lintConfigs/rules/ruleConverters/rxjs-deep-operators.ts b/src/converters/lintConfigs/rules/ruleConverters/rxjs-deep-operators.ts new file mode 100644 index 000000000..b37c462fc --- /dev/null +++ b/src/converters/lintConfigs/rules/ruleConverters/rxjs-deep-operators.ts @@ -0,0 +1,5 @@ +import { RuleConverter } from "../ruleConverter"; + +export const convertRxjsDeepOperators: RuleConverter = () => { + return {}; +}; diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/finnish.ts b/src/converters/lintConfigs/rules/ruleConverters/rxjs-finnish.ts similarity index 65% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/finnish.ts rename to src/converters/lintConfigs/rules/ruleConverters/rxjs-finnish.ts index 1a3381889..b1dd6689a 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/finnish.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/rxjs-finnish.ts @@ -1,6 +1,6 @@ -import { RuleConverter } from "../../ruleConverter"; +import { RuleConverter } from "../ruleConverter"; -export const convertFinnish: RuleConverter = ({ ruleArguments }) => { +export const convertRxjsFinnish: RuleConverter = ({ ruleArguments }) => { return { rules: [ { diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/just.ts b/src/converters/lintConfigs/rules/ruleConverters/rxjs-just.ts similarity index 60% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/just.ts rename to src/converters/lintConfigs/rules/ruleConverters/rxjs-just.ts index bf71f66cf..4e947157b 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/just.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/rxjs-just.ts @@ -1,6 +1,6 @@ -import { RuleConverter } from "../../ruleConverter"; +import { RuleConverter } from "../ruleConverter"; -export const convertJust: RuleConverter = () => { +export const convertRxjsJust: RuleConverter = () => { return { rules: [ { diff --git a/src/converters/lintConfigs/rules/ruleConverters/rxjs-no-add.ts b/src/converters/lintConfigs/rules/ruleConverters/rxjs-no-add.ts new file mode 100644 index 000000000..ade9a3050 --- /dev/null +++ b/src/converters/lintConfigs/rules/ruleConverters/rxjs-no-add.ts @@ -0,0 +1,5 @@ +import { RuleConverter } from "../ruleConverter"; + +export const convertRxjsNoAdd: RuleConverter = () => { + return {}; +}; diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/no-async-subscribe.ts b/src/converters/lintConfigs/rules/ruleConverters/rxjs-no-async-subscribe.ts similarity index 60% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/no-async-subscribe.ts rename to src/converters/lintConfigs/rules/ruleConverters/rxjs-no-async-subscribe.ts index e0f399dd0..147acd3fe 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/no-async-subscribe.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/rxjs-no-async-subscribe.ts @@ -1,6 +1,6 @@ -import { RuleConverter } from "../../ruleConverter"; +import { RuleConverter } from "../ruleConverter"; -export const convertNoAsyncSubscribe: RuleConverter = () => { +export const convertRxjsNoAsyncSubscribe: RuleConverter = () => { return { rules: [ { diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/no-compat.ts b/src/converters/lintConfigs/rules/ruleConverters/rxjs-no-compat.ts similarity index 60% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/no-compat.ts rename to src/converters/lintConfigs/rules/ruleConverters/rxjs-no-compat.ts index 93f79ac99..ad5497592 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/no-compat.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/rxjs-no-compat.ts @@ -1,6 +1,6 @@ -import { RuleConverter } from "../../ruleConverter"; +import { RuleConverter } from "../ruleConverter"; -export const convertNoCompat: RuleConverter = () => { +export const convertRxjsNoCompat: RuleConverter = () => { return { rules: [ { diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/no-connectable.ts b/src/converters/lintConfigs/rules/ruleConverters/rxjs-no-connectable.ts similarity index 60% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/no-connectable.ts rename to src/converters/lintConfigs/rules/ruleConverters/rxjs-no-connectable.ts index 485d3f16e..b197c64b1 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/no-connectable.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/rxjs-no-connectable.ts @@ -1,6 +1,6 @@ -import { RuleConverter } from "../../ruleConverter"; +import { RuleConverter } from "../ruleConverter"; -export const convertNoConnectable: RuleConverter = () => { +export const convertRxjsNoConnectable: RuleConverter = () => { return { rules: [ { diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/no-create.ts b/src/converters/lintConfigs/rules/ruleConverters/rxjs-no-create.ts similarity index 60% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/no-create.ts rename to src/converters/lintConfigs/rules/ruleConverters/rxjs-no-create.ts index 5001c7594..011cefbc4 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/no-create.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/rxjs-no-create.ts @@ -1,6 +1,6 @@ -import { RuleConverter } from "../../ruleConverter"; +import { RuleConverter } from "../ruleConverter"; -export const convertNoCreate: RuleConverter = () => { +export const convertRxjsNoCreate: RuleConverter = () => { return { rules: [ { diff --git a/src/converters/lintConfigs/rules/ruleConverters/rxjs-no-deep-operators.ts b/src/converters/lintConfigs/rules/ruleConverters/rxjs-no-deep-operators.ts new file mode 100644 index 000000000..280ad82c2 --- /dev/null +++ b/src/converters/lintConfigs/rules/ruleConverters/rxjs-no-deep-operators.ts @@ -0,0 +1,5 @@ +import { RuleConverter } from "../ruleConverter"; + +export const convertRxjsNoDeepOperators: RuleConverter = () => { + return {}; +}; diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/no-explicit-generics.ts b/src/converters/lintConfigs/rules/ruleConverters/rxjs-no-explicit-generics.ts similarity index 60% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/no-explicit-generics.ts rename to src/converters/lintConfigs/rules/ruleConverters/rxjs-no-explicit-generics.ts index e36b61c96..a27c8cef3 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/no-explicit-generics.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/rxjs-no-explicit-generics.ts @@ -1,6 +1,6 @@ -import { RuleConverter } from "../../ruleConverter"; +import { RuleConverter } from "../ruleConverter"; -export const convertNoExplicitGenerics: RuleConverter = () => { +export const convertRxjsNoExplicitGenerics: RuleConverter = () => { return { rules: [ { diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/no-exposed-subjects.ts b/src/converters/lintConfigs/rules/ruleConverters/rxjs-no-exposed-subjects.ts similarity index 71% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/no-exposed-subjects.ts rename to src/converters/lintConfigs/rules/ruleConverters/rxjs-no-exposed-subjects.ts index 57ae6d527..d75f37081 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/no-exposed-subjects.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/rxjs-no-exposed-subjects.ts @@ -1,6 +1,6 @@ -import { RuleConverter } from "../../ruleConverter"; +import { RuleConverter } from "../ruleConverter"; -export const convertNoExposedSubjects: RuleConverter = (tslintRule) => { +export const convertRxjsNoExposedSubjects: RuleConverter = (tslintRule) => { return { rules: [ { diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/no-finnish.ts b/src/converters/lintConfigs/rules/ruleConverters/rxjs-no-finnish.ts similarity index 60% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/no-finnish.ts rename to src/converters/lintConfigs/rules/ruleConverters/rxjs-no-finnish.ts index cd15c12ee..f7efb9386 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/no-finnish.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/rxjs-no-finnish.ts @@ -1,6 +1,6 @@ -import { RuleConverter } from "../../ruleConverter"; +import { RuleConverter } from "../ruleConverter"; -export const convertNoFinnish: RuleConverter = () => { +export const convertRxjsNoFinnish: RuleConverter = () => { return { rules: [ { diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/no-ignored-error.ts b/src/converters/lintConfigs/rules/ruleConverters/rxjs-no-ignored-error.ts similarity index 60% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/no-ignored-error.ts rename to src/converters/lintConfigs/rules/ruleConverters/rxjs-no-ignored-error.ts index 7ed58fbba..bff95415d 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/no-ignored-error.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/rxjs-no-ignored-error.ts @@ -1,6 +1,6 @@ -import { RuleConverter } from "../../ruleConverter"; +import { RuleConverter } from "../ruleConverter"; -export const convertNoIgnoredError: RuleConverter = () => { +export const convertRxjsNoIgnoredError: RuleConverter = () => { return { rules: [ { diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/no-ignored-notifier.ts b/src/converters/lintConfigs/rules/ruleConverters/rxjs-no-ignored-notifier.ts similarity index 60% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/no-ignored-notifier.ts rename to src/converters/lintConfigs/rules/ruleConverters/rxjs-no-ignored-notifier.ts index 0053d06cb..58c8db340 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/no-ignored-notifier.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/rxjs-no-ignored-notifier.ts @@ -1,6 +1,6 @@ -import { RuleConverter } from "../../ruleConverter"; +import { RuleConverter } from "../ruleConverter"; -export const convertNoIgnoredNotifier: RuleConverter = () => { +export const convertRxjsNoIgnoredNotifier: RuleConverter = () => { return { rules: [ { diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/no-ignored-observable.ts b/src/converters/lintConfigs/rules/ruleConverters/rxjs-no-ignored-observable.ts similarity index 59% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/no-ignored-observable.ts rename to src/converters/lintConfigs/rules/ruleConverters/rxjs-no-ignored-observable.ts index 8f3f5331f..7ccab5586 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/no-ignored-observable.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/rxjs-no-ignored-observable.ts @@ -1,6 +1,6 @@ -import { RuleConverter } from "../../ruleConverter"; +import { RuleConverter } from "../ruleConverter"; -export const convertNoIgnoredObservable: RuleConverter = () => { +export const convertRxjsNoIgnoredObservable: RuleConverter = () => { return { rules: [ { diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/no-ignored-replay-buffer.ts b/src/converters/lintConfigs/rules/ruleConverters/rxjs-no-ignored-replay-buffer.ts similarity index 59% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/no-ignored-replay-buffer.ts rename to src/converters/lintConfigs/rules/ruleConverters/rxjs-no-ignored-replay-buffer.ts index 13b7b8561..14f1581ed 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/no-ignored-replay-buffer.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/rxjs-no-ignored-replay-buffer.ts @@ -1,6 +1,6 @@ -import { RuleConverter } from "../../ruleConverter"; +import { RuleConverter } from "../ruleConverter"; -export const convertNoIgnoredReplayBuffer: RuleConverter = () => { +export const convertRxjsNoIgnoredReplayBuffer: RuleConverter = () => { return { rules: [ { diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/no-ignored-subscribe.ts b/src/converters/lintConfigs/rules/ruleConverters/rxjs-no-ignored-subscribe.ts similarity index 60% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/no-ignored-subscribe.ts rename to src/converters/lintConfigs/rules/ruleConverters/rxjs-no-ignored-subscribe.ts index a6b2b85b3..50f22d55e 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/no-ignored-subscribe.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/rxjs-no-ignored-subscribe.ts @@ -1,6 +1,6 @@ -import { RuleConverter } from "../../ruleConverter"; +import { RuleConverter } from "../ruleConverter"; -export const convertNoIgnoredSubscribe: RuleConverter = () => { +export const convertRxjsNoIgnoredSubscribe: RuleConverter = () => { return { rules: [ { diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/no-ignored-subscription.ts b/src/converters/lintConfigs/rules/ruleConverters/rxjs-no-ignored-subscription.ts similarity index 59% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/no-ignored-subscription.ts rename to src/converters/lintConfigs/rules/ruleConverters/rxjs-no-ignored-subscription.ts index 2acc4f50e..06123be80 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/no-ignored-subscription.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/rxjs-no-ignored-subscription.ts @@ -1,6 +1,6 @@ -import { RuleConverter } from "../../ruleConverter"; +import { RuleConverter } from "../ruleConverter"; -export const convertNoIgnoredSubscription: RuleConverter = () => { +export const convertRxjsNoIgnoredSubscription: RuleConverter = () => { return { rules: [ { diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/no-ignored-takewhile-value.ts b/src/converters/lintConfigs/rules/ruleConverters/rxjs-no-ignored-takewhile-value.ts similarity index 59% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/no-ignored-takewhile-value.ts rename to src/converters/lintConfigs/rules/ruleConverters/rxjs-no-ignored-takewhile-value.ts index ab5d803bb..21cea2cf3 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/no-ignored-takewhile-value.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/rxjs-no-ignored-takewhile-value.ts @@ -1,6 +1,6 @@ -import { RuleConverter } from "../../ruleConverter"; +import { RuleConverter } from "../ruleConverter"; -export const convertNoIgnoredTakewhileValue: RuleConverter = () => { +export const convertRxjsNoIgnoredTakeWhileValue: RuleConverter = () => { return { rules: [ { diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/no-implicit-any-catch.ts b/src/converters/lintConfigs/rules/ruleConverters/rxjs-no-implicit-any-catch.ts similarity index 71% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/no-implicit-any-catch.ts rename to src/converters/lintConfigs/rules/ruleConverters/rxjs-no-implicit-any-catch.ts index bc040b30b..85b9e95d5 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/no-implicit-any-catch.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/rxjs-no-implicit-any-catch.ts @@ -1,6 +1,6 @@ -import { RuleConverter } from "../../ruleConverter"; +import { RuleConverter } from "../ruleConverter"; -export const convertNoImplicitAnyCatch: RuleConverter = (tslintRule) => { +export const convertRxjsNoImplicitAnyCatch: RuleConverter = (tslintRule) => { return { rules: [ { diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/no-index.ts b/src/converters/lintConfigs/rules/ruleConverters/rxjs-no-index.ts similarity index 60% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/no-index.ts rename to src/converters/lintConfigs/rules/ruleConverters/rxjs-no-index.ts index 2819b8220..801386ff6 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/no-index.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/rxjs-no-index.ts @@ -1,6 +1,6 @@ -import { RuleConverter } from "../../ruleConverter"; +import { RuleConverter } from "../ruleConverter"; -export const convertNoIndex: RuleConverter = () => { +export const convertRxjsNoIndex: RuleConverter = () => { return { rules: [ { diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/no-internal.ts b/src/converters/lintConfigs/rules/ruleConverters/rxjs-no-internal.ts similarity index 60% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/no-internal.ts rename to src/converters/lintConfigs/rules/ruleConverters/rxjs-no-internal.ts index 483fe8dc7..3c23f75ed 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/no-internal.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/rxjs-no-internal.ts @@ -1,6 +1,6 @@ -import { RuleConverter } from "../../ruleConverter"; +import { RuleConverter } from "../ruleConverter"; -export const convertNoInternal: RuleConverter = () => { +export const convertRxjsNoInternal: RuleConverter = () => { return { rules: [ { diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/no-nested-subscribe.ts b/src/converters/lintConfigs/rules/ruleConverters/rxjs-no-nested-subscribe.ts similarity index 60% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/no-nested-subscribe.ts rename to src/converters/lintConfigs/rules/ruleConverters/rxjs-no-nested-subscribe.ts index 020411779..88827ff67 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/no-nested-subscribe.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/rxjs-no-nested-subscribe.ts @@ -1,6 +1,6 @@ -import { RuleConverter } from "../../ruleConverter"; +import { RuleConverter } from "../ruleConverter"; -export const convertNoNestedSubscribe: RuleConverter = () => { +export const convertRxjsNoNestedSubscribe: RuleConverter = () => { return { rules: [ { diff --git a/src/converters/lintConfigs/rules/ruleConverters/rxjs-no-operator.ts b/src/converters/lintConfigs/rules/ruleConverters/rxjs-no-operator.ts new file mode 100644 index 000000000..a6298db4e --- /dev/null +++ b/src/converters/lintConfigs/rules/ruleConverters/rxjs-no-operator.ts @@ -0,0 +1,5 @@ +import { RuleConverter } from "../ruleConverter"; + +export const convertRxjsNoOperator: RuleConverter = () => { + return {}; +}; diff --git a/src/converters/lintConfigs/rules/ruleConverters/rxjs-no-patched.ts b/src/converters/lintConfigs/rules/ruleConverters/rxjs-no-patched.ts new file mode 100644 index 000000000..97d1bcf7a --- /dev/null +++ b/src/converters/lintConfigs/rules/ruleConverters/rxjs-no-patched.ts @@ -0,0 +1,5 @@ +import { RuleConverter } from "../ruleConverter"; + +export const convertRxjsNoPatched: RuleConverter = () => { + return {}; +}; diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/no-redundant-notify.ts b/src/converters/lintConfigs/rules/ruleConverters/rxjs-no-redundant-notify.ts similarity index 60% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/no-redundant-notify.ts rename to src/converters/lintConfigs/rules/ruleConverters/rxjs-no-redundant-notify.ts index 1be51833f..d4513cd56 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/no-redundant-notify.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/rxjs-no-redundant-notify.ts @@ -1,6 +1,6 @@ -import { RuleConverter } from "../../ruleConverter"; +import { RuleConverter } from "../ruleConverter"; -export const convertNoRedundantNotify: RuleConverter = () => { +export const convertRxjsNoRedundantNotify: RuleConverter = () => { return { rules: [ { diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/no-sharereplay.ts b/src/converters/lintConfigs/rules/ruleConverters/rxjs-no-sharereplay.ts similarity index 71% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/no-sharereplay.ts rename to src/converters/lintConfigs/rules/ruleConverters/rxjs-no-sharereplay.ts index dc7649029..b0faf6fe9 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/no-sharereplay.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/rxjs-no-sharereplay.ts @@ -1,6 +1,6 @@ -import { RuleConverter } from "../../ruleConverter"; +import { RuleConverter } from "../ruleConverter"; -export const convertNoShareReplay: RuleConverter = (tslintRule) => { +export const convertRxjsNoShareReplay: RuleConverter = (tslintRule) => { return { rules: [ { diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/no-subclass.ts b/src/converters/lintConfigs/rules/ruleConverters/rxjs-no-subclass.ts similarity index 60% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/no-subclass.ts rename to src/converters/lintConfigs/rules/ruleConverters/rxjs-no-subclass.ts index 2b73c264e..8739e25e4 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/no-subclass.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/rxjs-no-subclass.ts @@ -1,6 +1,6 @@ -import { RuleConverter } from "../../ruleConverter"; +import { RuleConverter } from "../ruleConverter"; -export const convertNoSubclass: RuleConverter = () => { +export const convertRxjsNoSubclass: RuleConverter = () => { return { rules: [ { diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/no-subject-unsubscribe.ts b/src/converters/lintConfigs/rules/ruleConverters/rxjs-no-subject-unsubscribe.ts similarity index 60% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/no-subject-unsubscribe.ts rename to src/converters/lintConfigs/rules/ruleConverters/rxjs-no-subject-unsubscribe.ts index b03edc83e..c4f650c6b 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/no-subject-unsubscribe.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/rxjs-no-subject-unsubscribe.ts @@ -1,6 +1,6 @@ -import { RuleConverter } from "../../ruleConverter"; +import { RuleConverter } from "../ruleConverter"; -export const convertNoSubjectUnubscribe: RuleConverter = () => { +export const convertRxjsNoSubjectUnubscribe: RuleConverter = () => { return { rules: [ { diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/no-subject-value.ts b/src/converters/lintConfigs/rules/ruleConverters/rxjs-no-subject-value.ts similarity index 60% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/no-subject-value.ts rename to src/converters/lintConfigs/rules/ruleConverters/rxjs-no-subject-value.ts index 446370ef7..5d592030a 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/no-subject-value.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/rxjs-no-subject-value.ts @@ -1,6 +1,6 @@ -import { RuleConverter } from "../../ruleConverter"; +import { RuleConverter } from "../ruleConverter"; -export const convertNoSubjectValue: RuleConverter = () => { +export const convertRxjsNoSubjectValue: RuleConverter = () => { return { rules: [ { diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/no-tap.ts b/src/converters/lintConfigs/rules/ruleConverters/rxjs-no-tap.ts similarity index 67% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/no-tap.ts rename to src/converters/lintConfigs/rules/ruleConverters/rxjs-no-tap.ts index a12753f32..234211028 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/no-tap.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/rxjs-no-tap.ts @@ -1,6 +1,6 @@ -import { RuleConverter } from "../../ruleConverter"; +import { RuleConverter } from "../ruleConverter"; -export const convertNoTap: RuleConverter = () => { +export const convertRxjsNoTap: RuleConverter = () => { return { rules: [ { diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/no-topromise.ts b/src/converters/lintConfigs/rules/ruleConverters/rxjs-no-topromise.ts similarity index 60% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/no-topromise.ts rename to src/converters/lintConfigs/rules/ruleConverters/rxjs-no-topromise.ts index e3cf02bc7..64be3f536 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/no-topromise.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/rxjs-no-topromise.ts @@ -1,6 +1,6 @@ -import { RuleConverter } from "../../ruleConverter"; +import { RuleConverter } from "../ruleConverter"; -export const convertNoToPromise: RuleConverter = () => { +export const convertRxjsNoToPromise: RuleConverter = () => { return { rules: [ { diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/no-unbound-methods.ts b/src/converters/lintConfigs/rules/ruleConverters/rxjs-no-unbound-methods.ts similarity index 60% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/no-unbound-methods.ts rename to src/converters/lintConfigs/rules/ruleConverters/rxjs-no-unbound-methods.ts index b0918a600..73f57836e 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/no-unbound-methods.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/rxjs-no-unbound-methods.ts @@ -1,6 +1,6 @@ -import { RuleConverter } from "../../ruleConverter"; +import { RuleConverter } from "../ruleConverter"; -export const convertNoUnboundMethods: RuleConverter = () => { +export const convertRxjsNoUnboundMethods: RuleConverter = () => { return { rules: [ { diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/no-unsafe-catch.ts b/src/converters/lintConfigs/rules/ruleConverters/rxjs-no-unsafe-catch.ts similarity index 65% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/no-unsafe-catch.ts rename to src/converters/lintConfigs/rules/ruleConverters/rxjs-no-unsafe-catch.ts index 6f13d3aae..6d430e9fe 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/no-unsafe-catch.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/rxjs-no-unsafe-catch.ts @@ -1,6 +1,6 @@ -import { RuleConverter } from "../../ruleConverter"; +import { RuleConverter } from "../ruleConverter"; -export const convertNoUnsafeCatch: RuleConverter = ({ ruleArguments }) => { +export const convertRxjsNoUnsafeCatch: RuleConverter = ({ ruleArguments }) => { return { rules: [ { diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/no-unsafe-first.ts b/src/converters/lintConfigs/rules/ruleConverters/rxjs-no-unsafe-first.ts similarity index 60% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/no-unsafe-first.ts rename to src/converters/lintConfigs/rules/ruleConverters/rxjs-no-unsafe-first.ts index a51450e79..256ce068e 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/no-unsafe-first.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/rxjs-no-unsafe-first.ts @@ -1,6 +1,6 @@ -import { RuleConverter } from "../../ruleConverter"; +import { RuleConverter } from "../ruleConverter"; -export const convertNoUnsafeFirst: RuleConverter = () => { +export const convertRxjsNoUnsafeFirst: RuleConverter = () => { return { rules: [ { diff --git a/src/converters/lintConfigs/rules/ruleConverters/rxjs-no-unsafe-scope.ts b/src/converters/lintConfigs/rules/ruleConverters/rxjs-no-unsafe-scope.ts new file mode 100644 index 000000000..f9126e9cd --- /dev/null +++ b/src/converters/lintConfigs/rules/ruleConverters/rxjs-no-unsafe-scope.ts @@ -0,0 +1,5 @@ +import { RuleConverter } from "../ruleConverter"; + +export const convertRxjsNoUnsafeScope: RuleConverter = () => { + return {}; +}; diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/no-unsafe-subject-next.ts b/src/converters/lintConfigs/rules/ruleConverters/rxjs-no-unsafe-subject-next.ts similarity index 60% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/no-unsafe-subject-next.ts rename to src/converters/lintConfigs/rules/ruleConverters/rxjs-no-unsafe-subject-next.ts index 7d47e4676..5cf45dc89 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/no-unsafe-subject-next.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/rxjs-no-unsafe-subject-next.ts @@ -1,6 +1,6 @@ -import { RuleConverter } from "../../ruleConverter"; +import { RuleConverter } from "../ruleConverter"; -export const convertNoUnsafeSubjectNext: RuleConverter = () => { +export const convertRxjsNoUnsafeSubjectNext: RuleConverter = () => { return { rules: [ { diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/no-unsafe-switchmap.ts b/src/converters/lintConfigs/rules/ruleConverters/rxjs-no-unsafe-switchmap.ts similarity index 64% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/no-unsafe-switchmap.ts rename to src/converters/lintConfigs/rules/ruleConverters/rxjs-no-unsafe-switchmap.ts index 961cc943a..577983136 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/no-unsafe-switchmap.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/rxjs-no-unsafe-switchmap.ts @@ -1,6 +1,6 @@ -import { RuleConverter } from "../../ruleConverter"; +import { RuleConverter } from "../ruleConverter"; -export const convertNoUnsafeSwitchmap: RuleConverter = ({ ruleArguments }) => { +export const convertRxjsNoUnsafeSwitchmap: RuleConverter = ({ ruleArguments }) => { return { rules: [ { diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/no-unsafe-takeuntil.ts b/src/converters/lintConfigs/rules/ruleConverters/rxjs-no-unsafe-takeuntil.ts similarity index 71% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/no-unsafe-takeuntil.ts rename to src/converters/lintConfigs/rules/ruleConverters/rxjs-no-unsafe-takeuntil.ts index 4b34d2669..412c5fce7 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/no-unsafe-takeuntil.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/rxjs-no-unsafe-takeuntil.ts @@ -1,6 +1,6 @@ -import { RuleConverter } from "../../ruleConverter"; +import { RuleConverter } from "../ruleConverter"; -export const convertNoUnsafeTakeuntil: RuleConverter = (tslintRule) => { +export const convertRxjsNoUnsafeTakeUntil: RuleConverter = (tslintRule) => { return { rules: [ { diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/no-unsafe-takewhile.ts b/src/converters/lintConfigs/rules/ruleConverters/rxjs-no-unsafe-takewhile.ts similarity index 61% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/no-unsafe-takewhile.ts rename to src/converters/lintConfigs/rules/ruleConverters/rxjs-no-unsafe-takewhile.ts index 757f184ad..fde97c147 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/no-unsafe-takewhile.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/rxjs-no-unsafe-takewhile.ts @@ -1,6 +1,6 @@ -import { RuleConverter } from "../../ruleConverter"; +import { RuleConverter } from "../ruleConverter"; -export const convertNoUnsafeTakewhile: RuleConverter = () => { +export const convertRxjsNoUnsafeTakewhile: RuleConverter = () => { return { rules: [ { diff --git a/src/converters/lintConfigs/rules/ruleConverters/rxjs-no-unused-add.ts b/src/converters/lintConfigs/rules/ruleConverters/rxjs-no-unused-add.ts new file mode 100644 index 000000000..54e2839b2 --- /dev/null +++ b/src/converters/lintConfigs/rules/ruleConverters/rxjs-no-unused-add.ts @@ -0,0 +1,5 @@ +import { RuleConverter } from "../ruleConverter"; + +export const convertRxjsNoUnusedAdd: RuleConverter = () => { + return {}; +}; diff --git a/src/converters/lintConfigs/rules/ruleConverters/rxjs-no-wholesale.ts b/src/converters/lintConfigs/rules/ruleConverters/rxjs-no-wholesale.ts new file mode 100644 index 000000000..aa8c83f1c --- /dev/null +++ b/src/converters/lintConfigs/rules/ruleConverters/rxjs-no-wholesale.ts @@ -0,0 +1,5 @@ +import { RuleConverter } from "../ruleConverter"; + +export const convertRxjsNoWholesale: RuleConverter = () => { + return {}; +}; diff --git a/src/converters/lintConfigs/rules/ruleConverters/rxjs-prefer-add.ts b/src/converters/lintConfigs/rules/ruleConverters/rxjs-prefer-add.ts new file mode 100644 index 000000000..c7d89489b --- /dev/null +++ b/src/converters/lintConfigs/rules/ruleConverters/rxjs-prefer-add.ts @@ -0,0 +1,5 @@ +import { RuleConverter } from "../ruleConverter"; + +export const convertRxjsPreferAdd: RuleConverter = () => { + return {}; +}; diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/prefer-angular-async-pipe.ts b/src/converters/lintConfigs/rules/ruleConverters/rxjs-prefer-angular-async-pipe.ts similarity index 57% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/prefer-angular-async-pipe.ts rename to src/converters/lintConfigs/rules/ruleConverters/rxjs-prefer-angular-async-pipe.ts index 23451373d..14358b0c5 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/prefer-angular-async-pipe.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/rxjs-prefer-angular-async-pipe.ts @@ -1,6 +1,6 @@ -import { RuleConverter } from "../../ruleConverter"; +import { RuleConverter } from "../ruleConverter"; -export const convertPreferAngularAsyncPipe: RuleConverter = () => { +export const convertRxjsPreferAngularAsyncPipe: RuleConverter = () => { return { rules: [ { diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/prefer-angular-composition.ts b/src/converters/lintConfigs/rules/ruleConverters/rxjs-prefer-angular-composition.ts similarity index 56% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/prefer-angular-composition.ts rename to src/converters/lintConfigs/rules/ruleConverters/rxjs-prefer-angular-composition.ts index aef48812f..a06e032c5 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/prefer-angular-composition.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/rxjs-prefer-angular-composition.ts @@ -1,6 +1,6 @@ -import { RuleConverter } from "../../ruleConverter"; +import { RuleConverter } from "../ruleConverter"; -export const convertPreferAngularComposition: RuleConverter = () => { +export const convertRxjsPreferAngularComposition: RuleConverter = () => { return { rules: [ { diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/prefer-angular-takeuntil.ts b/src/converters/lintConfigs/rules/ruleConverters/rxjs-prefer-angular-takeuntil.ts similarity index 62% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/prefer-angular-takeuntil.ts rename to src/converters/lintConfigs/rules/ruleConverters/rxjs-prefer-angular-takeuntil.ts index d89a05c2b..768506d1c 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/prefer-angular-takeuntil.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/rxjs-prefer-angular-takeuntil.ts @@ -1,6 +1,6 @@ -import { RuleConverter } from "../../ruleConverter"; +import { RuleConverter } from "../ruleConverter"; -export const convertPreferAngularTakeuntil: RuleConverter = ({ ruleArguments }) => { +export const convertRxjsPreferAngularTakeuntil: RuleConverter = ({ ruleArguments }) => { return { rules: [ { diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/prefer-observer.ts b/src/converters/lintConfigs/rules/ruleConverters/rxjs-prefer-observer.ts similarity index 64% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/prefer-observer.ts rename to src/converters/lintConfigs/rules/ruleConverters/rxjs-prefer-observer.ts index 1349017e7..f5108e448 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/prefer-observer.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/rxjs-prefer-observer.ts @@ -1,6 +1,6 @@ -import { RuleConverter } from "../../ruleConverter"; +import { RuleConverter } from "../ruleConverter"; -export const convertPreferObserver: RuleConverter = ({ ruleArguments }) => { +export const convertRxjsPreferObserver: RuleConverter = ({ ruleArguments }) => { return { rules: [ { diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/suffix-subjects.ts b/src/converters/lintConfigs/rules/ruleConverters/rxjs-suffix-subjects.ts similarity index 64% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/suffix-subjects.ts rename to src/converters/lintConfigs/rules/ruleConverters/rxjs-suffix-subjects.ts index cab582eee..becc5f186 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/suffix-subjects.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/rxjs-suffix-subjects.ts @@ -1,6 +1,6 @@ -import { RuleConverter } from "../../ruleConverter"; +import { RuleConverter } from "../ruleConverter"; -export const convertSuffixSubjects: RuleConverter = ({ ruleArguments }) => { +export const convertRxjsSuffixSubjects: RuleConverter = ({ ruleArguments }) => { return { rules: [ { diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/throw-error.ts b/src/converters/lintConfigs/rules/ruleConverters/rxjs-throw-error.ts similarity index 60% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/throw-error.ts rename to src/converters/lintConfigs/rules/ruleConverters/rxjs-throw-error.ts index dd30e83d1..e6686fd7f 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/throw-error.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/rxjs-throw-error.ts @@ -1,6 +1,6 @@ -import { RuleConverter } from "../../ruleConverter"; +import { RuleConverter } from "../ruleConverter"; -export const convertThrowError: RuleConverter = () => { +export const convertRxjsThrowError: RuleConverter = () => { return { rules: [ { diff --git a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/template-accessibility-alt-text.ts b/src/converters/lintConfigs/rules/ruleConverters/template-accessibility-alt-text.ts similarity index 84% rename from src/converters/lintConfigs/rules/ruleConverters/codelyzer/template-accessibility-alt-text.ts rename to src/converters/lintConfigs/rules/ruleConverters/template-accessibility-alt-text.ts index 2cba7cded..819ee5c4b 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/template-accessibility-alt-text.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/template-accessibility-alt-text.ts @@ -1,4 +1,4 @@ -import { RuleConverter } from "../../ruleConverter"; +import { RuleConverter } from "../ruleConverter"; export const convertTemplateAccessibilityAltText: RuleConverter = () => { return { diff --git a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/template-accessibility-elements-content.ts b/src/converters/lintConfigs/rules/ruleConverters/template-accessibility-elements-content.ts similarity index 85% rename from src/converters/lintConfigs/rules/ruleConverters/codelyzer/template-accessibility-elements-content.ts rename to src/converters/lintConfigs/rules/ruleConverters/template-accessibility-elements-content.ts index b6ad324be..a5a685ee4 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/template-accessibility-elements-content.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/template-accessibility-elements-content.ts @@ -1,4 +1,4 @@ -import { RuleConverter } from "../../ruleConverter"; +import { RuleConverter } from "../ruleConverter"; export const convertTemplateAccessibilityElementsContent: RuleConverter = () => { return { diff --git a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/template-accessibility-label-for.ts b/src/converters/lintConfigs/rules/ruleConverters/template-accessibility-label-for.ts similarity index 96% rename from src/converters/lintConfigs/rules/ruleConverters/codelyzer/template-accessibility-label-for.ts rename to src/converters/lintConfigs/rules/ruleConverters/template-accessibility-label-for.ts index 1b820b84f..16e15fdb4 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/template-accessibility-label-for.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/template-accessibility-label-for.ts @@ -1,4 +1,4 @@ -import { RuleConverter } from "../../ruleConverter"; +import { RuleConverter } from "../ruleConverter"; export const convertTemplateAccessibilityLabelFor: RuleConverter = (tslintRule) => { return { diff --git a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/template-accessibility-tabindex-no-positive.ts b/src/converters/lintConfigs/rules/ruleConverters/template-accessibility-tabindex-no-positive.ts similarity index 85% rename from src/converters/lintConfigs/rules/ruleConverters/codelyzer/template-accessibility-tabindex-no-positive.ts rename to src/converters/lintConfigs/rules/ruleConverters/template-accessibility-tabindex-no-positive.ts index 2a4bfc797..f9479c182 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/template-accessibility-tabindex-no-positive.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/template-accessibility-tabindex-no-positive.ts @@ -1,4 +1,4 @@ -import { RuleConverter } from "../../ruleConverter"; +import { RuleConverter } from "../ruleConverter"; export const convertTemplateAccessibilityTabindexNoPositive: RuleConverter = () => { return { diff --git a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/template-accessibility-table-scope.ts b/src/converters/lintConfigs/rules/ruleConverters/template-accessibility-table-scope.ts similarity index 84% rename from src/converters/lintConfigs/rules/ruleConverters/codelyzer/template-accessibility-table-scope.ts rename to src/converters/lintConfigs/rules/ruleConverters/template-accessibility-table-scope.ts index e0380f88d..02f415cad 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/template-accessibility-table-scope.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/template-accessibility-table-scope.ts @@ -1,4 +1,4 @@ -import { RuleConverter } from "../../ruleConverter"; +import { RuleConverter } from "../ruleConverter"; export const convertTemplateAccessibilityTableScope: RuleConverter = () => { return { diff --git a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/template-accessibility-valid-aria.ts b/src/converters/lintConfigs/rules/ruleConverters/template-accessibility-valid-aria.ts similarity index 84% rename from src/converters/lintConfigs/rules/ruleConverters/codelyzer/template-accessibility-valid-aria.ts rename to src/converters/lintConfigs/rules/ruleConverters/template-accessibility-valid-aria.ts index d5fadeadf..8b3bdb88f 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/template-accessibility-valid-aria.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/template-accessibility-valid-aria.ts @@ -1,4 +1,4 @@ -import { RuleConverter } from "../../ruleConverter"; +import { RuleConverter } from "../ruleConverter"; export const convertTemplateAccessibilityValidAria: RuleConverter = () => { return { diff --git a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/template-banana-in-box.ts b/src/converters/lintConfigs/rules/ruleConverters/template-banana-in-box.ts similarity index 83% rename from src/converters/lintConfigs/rules/ruleConverters/codelyzer/template-banana-in-box.ts rename to src/converters/lintConfigs/rules/ruleConverters/template-banana-in-box.ts index 7d8b55c7f..016ca1150 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/template-banana-in-box.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/template-banana-in-box.ts @@ -1,4 +1,4 @@ -import { RuleConverter } from "../../ruleConverter"; +import { RuleConverter } from "../ruleConverter"; export const convertTemplateBananaInBox: RuleConverter = () => { return { diff --git a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/template-click-events-have-key-events.ts b/src/converters/lintConfigs/rules/ruleConverters/template-click-events-have-key-events.ts similarity index 85% rename from src/converters/lintConfigs/rules/ruleConverters/codelyzer/template-click-events-have-key-events.ts rename to src/converters/lintConfigs/rules/ruleConverters/template-click-events-have-key-events.ts index 42aa5c2f1..68d06946c 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/template-click-events-have-key-events.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/template-click-events-have-key-events.ts @@ -1,4 +1,4 @@ -import { RuleConverter } from "../../ruleConverter"; +import { RuleConverter } from "../ruleConverter"; export const convertTemplateClickEventsHaveKeyEvents: RuleConverter = () => { return { diff --git a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/template-conditional-complexity.ts b/src/converters/lintConfigs/rules/ruleConverters/template-conditional-complexity.ts similarity index 91% rename from src/converters/lintConfigs/rules/ruleConverters/codelyzer/template-conditional-complexity.ts rename to src/converters/lintConfigs/rules/ruleConverters/template-conditional-complexity.ts index d1801cf62..30d91b006 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/template-conditional-complexity.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/template-conditional-complexity.ts @@ -1,4 +1,4 @@ -import { RuleConverter } from "../../ruleConverter"; +import { RuleConverter } from "../ruleConverter"; export const convertTemplateConditionalComplexity: RuleConverter = (tslintRule) => { return { diff --git a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/template-cyclomatic-complexity.ts b/src/converters/lintConfigs/rules/ruleConverters/template-cyclomatic-complexity.ts similarity index 91% rename from src/converters/lintConfigs/rules/ruleConverters/codelyzer/template-cyclomatic-complexity.ts rename to src/converters/lintConfigs/rules/ruleConverters/template-cyclomatic-complexity.ts index a7d68cd13..0d2fae9d4 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/template-cyclomatic-complexity.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/template-cyclomatic-complexity.ts @@ -1,4 +1,4 @@ -import { RuleConverter } from "../../ruleConverter"; +import { RuleConverter } from "../ruleConverter"; export const convertTemplateCyclomaticComplexity: RuleConverter = (tslintRule) => { return { diff --git a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/template-i18n.ts b/src/converters/lintConfigs/rules/ruleConverters/template-i18n.ts similarity index 93% rename from src/converters/lintConfigs/rules/ruleConverters/codelyzer/template-i18n.ts rename to src/converters/lintConfigs/rules/ruleConverters/template-i18n.ts index ca644281f..5c4cdcb9b 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/template-i18n.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/template-i18n.ts @@ -1,4 +1,4 @@ -import { RuleConverter } from "../../ruleConverter"; +import { RuleConverter } from "../ruleConverter"; export const convertTemplateI18N: RuleConverter = (tslintRule) => { return { diff --git a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/template-mouse-events-have-key-events.ts b/src/converters/lintConfigs/rules/ruleConverters/template-mouse-events-have-key-events.ts similarity index 85% rename from src/converters/lintConfigs/rules/ruleConverters/codelyzer/template-mouse-events-have-key-events.ts rename to src/converters/lintConfigs/rules/ruleConverters/template-mouse-events-have-key-events.ts index 1c6cb7b6a..f857800b3 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/template-mouse-events-have-key-events.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/template-mouse-events-have-key-events.ts @@ -1,4 +1,4 @@ -import { RuleConverter } from "../../ruleConverter"; +import { RuleConverter } from "../ruleConverter"; export const convertTemplateMouseEventsHaveKeyEvents: RuleConverter = () => { return { diff --git a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/template-no-any.ts b/src/converters/lintConfigs/rules/ruleConverters/template-no-any.ts similarity index 83% rename from src/converters/lintConfigs/rules/ruleConverters/codelyzer/template-no-any.ts rename to src/converters/lintConfigs/rules/ruleConverters/template-no-any.ts index 99b7c8c76..bb1d9d232 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/template-no-any.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/template-no-any.ts @@ -1,4 +1,4 @@ -import { RuleConverter } from "../../ruleConverter"; +import { RuleConverter } from "../ruleConverter"; export const convertTemplateNoAny: RuleConverter = () => { return { diff --git a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/template-no-autofocus.ts b/src/converters/lintConfigs/rules/ruleConverters/template-no-autofocus.ts similarity index 83% rename from src/converters/lintConfigs/rules/ruleConverters/codelyzer/template-no-autofocus.ts rename to src/converters/lintConfigs/rules/ruleConverters/template-no-autofocus.ts index bd7e6bdc6..8ce3c49c2 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/template-no-autofocus.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/template-no-autofocus.ts @@ -1,4 +1,4 @@ -import { RuleConverter } from "../../ruleConverter"; +import { RuleConverter } from "../ruleConverter"; export const convertTemplateNoAutofocus: RuleConverter = () => { return { diff --git a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/template-no-call-expression.ts b/src/converters/lintConfigs/rules/ruleConverters/template-no-call-expression.ts similarity index 84% rename from src/converters/lintConfigs/rules/ruleConverters/codelyzer/template-no-call-expression.ts rename to src/converters/lintConfigs/rules/ruleConverters/template-no-call-expression.ts index 8f382aa6a..acaa9b155 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/template-no-call-expression.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/template-no-call-expression.ts @@ -1,4 +1,4 @@ -import { RuleConverter } from "../../ruleConverter"; +import { RuleConverter } from "../ruleConverter"; export const convertTemplateNoCallExpression: RuleConverter = () => { return { diff --git a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/template-no-distracting-elements.ts b/src/converters/lintConfigs/rules/ruleConverters/template-no-distracting-elements.ts similarity index 84% rename from src/converters/lintConfigs/rules/ruleConverters/codelyzer/template-no-distracting-elements.ts rename to src/converters/lintConfigs/rules/ruleConverters/template-no-distracting-elements.ts index 8d6ed517b..42b0e971d 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/template-no-distracting-elements.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/template-no-distracting-elements.ts @@ -1,4 +1,4 @@ -import { RuleConverter } from "../../ruleConverter"; +import { RuleConverter } from "../ruleConverter"; export const convertTemplateNoDistractingElements: RuleConverter = () => { return { diff --git a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/template-no-negated-async.ts b/src/converters/lintConfigs/rules/ruleConverters/template-no-negated-async.ts similarity index 87% rename from src/converters/lintConfigs/rules/ruleConverters/codelyzer/template-no-negated-async.ts rename to src/converters/lintConfigs/rules/ruleConverters/template-no-negated-async.ts index 236ae0444..022f86ce2 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/template-no-negated-async.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/template-no-negated-async.ts @@ -1,4 +1,4 @@ -import { RuleConverter } from "../../ruleConverter"; +import { RuleConverter } from "../ruleConverter"; export const convertTemplateNoNegatedAsync: RuleConverter = () => { return { diff --git a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/template-use-track-by-function.ts b/src/converters/lintConfigs/rules/ruleConverters/template-use-track-by-function.ts similarity index 84% rename from src/converters/lintConfigs/rules/ruleConverters/codelyzer/template-use-track-by-function.ts rename to src/converters/lintConfigs/rules/ruleConverters/template-use-track-by-function.ts index 6f494fdfb..fdef4e40b 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/template-use-track-by-function.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/template-use-track-by-function.ts @@ -1,4 +1,4 @@ -import { RuleConverter } from "../../ruleConverter"; +import { RuleConverter } from "../ruleConverter"; export const convertTemplateUseTrackByFunction: RuleConverter = () => { return { diff --git a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/tests/angular-whitespace.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/angular-whitespace.test.ts similarity index 100% rename from src/converters/lintConfigs/rules/ruleConverters/codelyzer/tests/angular-whitespace.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/angular-whitespace.test.ts diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/tests/cognitive-complexity.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/cognitive-complexity.test.ts similarity index 100% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/tests/cognitive-complexity.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/cognitive-complexity.test.ts diff --git a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/tests/component-class-suffix.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/component-class-suffix.test.ts similarity index 100% rename from src/converters/lintConfigs/rules/ruleConverters/codelyzer/tests/component-class-suffix.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/component-class-suffix.test.ts diff --git a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/tests/component-max-inline-declarations.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/component-max-inline-declarations.test.ts similarity index 100% rename from src/converters/lintConfigs/rules/ruleConverters/codelyzer/tests/component-max-inline-declarations.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/component-max-inline-declarations.test.ts diff --git a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/tests/component-selector.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/component-selector.test.ts similarity index 100% rename from src/converters/lintConfigs/rules/ruleConverters/codelyzer/tests/component-selector.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/component-selector.test.ts diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/tests/consecutive-overloads.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/consecutive-overloads.test.ts similarity index 100% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/tests/consecutive-overloads.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/consecutive-overloads.test.ts diff --git a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/tests/contextual-decorator.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/contextual-decorator.test.ts similarity index 100% rename from src/converters/lintConfigs/rules/ruleConverters/codelyzer/tests/contextual-decorator.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/contextual-decorator.test.ts diff --git a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/tests/contextual-lifecycle.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/contextual-lifecycle.test.ts similarity index 100% rename from src/converters/lintConfigs/rules/ruleConverters/codelyzer/tests/contextual-lifecycle.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/contextual-lifecycle.test.ts diff --git a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/tests/directive-class-suffix.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/directive-class-suffix.test.ts similarity index 100% rename from src/converters/lintConfigs/rules/ruleConverters/codelyzer/tests/directive-class-suffix.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/directive-class-suffix.test.ts diff --git a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/tests/directive-selector.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/directive-selector.test.ts similarity index 100% rename from src/converters/lintConfigs/rules/ruleConverters/codelyzer/tests/directive-selector.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/directive-selector.test.ts diff --git a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/tests/import-destructuring-spacing.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/import-destructuring-spacing.test.ts similarity index 100% rename from src/converters/lintConfigs/rules/ruleConverters/codelyzer/tests/import-destructuring-spacing.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/import-destructuring-spacing.test.ts diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-react/tests/jsx-ban-props.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/jsx-ban-props.test.ts similarity index 100% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-react/tests/jsx-ban-props.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/jsx-ban-props.test.ts diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-react/tests/jsx-boolean-value.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/jsx-boolean-value.test.ts similarity index 100% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-react/tests/jsx-boolean-value.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/jsx-boolean-value.test.ts diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-react/tests/jsx-curly-spacing.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/jsx-curly-spacing.test.ts similarity index 100% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-react/tests/jsx-curly-spacing.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/jsx-curly-spacing.test.ts diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-react/tests/jsx-equals-spacing.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/jsx-equals-spacing.test.ts similarity index 100% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-react/tests/jsx-equals-spacing.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/jsx-equals-spacing.test.ts diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-react/tests/jsx-key.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/jsx-key.test.ts similarity index 100% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-react/tests/jsx-key.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/jsx-key.test.ts diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-react/tests/jsx-no-bind.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/jsx-no-bind.test.ts similarity index 100% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-react/tests/jsx-no-bind.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/jsx-no-bind.test.ts diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-react/tests/jsx-no-lambda.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/jsx-no-lambda.test.ts similarity index 100% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-react/tests/jsx-no-lambda.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/jsx-no-lambda.test.ts diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-react/tests/jsx-self-close.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/jsx-self-close.test.ts similarity index 100% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-react/tests/jsx-self-close.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/jsx-self-close.test.ts diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-react/tests/jsx-space-before-trailing-slash.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/jsx-space-before-trailing-slash.test.ts similarity index 100% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-react/tests/jsx-space-before-trailing-slash.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/jsx-space-before-trailing-slash.test.ts diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-react/tests/jsx-wrap-multiline.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/jsx-wrap-multiline.test.ts similarity index 100% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-react/tests/jsx-wrap-multiline.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/jsx-wrap-multiline.test.ts diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/tests/max-switch-cases.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/max-switch-cases.test.ts similarity index 100% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/tests/max-switch-cases.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/max-switch-cases.test.ts diff --git a/src/converters/lintConfigs/rules/ruleConverters/ngrx-tslint-rules/tests/action-hygiene.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/ngrx-action-hygiene.test.ts similarity index 67% rename from src/converters/lintConfigs/rules/ruleConverters/ngrx-tslint-rules/tests/action-hygiene.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/ngrx-action-hygiene.test.ts index b471a745c..12c02965d 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/ngrx-tslint-rules/tests/action-hygiene.test.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/tests/ngrx-action-hygiene.test.ts @@ -1,8 +1,8 @@ -import { convertActionHygiene } from "../action-hygiene"; +import { convertNgrxActionHygiene } from "../ngrx-action-hygiene"; -describe(convertActionHygiene, () => { +describe(convertNgrxActionHygiene, () => { test("conversion without arguments", () => { - const result = convertActionHygiene({ + const result = convertNgrxActionHygiene({ ruleArguments: [], }); diff --git a/src/converters/lintConfigs/rules/ruleConverters/ngrx-tslint-rules/tests/avoid-dispatching-multiple-actions-sequentially.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/ngrx-avoid-dispatching-multiple-actions-sequentially.test.ts similarity index 55% rename from src/converters/lintConfigs/rules/ruleConverters/ngrx-tslint-rules/tests/avoid-dispatching-multiple-actions-sequentially.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/ngrx-avoid-dispatching-multiple-actions-sequentially.test.ts index 062ef1154..a1ddf18ac 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/ngrx-tslint-rules/tests/avoid-dispatching-multiple-actions-sequentially.test.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/tests/ngrx-avoid-dispatching-multiple-actions-sequentially.test.ts @@ -1,8 +1,8 @@ -import { convertAvoidDispatchingMultipleActionsSequentially } from "../avoid-dispatching-multiple-actions-sequentially"; +import { convertNgrxAvoidDispatchingMultipleActionsSequentially } from "../ngrx-avoid-dispatching-multiple-actions-sequentially"; -describe(convertAvoidDispatchingMultipleActionsSequentially, () => { +describe(convertNgrxAvoidDispatchingMultipleActionsSequentially, () => { test("conversion without arguments", () => { - const result = convertAvoidDispatchingMultipleActionsSequentially({ + const result = convertNgrxAvoidDispatchingMultipleActionsSequentially({ ruleArguments: [], }); diff --git a/src/converters/lintConfigs/rules/ruleConverters/ngrx-tslint-rules/tests/effect-creator-and-decorator.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/ngrx-effect-creator-and-decorator.test.ts similarity index 61% rename from src/converters/lintConfigs/rules/ruleConverters/ngrx-tslint-rules/tests/effect-creator-and-decorator.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/ngrx-effect-creator-and-decorator.test.ts index 5fff0434d..63822000b 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/ngrx-tslint-rules/tests/effect-creator-and-decorator.test.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/tests/ngrx-effect-creator-and-decorator.test.ts @@ -1,8 +1,8 @@ -import { convertEffectCreatorAndDecorator } from "../effect-creator-and-decorator"; +import { convertNgrxEffectCreatorAndDecorator } from "../ngrx-effect-creator-and-decorator"; -describe(convertEffectCreatorAndDecorator, () => { +describe(convertNgrxEffectCreatorAndDecorator, () => { test("conversion without arguments", () => { - const result = convertEffectCreatorAndDecorator({ + const result = convertNgrxEffectCreatorAndDecorator({ ruleArguments: [], }); diff --git a/src/converters/lintConfigs/rules/ruleConverters/ngrx-tslint-rules/tests/no-dispatch-in-effects.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/ngrx-no-dispatch-in-effects.test.ts similarity index 63% rename from src/converters/lintConfigs/rules/ruleConverters/ngrx-tslint-rules/tests/no-dispatch-in-effects.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/ngrx-no-dispatch-in-effects.test.ts index c57c162f1..40da0bc2b 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/ngrx-tslint-rules/tests/no-dispatch-in-effects.test.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/tests/ngrx-no-dispatch-in-effects.test.ts @@ -1,8 +1,8 @@ -import { convertNoDispatchInEffects } from "../no-dispatch-in-effects"; +import { convertNgrxNoDispatchInEffects } from "../ngrx-no-dispatch-in-effects"; -describe(convertNoDispatchInEffects, () => { +describe(convertNgrxNoDispatchInEffects, () => { test("conversion without arguments", () => { - const result = convertNoDispatchInEffects({ + const result = convertNgrxNoDispatchInEffects({ ruleArguments: [], }); diff --git a/src/converters/lintConfigs/rules/ruleConverters/tests/ngrx-no-duplicate-action-types.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/ngrx-no-duplicate-action-types.test.ts new file mode 100644 index 000000000..e29f92ead --- /dev/null +++ b/src/converters/lintConfigs/rules/ruleConverters/tests/ngrx-no-duplicate-action-types.test.ts @@ -0,0 +1,13 @@ +import { convertNgrxNoDuplicateActionTypes } from "../ngrx-no-duplicate-action-types"; + +describe(convertNgrxNoDuplicateActionTypes, () => { + test("conversion without arguments", () => { + const result = convertNgrxNoDuplicateActionTypes({ + ruleArguments: [], + }); + + expect(result).toEqual({ + rules: [], + }); + }); +}); diff --git a/src/converters/lintConfigs/rules/ruleConverters/ngrx-tslint-rules/tests/no-effect-decorator.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/ngrx-no-effect-decorator.test.ts similarity index 64% rename from src/converters/lintConfigs/rules/ruleConverters/ngrx-tslint-rules/tests/no-effect-decorator.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/ngrx-no-effect-decorator.test.ts index bcef00625..6806a2858 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/ngrx-tslint-rules/tests/no-effect-decorator.test.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/tests/ngrx-no-effect-decorator.test.ts @@ -1,8 +1,8 @@ -import { convertNoEffectDecorator } from "../no-effect-decorator"; +import { convertNgrxNoEffectDecorator } from "../ngrx-no-effect-decorator"; -describe(convertNoEffectDecorator, () => { +describe(convertNgrxNoEffectDecorator, () => { test("conversion without arguments", () => { - const result = convertNoEffectDecorator({ + const result = convertNgrxNoEffectDecorator({ ruleArguments: [], }); diff --git a/src/converters/lintConfigs/rules/ruleConverters/ngrx-tslint-rules/tests/no-effects-in-providers.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/ngrx-no-effects-in-providers.test.ts similarity index 63% rename from src/converters/lintConfigs/rules/ruleConverters/ngrx-tslint-rules/tests/no-effects-in-providers.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/ngrx-no-effects-in-providers.test.ts index 3fc1a6150..1cbe64846 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/ngrx-tslint-rules/tests/no-effects-in-providers.test.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/tests/ngrx-no-effects-in-providers.test.ts @@ -1,8 +1,8 @@ -import { convertNoEffectsInProviders } from "../no-effects-in-providers"; +import { convertNgrxNoEffectsInProviders } from "../ngrx-no-effects-in-providers"; -describe(convertNoEffectsInProviders, () => { +describe(convertNgrxNoEffectsInProviders, () => { test("conversion without arguments", () => { - const result = convertNoEffectsInProviders({ + const result = convertNgrxNoEffectsInProviders({ ruleArguments: [], }); diff --git a/src/converters/lintConfigs/rules/ruleConverters/ngrx-tslint-rules/tests/no-multiple-actions-in-effects.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/ngrx-no-multiple-actions-in-effects.test.ts similarity index 61% rename from src/converters/lintConfigs/rules/ruleConverters/ngrx-tslint-rules/tests/no-multiple-actions-in-effects.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/ngrx-no-multiple-actions-in-effects.test.ts index f3fb1c74b..5a893b3c0 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/ngrx-tslint-rules/tests/no-multiple-actions-in-effects.test.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/tests/ngrx-no-multiple-actions-in-effects.test.ts @@ -1,8 +1,8 @@ -import { convertNoMultipleActionsInEffects } from "../no-multiple-actions-in-effects"; +import { convertNgrxNoMultipleActionsInEffects } from "../ngrx-no-multiple-actions-in-effects"; -describe(convertNoMultipleActionsInEffects, () => { +describe(convertNgrxNoMultipleActionsInEffects, () => { test("conversion without arguments", () => { - const result = convertNoMultipleActionsInEffects({ + const result = convertNgrxNoMultipleActionsInEffects({ ruleArguments: [], }); diff --git a/src/converters/lintConfigs/rules/ruleConverters/ngrx-tslint-rules/tests/no-reducer-in-key-names.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/ngrx-no-reducer-in-key-names.test.ts similarity index 63% rename from src/converters/lintConfigs/rules/ruleConverters/ngrx-tslint-rules/tests/no-reducer-in-key-names.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/ngrx-no-reducer-in-key-names.test.ts index 19ead9a5b..a27fd80cf 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/ngrx-tslint-rules/tests/no-reducer-in-key-names.test.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/tests/ngrx-no-reducer-in-key-names.test.ts @@ -1,8 +1,8 @@ -import { convertNoReducerInKeyNames } from "../no-reducer-in-key-names"; +import { convertNgrxNoReducerInKeyNames } from "../ngrx-no-reducer-in-key-names"; -describe(convertNoReducerInKeyNames, () => { +describe(convertNgrxNoReducerInKeyNames, () => { test("conversion without arguments", () => { - const result = convertNoReducerInKeyNames({ + const result = convertNgrxNoReducerInKeyNames({ ruleArguments: [], }); diff --git a/src/converters/lintConfigs/rules/ruleConverters/ngrx-tslint-rules/tests/no-typed-store.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/ngrx-no-typed-store.test.ts similarity index 67% rename from src/converters/lintConfigs/rules/ruleConverters/ngrx-tslint-rules/tests/no-typed-store.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/ngrx-no-typed-store.test.ts index db3bd0021..47be3f788 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/ngrx-tslint-rules/tests/no-typed-store.test.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/tests/ngrx-no-typed-store.test.ts @@ -1,8 +1,8 @@ -import { convertNoTypedStore } from "../no-typed-store"; +import { convertNgrxNoTypedStore } from "../ngrx-no-typed-store"; -describe(convertNoTypedStore, () => { +describe(convertNgrxNoTypedStore, () => { test("conversion without arguments", () => { - const result = convertNoTypedStore({ + const result = convertNgrxNoTypedStore({ ruleArguments: [], }); diff --git a/src/converters/lintConfigs/rules/ruleConverters/ngrx-tslint-rules/tests/on-reducer-explicit-return-type.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/ngrx-on-reducer-explicit-return-type.test.ts similarity index 60% rename from src/converters/lintConfigs/rules/ruleConverters/ngrx-tslint-rules/tests/on-reducer-explicit-return-type.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/ngrx-on-reducer-explicit-return-type.test.ts index 50115c22b..49ea50e5e 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/ngrx-tslint-rules/tests/on-reducer-explicit-return-type.test.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/tests/ngrx-on-reducer-explicit-return-type.test.ts @@ -1,8 +1,8 @@ -import { convertOnReducerExplicitReturnType } from "../on-reducer-explicit-return-type"; +import { convertNgrxOnReducerExplicitReturnType } from "../ngrx-on-reducer-explicit-return-type"; -describe(convertOnReducerExplicitReturnType, () => { +describe(convertNgrxOnReducerExplicitReturnType, () => { test("conversion without arguments", () => { - const result = convertOnReducerExplicitReturnType({ + const result = convertNgrxOnReducerExplicitReturnType({ ruleArguments: [], }); diff --git a/src/converters/lintConfigs/rules/ruleConverters/ngrx-tslint-rules/tests/selector-for-select.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/ngrx-selector-for-select.test.ts similarity index 65% rename from src/converters/lintConfigs/rules/ruleConverters/ngrx-tslint-rules/tests/selector-for-select.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/ngrx-selector-for-select.test.ts index 85dfffb8b..1dba5e76d 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/ngrx-tslint-rules/tests/selector-for-select.test.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/tests/ngrx-selector-for-select.test.ts @@ -1,8 +1,8 @@ -import { convertSelectorForSelect } from "../selector-for-select"; +import { convertNgrxSelectorForSelect } from "../ngrx-selector-for-select"; -describe(convertSelectorForSelect, () => { +describe(convertNgrxSelectorForSelect, () => { test("conversion without arguments", () => { - const result = convertSelectorForSelect({ + const result = convertNgrxSelectorForSelect({ ruleArguments: [], }); diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/tests/no-all-duplicated-branches.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/no-all-duplicated-branches.test.ts similarity index 100% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/tests/no-all-duplicated-branches.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/no-all-duplicated-branches.test.ts diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/tests/no-alphabetical-sort.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/no-alphabetical-sort.test.ts similarity index 100% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/tests/no-alphabetical-sort.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/no-alphabetical-sort.test.ts diff --git a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/tests/no-attribute-decorator.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/no-attribute-decorator.test.ts similarity index 100% rename from src/converters/lintConfigs/rules/ruleConverters/codelyzer/tests/no-attribute-decorator.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/no-attribute-decorator.test.ts diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/tests/no-big-function.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/no-big-function.test.ts similarity index 100% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/tests/no-big-function.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/no-big-function.test.ts diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/tests/no-collapsible-if.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/no-collapsible-if.test.ts similarity index 100% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/tests/no-collapsible-if.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/no-collapsible-if.test.ts diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/tests/no-collection-size-mischeck.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/no-collection-size-mischeck.test.ts similarity index 100% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/tests/no-collection-size-mischeck.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/no-collection-size-mischeck.test.ts diff --git a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/tests/no-conflicting-lifecycle.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/no-conflicting-lifecycle.test.ts similarity index 100% rename from src/converters/lintConfigs/rules/ruleConverters/codelyzer/tests/no-conflicting-lifecycle.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/no-conflicting-lifecycle.test.ts diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/tests/no-duplicate-string.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/no-duplicate-string.test.ts similarity index 100% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/tests/no-duplicate-string.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/no-duplicate-string.test.ts diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/tests/no-duplicated-branches.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/no-duplicated-branches.test.ts similarity index 100% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/tests/no-duplicated-branches.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/no-duplicated-branches.test.ts diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/tests/no-element-overwrite.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/no-element-overwrite.test.ts similarity index 100% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/tests/no-element-overwrite.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/no-element-overwrite.test.ts diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/tests/no-empty-destructuring.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/no-empty-destructuring.test.ts similarity index 100% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/tests/no-empty-destructuring.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/no-empty-destructuring.test.ts diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/tests/no-empty-nested-blocks.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/no-empty-nested-blocks.test.ts similarity index 100% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/tests/no-empty-nested-blocks.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/no-empty-nested-blocks.test.ts diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/tests/no-extra-semicolon.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/no-extra-semicolon.test.ts similarity index 100% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/tests/no-extra-semicolon.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/no-extra-semicolon.test.ts diff --git a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/tests/no-forward-ref.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/no-forward-ref.test.ts similarity index 100% rename from src/converters/lintConfigs/rules/ruleConverters/codelyzer/tests/no-forward-ref.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/no-forward-ref.test.ts diff --git a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/tests/no-host-metadata-property.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/no-host-metadata-property.test.ts similarity index 100% rename from src/converters/lintConfigs/rules/ruleConverters/codelyzer/tests/no-host-metadata-property.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/no-host-metadata-property.test.ts diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/tests/no-identical-conditions.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/no-identical-conditions.test.ts similarity index 100% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/tests/no-identical-conditions.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/no-identical-conditions.test.ts diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/tests/no-identical-expressions.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/no-identical-expressions.test.ts similarity index 100% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/tests/no-identical-expressions.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/no-identical-expressions.test.ts diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/tests/no-identical-functions.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/no-identical-functions.test.ts similarity index 100% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/tests/no-identical-functions.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/no-identical-functions.test.ts diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/tests/no-in-misuse.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/no-in-misuse.test.ts similarity index 100% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/tests/no-in-misuse.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/no-in-misuse.test.ts diff --git a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/tests/no-input-prefix.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/no-input-prefix.test.ts similarity index 100% rename from src/converters/lintConfigs/rules/ruleConverters/codelyzer/tests/no-input-prefix.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/no-input-prefix.test.ts diff --git a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/tests/no-input-rename.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/no-input-rename.test.ts similarity index 100% rename from src/converters/lintConfigs/rules/ruleConverters/codelyzer/tests/no-input-rename.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/no-input-rename.test.ts diff --git a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/tests/no-inputs-metadata-property.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/no-inputs-metadata-property.test.ts similarity index 100% rename from src/converters/lintConfigs/rules/ruleConverters/codelyzer/tests/no-inputs-metadata-property.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/no-inputs-metadata-property.test.ts diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/tests/no-invalid-await.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/no-invalid-await.test.ts similarity index 100% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/tests/no-invalid-await.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/no-invalid-await.test.ts diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/tests/no-inverted-boolean-check.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/no-inverted-boolean-check.test.ts similarity index 100% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/tests/no-inverted-boolean-check.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/no-inverted-boolean-check.test.ts diff --git a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/tests/no-lifecycle-call.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/no-lifecycle-call.test.ts similarity index 100% rename from src/converters/lintConfigs/rules/ruleConverters/codelyzer/tests/no-lifecycle-call.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/no-lifecycle-call.test.ts diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/tests/no-multiline-string-literals.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/no-multiline-string-literals.test.ts similarity index 100% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/tests/no-multiline-string-literals.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/no-multiline-string-literals.test.ts diff --git a/src/converters/lintConfigs/rules/ruleConverters/ngrx-tslint-rules/tests/no-multiple-stores.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/no-multiple-stores.test.ts similarity index 100% rename from src/converters/lintConfigs/rules/ruleConverters/ngrx-tslint-rules/tests/no-multiple-stores.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/no-multiple-stores.test.ts diff --git a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/tests/no-output-native.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/no-output-native.test.ts similarity index 100% rename from src/converters/lintConfigs/rules/ruleConverters/codelyzer/tests/no-output-native.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/no-output-native.test.ts diff --git a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/tests/no-output-on-prefix.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/no-output-on-prefix.test.ts similarity index 100% rename from src/converters/lintConfigs/rules/ruleConverters/codelyzer/tests/no-output-on-prefix.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/no-output-on-prefix.test.ts diff --git a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/tests/no-output-rename.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/no-output-rename.test.ts similarity index 100% rename from src/converters/lintConfigs/rules/ruleConverters/codelyzer/tests/no-output-rename.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/no-output-rename.test.ts diff --git a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/tests/no-outputs-metadata-property.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/no-outputs-metadata-property.test.ts similarity index 100% rename from src/converters/lintConfigs/rules/ruleConverters/codelyzer/tests/no-outputs-metadata-property.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/no-outputs-metadata-property.test.ts diff --git a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/tests/no-pipe-impure.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/no-pipe-impure.test.ts similarity index 100% rename from src/converters/lintConfigs/rules/ruleConverters/codelyzer/tests/no-pipe-impure.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/no-pipe-impure.test.ts diff --git a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/tests/no-queries-metadata-property.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/no-queries-metadata-property.test.ts similarity index 100% rename from src/converters/lintConfigs/rules/ruleConverters/codelyzer/tests/no-queries-metadata-property.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/no-queries-metadata-property.test.ts diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/tests/no-redundant-boolean.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/no-redundant-boolean.test.ts similarity index 100% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/tests/no-redundant-boolean.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/no-redundant-boolean.test.ts diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/tests/no-redundant-jump.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/no-redundant-jump.test.ts similarity index 100% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/tests/no-redundant-jump.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/no-redundant-jump.test.ts diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/tests/no-redundant-parentheses.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/no-redundant-parentheses.test.ts similarity index 100% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/tests/no-redundant-parentheses.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/no-redundant-parentheses.test.ts diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/tests/no-same-line-conditional.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/no-same-line-conditional.test.ts similarity index 100% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/tests/no-same-line-conditional.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/no-same-line-conditional.test.ts diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/tests/no-self-assignment.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/no-self-assignment.test.ts similarity index 100% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/tests/no-self-assignment.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/no-self-assignment.test.ts diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/tests/no-small-switch.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/no-small-switch.test.ts similarity index 100% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/tests/no-small-switch.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/no-small-switch.test.ts diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/tests/no-unconditional-jump.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/no-unconditional-jump.test.ts similarity index 100% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/tests/no-unconditional-jump.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/no-unconditional-jump.test.ts diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/tests/no-unused-array.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/no-unused-array.test.ts similarity index 100% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/tests/no-unused-array.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/no-unused-array.test.ts diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/tests/no-use-of-empty-return-value.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/no-use-of-empty-return-value.test.ts similarity index 100% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/tests/no-use-of-empty-return-value.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/no-use-of-empty-return-value.test.ts diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/tests/no-useless-cast.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/no-useless-cast.test.ts similarity index 100% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/tests/no-useless-cast.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/no-useless-cast.test.ts diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/tests/no-useless-catch.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/no-useless-catch.test.ts similarity index 100% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/tests/no-useless-catch.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/no-useless-catch.test.ts diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/tests/no-variable-usage-before-declaration.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/no-variable-usage-before-declaration.test.ts similarity index 100% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/tests/no-variable-usage-before-declaration.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/no-variable-usage-before-declaration.test.ts diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/tests/parameters-max-number.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/parameters-max-number.test.ts similarity index 100% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/tests/parameters-max-number.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/parameters-max-number.test.ts diff --git a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/tests/pipe-prefix.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/pipe-prefix.test.ts similarity index 100% rename from src/converters/lintConfigs/rules/ruleConverters/codelyzer/tests/pipe-prefix.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/pipe-prefix.test.ts diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/tests/prefer-default-last.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/prefer-default-last.test.ts similarity index 100% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/tests/prefer-default-last.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/prefer-default-last.test.ts diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/tests/prefer-immediate-return.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/prefer-immediate-return.test.ts similarity index 100% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/tests/prefer-immediate-return.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/prefer-immediate-return.test.ts diff --git a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/tests/prefer-inline-decorator.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/prefer-inline-decorator.test.ts similarity index 100% rename from src/converters/lintConfigs/rules/ruleConverters/codelyzer/tests/prefer-inline-decorator.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/prefer-inline-decorator.test.ts diff --git a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/tests/prefer-on-push-component-change-detection.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/prefer-on-push-component-change-detection.test.ts similarity index 100% rename from src/converters/lintConfigs/rules/ruleConverters/codelyzer/tests/prefer-on-push-component-change-detection.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/prefer-on-push-component-change-detection.test.ts diff --git a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/tests/prefer-output-readonly.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/prefer-output-readonly.test.ts similarity index 100% rename from src/converters/lintConfigs/rules/ruleConverters/codelyzer/tests/prefer-output-readonly.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/prefer-output-readonly.test.ts diff --git a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/tests/relative-url-prefix.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/relative-url-prefix.test.ts similarity index 100% rename from src/converters/lintConfigs/rules/ruleConverters/codelyzer/tests/relative-url-prefix.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/relative-url-prefix.test.ts diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/no-add.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-add.test.ts similarity index 54% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/no-add.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-add.test.ts index 990223100..9c61693bb 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/no-add.test.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-add.test.ts @@ -1,8 +1,8 @@ -import { convertNoAdd } from "../no-add"; +import { convertRxjsAdd } from "../rxjs-add"; -describe(convertNoAdd, () => { +describe(convertRxjsAdd, () => { test("conversion without arguments", () => { - const result = convertNoAdd({ + const result = convertRxjsAdd({ ruleArguments: [], }); diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/ban-observables.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-ban-observables.test.ts similarity index 76% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/ban-observables.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-ban-observables.test.ts index 0f2635637..1fd07cc60 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/ban-observables.test.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-ban-observables.test.ts @@ -1,8 +1,8 @@ -import { convertBanObservables } from "../ban-observables"; +import { convertRxjsBanObservables } from "../rxjs-ban-observables"; -describe(convertBanObservables, () => { +describe(convertRxjsBanObservables, () => { test("conversion without arguments", () => { - const result = convertBanObservables({ + const result = convertRxjsBanObservables({ ruleArguments: [], }); @@ -17,7 +17,7 @@ describe(convertBanObservables, () => { }); test("conversion with options", () => { - const result = convertBanObservables({ + const result = convertRxjsBanObservables({ ruleArguments: [{ merge: true }], }); diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/ban-operators.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-ban-operators.test.ts similarity index 78% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/ban-operators.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-ban-operators.test.ts index 6e14f00fb..b5ff5a175 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/ban-operators.test.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-ban-operators.test.ts @@ -1,8 +1,8 @@ -import { convertBanOperators } from "../ban-operators"; +import { convertRxjsBanOperators } from "../rxjs-ban-operators"; -describe(convertBanOperators, () => { +describe(convertRxjsBanOperators, () => { test("conversion without arguments", () => { - const result = convertBanOperators({ + const result = convertRxjsBanOperators({ ruleArguments: [], }); @@ -17,7 +17,7 @@ describe(convertBanOperators, () => { }); test("conversion with options", () => { - const result = convertBanOperators({ + const result = convertRxjsBanOperators({ ruleArguments: [{ concat: "Use the concat factory function" }], }); diff --git a/src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-deep-operators.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-deep-operators.test.ts new file mode 100644 index 000000000..4b4c4d578 --- /dev/null +++ b/src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-deep-operators.test.ts @@ -0,0 +1,11 @@ +import { convertRxjsDeepOperators } from "../rxjs-deep-operators"; + +describe(convertRxjsDeepOperators, () => { + test("conversion without arguments", () => { + const result = convertRxjsDeepOperators({ + ruleArguments: [], + }); + + expect(result).toEqual({}); + }); +}); diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/finnish.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-finnish.test.ts similarity index 86% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/finnish.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-finnish.test.ts index 3cff6b405..6bb486766 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/finnish.test.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-finnish.test.ts @@ -1,8 +1,8 @@ -import { convertFinnish } from "../finnish"; +import { convertRxjsFinnish } from "../rxjs-finnish"; -describe(convertFinnish, () => { +describe(convertRxjsFinnish, () => { test("conversion without arguments", () => { - const result = convertFinnish({ + const result = convertRxjsFinnish({ ruleArguments: [], }); @@ -17,7 +17,7 @@ describe(convertFinnish, () => { }); test("conversion with `functions` argument", () => { - const result = convertFinnish({ + const result = convertRxjsFinnish({ ruleArguments: [{ functions: true }], }); @@ -33,7 +33,7 @@ describe(convertFinnish, () => { }); test("conversion with `methods` argument", () => { - const result = convertFinnish({ + const result = convertRxjsFinnish({ ruleArguments: [{ methods: false }], }); @@ -49,7 +49,7 @@ describe(convertFinnish, () => { }); test("conversion with `parameters` argument", () => { - const result = convertFinnish({ + const result = convertRxjsFinnish({ ruleArguments: [{ parameters: true }], }); @@ -65,7 +65,7 @@ describe(convertFinnish, () => { }); test("conversion with `properties` argument", () => { - const result = convertFinnish({ + const result = convertRxjsFinnish({ ruleArguments: [{ properties: false }], }); @@ -81,7 +81,7 @@ describe(convertFinnish, () => { }); test("conversion with `variables` argument", () => { - const result = convertFinnish({ + const result = convertRxjsFinnish({ ruleArguments: [{ variables: true }], }); diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/just.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-just.test.ts similarity index 71% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/just.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-just.test.ts index 0d539deb4..899b414dd 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/just.test.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-just.test.ts @@ -1,8 +1,8 @@ -import { convertJust } from "../just"; +import { convertRxjsJust } from "../rxjs-just"; -describe(convertJust, () => { +describe(convertRxjsJust, () => { test("conversion without arguments", () => { - const result = convertJust({ + const result = convertRxjsJust({ ruleArguments: [], }); diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/no-patched.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-no-add.test.ts similarity index 52% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/no-patched.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-no-add.test.ts index 591064144..710051b76 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/no-patched.test.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-no-add.test.ts @@ -1,8 +1,8 @@ -import { convertNoPatched } from "../no-patched"; +import { convertRxjsNoAdd } from "../rxjs-no-add"; -describe(convertNoPatched, () => { +describe(convertRxjsNoAdd, () => { test("conversion without arguments", () => { - const result = convertNoPatched({ + const result = convertRxjsNoAdd({ ruleArguments: [], }); diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/no-async-subscribe.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-no-async-subscribe.test.ts similarity index 65% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/no-async-subscribe.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-no-async-subscribe.test.ts index 37717744a..bb90286d5 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/no-async-subscribe.test.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-no-async-subscribe.test.ts @@ -1,8 +1,8 @@ -import { convertNoAsyncSubscribe } from "../no-async-subscribe"; +import { convertRxjsNoAsyncSubscribe } from "../rxjs-no-async-subscribe"; -describe(convertNoAsyncSubscribe, () => { +describe(convertRxjsNoAsyncSubscribe, () => { test("conversion without arguments", () => { - const result = convertNoAsyncSubscribe({ + const result = convertRxjsNoAsyncSubscribe({ ruleArguments: [], }); diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/no-compat.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-no-compat.test.ts similarity index 69% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/no-compat.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-no-compat.test.ts index fe870beeb..481b47691 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/no-compat.test.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-no-compat.test.ts @@ -1,8 +1,8 @@ -import { convertNoCompat } from "../no-compat"; +import { convertRxjsNoCompat } from "../rxjs-no-compat"; -describe(convertNoCompat, () => { +describe(convertRxjsNoCompat, () => { test("conversion without arguments", () => { - const result = convertNoCompat({ + const result = convertRxjsNoCompat({ ruleArguments: [], }); diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/no-connectable.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-no-connectable.test.ts similarity index 66% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/no-connectable.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-no-connectable.test.ts index fd6041e4c..b34b4a4f8 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/no-connectable.test.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-no-connectable.test.ts @@ -1,8 +1,8 @@ -import { convertNoConnectable } from "../no-connectable"; +import { convertRxjsNoConnectable } from "../rxjs-no-connectable"; -describe(convertNoConnectable, () => { +describe(convertRxjsNoConnectable, () => { test("conversion without arguments", () => { - const result = convertNoConnectable({ + const result = convertRxjsNoConnectable({ ruleArguments: [], }); diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/no-create.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-no-create.test.ts similarity index 69% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/no-create.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-no-create.test.ts index a2e8661bc..ab8420714 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/no-create.test.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-no-create.test.ts @@ -1,8 +1,8 @@ -import { convertNoCreate } from "../no-create"; +import { convertRxjsNoCreate } from "../rxjs-no-create"; -describe(convertNoCreate, () => { +describe(convertRxjsNoCreate, () => { test("conversion without arguments", () => { - const result = convertNoCreate({ + const result = convertRxjsNoCreate({ ruleArguments: [], }); diff --git a/src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-no-deep-operators.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-no-deep-operators.test.ts new file mode 100644 index 000000000..579fcf08a --- /dev/null +++ b/src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-no-deep-operators.test.ts @@ -0,0 +1,11 @@ +import { convertRxjsNoDeepOperators } from "../rxjs-no-deep-operators"; + +describe(convertRxjsNoDeepOperators, () => { + test("conversion without arguments", () => { + const result = convertRxjsNoDeepOperators({ + ruleArguments: [], + }); + + expect(result).toEqual({}); + }); +}); diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/no-explicit-generics.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-no-explicit-generics.test.ts similarity index 64% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/no-explicit-generics.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-no-explicit-generics.test.ts index d53d473ab..c787d9b6c 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/no-explicit-generics.test.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-no-explicit-generics.test.ts @@ -1,8 +1,8 @@ -import { convertNoExplicitGenerics } from "../no-explicit-generics"; +import { convertRxjsNoExplicitGenerics } from "../rxjs-no-explicit-generics"; -describe(convertNoExplicitGenerics, () => { +describe(convertRxjsNoExplicitGenerics, () => { test("conversion without arguments", () => { - const result = convertNoExplicitGenerics({ + const result = convertRxjsNoExplicitGenerics({ ruleArguments: [], }); diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/no-exposed-subjects.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-no-exposed-subjects.test.ts similarity index 76% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/no-exposed-subjects.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-no-exposed-subjects.test.ts index 18d209c97..66ba81b2e 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/no-exposed-subjects.test.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-no-exposed-subjects.test.ts @@ -1,8 +1,8 @@ -import { convertNoExposedSubjects } from "../no-exposed-subjects"; +import { convertRxjsNoExposedSubjects } from "../rxjs-no-exposed-subjects"; -describe(convertNoExposedSubjects, () => { +describe(convertRxjsNoExposedSubjects, () => { test("conversion without arguments", () => { - const result = convertNoExposedSubjects({ + const result = convertRxjsNoExposedSubjects({ ruleArguments: [], }); @@ -17,7 +17,7 @@ describe(convertNoExposedSubjects, () => { }); test("conversion with allowProtected argument", () => { - const result = convertNoExposedSubjects({ + const result = convertRxjsNoExposedSubjects({ ruleArguments: [{ allowProtected: true }], }); diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/no-finnish.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-no-finnish.test.ts similarity index 68% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/no-finnish.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-no-finnish.test.ts index 62a2ce084..08cd04784 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/no-finnish.test.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-no-finnish.test.ts @@ -1,8 +1,8 @@ -import { convertNoFinnish } from "../no-finnish"; +import { convertRxjsNoFinnish } from "../rxjs-no-finnish"; -describe(convertNoFinnish, () => { +describe(convertRxjsNoFinnish, () => { test("conversion without arguments", () => { - const result = convertNoFinnish({ + const result = convertRxjsNoFinnish({ ruleArguments: [], }); diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/no-ignored-error.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-no-ignored-error.test.ts similarity index 66% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/no-ignored-error.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-no-ignored-error.test.ts index 142578102..79a6374c9 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/no-ignored-error.test.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-no-ignored-error.test.ts @@ -1,8 +1,8 @@ -import { convertNoIgnoredError } from "../no-ignored-error"; +import { convertRxjsNoIgnoredError } from "../rxjs-no-ignored-error"; -describe(convertNoIgnoredError, () => { +describe(convertRxjsNoIgnoredError, () => { test("conversion without arguments", () => { - const result = convertNoIgnoredError({ + const result = convertRxjsNoIgnoredError({ ruleArguments: [], }); diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/no-ignored-notifier.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-no-ignored-notifier.test.ts similarity index 64% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/no-ignored-notifier.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-no-ignored-notifier.test.ts index 232433ab1..48ffabb81 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/no-ignored-notifier.test.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-no-ignored-notifier.test.ts @@ -1,8 +1,8 @@ -import { convertNoIgnoredNotifier } from "../no-ignored-notifier"; +import { convertRxjsNoIgnoredNotifier } from "../rxjs-no-ignored-notifier"; -describe(convertNoIgnoredNotifier, () => { +describe(convertRxjsNoIgnoredNotifier, () => { test("conversion without arguments", () => { - const result = convertNoIgnoredNotifier({ + const result = convertRxjsNoIgnoredNotifier({ ruleArguments: [], }); diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/no-ignored-observable.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-no-ignored-observable.test.ts similarity index 64% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/no-ignored-observable.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-no-ignored-observable.test.ts index a76a081ee..948fd8902 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/no-ignored-observable.test.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-no-ignored-observable.test.ts @@ -1,8 +1,8 @@ -import { convertNoIgnoredObservable } from "../no-ignored-observable"; +import { convertRxjsNoIgnoredObservable } from "../rxjs-no-ignored-observable"; -describe(convertNoIgnoredObservable, () => { +describe(convertRxjsNoIgnoredObservable, () => { test("conversion without arguments", () => { - const result = convertNoIgnoredObservable({ + const result = convertRxjsNoIgnoredObservable({ ruleArguments: [], }); diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/no-ignored-replay-buffer.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-no-ignored-replay-buffer.test.ts similarity index 63% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/no-ignored-replay-buffer.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-no-ignored-replay-buffer.test.ts index a847b908b..4f87b66ac 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/no-ignored-replay-buffer.test.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-no-ignored-replay-buffer.test.ts @@ -1,8 +1,8 @@ -import { convertNoIgnoredReplayBuffer } from "../no-ignored-replay-buffer"; +import { convertRxjsNoIgnoredReplayBuffer } from "../rxjs-no-ignored-replay-buffer"; -describe(convertNoIgnoredReplayBuffer, () => { +describe(convertRxjsNoIgnoredReplayBuffer, () => { test("conversion without arguments", () => { - const result = convertNoIgnoredReplayBuffer({ + const result = convertRxjsNoIgnoredReplayBuffer({ ruleArguments: [], }); diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/no-ignored-subscribe.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-no-ignored-subscribe.test.ts similarity index 64% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/no-ignored-subscribe.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-no-ignored-subscribe.test.ts index 6c402d8cd..8f0e3c38c 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/no-ignored-subscribe.test.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-no-ignored-subscribe.test.ts @@ -1,8 +1,8 @@ -import { convertNoIgnoredSubscribe } from "../no-ignored-subscribe"; +import { convertRxjsNoIgnoredSubscribe } from "../rxjs-no-ignored-subscribe"; -describe(convertNoIgnoredSubscribe, () => { +describe(convertRxjsNoIgnoredSubscribe, () => { test("conversion without arguments", () => { - const result = convertNoIgnoredSubscribe({ + const result = convertRxjsNoIgnoredSubscribe({ ruleArguments: [], }); diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/no-ignored-subscription.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-no-ignored-subscription.test.ts similarity index 63% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/no-ignored-subscription.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-no-ignored-subscription.test.ts index 2b672a73f..acbb2bab7 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/no-ignored-subscription.test.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-no-ignored-subscription.test.ts @@ -1,8 +1,8 @@ -import { convertNoIgnoredSubscription } from "../no-ignored-subscription"; +import { convertRxjsNoIgnoredSubscription } from "../rxjs-no-ignored-subscription"; -describe(convertNoIgnoredSubscription, () => { +describe(convertRxjsNoIgnoredSubscription, () => { test("conversion without arguments", () => { - const result = convertNoIgnoredSubscription({ + const result = convertRxjsNoIgnoredSubscription({ ruleArguments: [], }); diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/no-ignored-takewhile-value.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-no-ignored-takewhile-value.test.ts similarity index 62% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/no-ignored-takewhile-value.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-no-ignored-takewhile-value.test.ts index 107b307b8..d10922f38 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/no-ignored-takewhile-value.test.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-no-ignored-takewhile-value.test.ts @@ -1,8 +1,8 @@ -import { convertNoIgnoredTakewhileValue } from "../no-ignored-takewhile-value"; +import { convertRxjsNoIgnoredTakeWhileValue } from "../rxjs-no-ignored-takewhile-value"; -describe(convertNoIgnoredTakewhileValue, () => { +describe(convertRxjsNoIgnoredTakeWhileValue, () => { test("conversion without arguments", () => { - const result = convertNoIgnoredTakewhileValue({ + const result = convertRxjsNoIgnoredTakeWhileValue({ ruleArguments: [], }); diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/no-implicit-any-catch.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-no-implicit-any-catch.test.ts similarity index 76% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/no-implicit-any-catch.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-no-implicit-any-catch.test.ts index c9517f702..0b2bfec91 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/no-implicit-any-catch.test.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-no-implicit-any-catch.test.ts @@ -1,8 +1,8 @@ -import { convertNoImplicitAnyCatch } from "../no-implicit-any-catch"; +import { convertRxjsNoImplicitAnyCatch } from "../rxjs-no-implicit-any-catch"; -describe(convertNoImplicitAnyCatch, () => { +describe(convertRxjsNoImplicitAnyCatch, () => { test("conversion without arguments", () => { - const result = convertNoImplicitAnyCatch({ + const result = convertRxjsNoImplicitAnyCatch({ ruleArguments: [], }); @@ -17,7 +17,7 @@ describe(convertNoImplicitAnyCatch, () => { }); test("conversion with allowExplicitAny argument", () => { - const result = convertNoImplicitAnyCatch({ + const result = convertRxjsNoImplicitAnyCatch({ ruleArguments: [{ allowExplicitAny: true }], }); diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/no-index.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-no-index.test.ts similarity index 69% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/no-index.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-no-index.test.ts index f7882d292..5a1d3ca60 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/no-index.test.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-no-index.test.ts @@ -1,8 +1,8 @@ -import { convertNoIndex } from "../no-index"; +import { convertRxjsNoIndex } from "../rxjs-no-index"; -describe(convertNoIndex, () => { +describe(convertRxjsNoIndex, () => { test("conversion without arguments", () => { - const result = convertNoIndex({ + const result = convertRxjsNoIndex({ ruleArguments: [], }); diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/no-internal.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-no-internal.test.ts similarity index 68% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/no-internal.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-no-internal.test.ts index 2e8d27e42..d6ec445e0 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/no-internal.test.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-no-internal.test.ts @@ -1,8 +1,8 @@ -import { convertNoInternal } from "../no-internal"; +import { convertRxjsNoInternal } from "../rxjs-no-internal"; -describe(convertNoInternal, () => { +describe(convertRxjsNoInternal, () => { test("conversion without arguments", () => { - const result = convertNoInternal({ + const result = convertRxjsNoInternal({ ruleArguments: [], }); diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/no-nested-subscribe.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-no-nested-subscribe.test.ts similarity index 64% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/no-nested-subscribe.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-no-nested-subscribe.test.ts index 63a21130f..3ee98424b 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/no-nested-subscribe.test.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-no-nested-subscribe.test.ts @@ -1,8 +1,8 @@ -import { convertNoNestedSubscribe } from "../no-nested-subscribe"; +import { convertRxjsNoNestedSubscribe } from "../rxjs-no-nested-subscribe"; -describe(convertNoNestedSubscribe, () => { +describe(convertRxjsNoNestedSubscribe, () => { test("conversion without arguments", () => { - const result = convertNoNestedSubscribe({ + const result = convertRxjsNoNestedSubscribe({ ruleArguments: [], }); diff --git a/src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-no-operator.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-no-operator.test.ts new file mode 100644 index 000000000..c4dcf131d --- /dev/null +++ b/src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-no-operator.test.ts @@ -0,0 +1,11 @@ +import { convertRxjsNoOperator } from "../rxjs-no-operator"; + +describe(convertRxjsNoOperator, () => { + test("conversion without arguments", () => { + const result = convertRxjsNoOperator({ + ruleArguments: [], + }); + + expect(result).toEqual({}); + }); +}); diff --git a/src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-no-patched.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-no-patched.test.ts new file mode 100644 index 000000000..8bfc9a8dd --- /dev/null +++ b/src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-no-patched.test.ts @@ -0,0 +1,11 @@ +import { convertRxjsNoPatched } from "../rxjs-no-patched"; + +describe(convertRxjsNoPatched, () => { + test("conversion without arguments", () => { + const result = convertRxjsNoPatched({ + ruleArguments: [], + }); + + expect(result).toEqual({}); + }); +}); diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/no-redundant-notify.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-no-redundant-notify.test.ts similarity index 64% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/no-redundant-notify.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-no-redundant-notify.test.ts index 25d364def..e3e77e33d 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/no-redundant-notify.test.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-no-redundant-notify.test.ts @@ -1,8 +1,8 @@ -import { convertNoRedundantNotify } from "../no-redundant-notify"; +import { convertRxjsNoRedundantNotify } from "../rxjs-no-redundant-notify"; -describe(convertNoRedundantNotify, () => { +describe(convertRxjsNoRedundantNotify, () => { test("conversion without arguments", () => { - const result = convertNoRedundantNotify({ + const result = convertRxjsNoRedundantNotify({ ruleArguments: [], }); diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/no-sharereplay.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-no-sharereplay.test.ts similarity index 80% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/no-sharereplay.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-no-sharereplay.test.ts index 8da4b0556..2f51ae3be 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/no-sharereplay.test.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-no-sharereplay.test.ts @@ -1,8 +1,8 @@ -import { convertNoShareReplay } from "../no-sharereplay"; +import { convertRxjsNoShareReplay } from "../rxjs-no-sharereplay"; -describe(convertNoShareReplay, () => { +describe(convertRxjsNoShareReplay, () => { test("conversion without arguments", () => { - const result = convertNoShareReplay({ + const result = convertRxjsNoShareReplay({ ruleArguments: [], }); @@ -17,7 +17,7 @@ describe(convertNoShareReplay, () => { }); test("conversion without arguments", () => { - const result = convertNoShareReplay({ + const result = convertRxjsNoShareReplay({ ruleArguments: [ { allowConfig: true, diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/no-subclass.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-no-subclass.test.ts similarity index 68% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/no-subclass.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-no-subclass.test.ts index e489c1f78..a04e20b00 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/no-subclass.test.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-no-subclass.test.ts @@ -1,8 +1,8 @@ -import { convertNoSubclass } from "../no-subclass"; +import { convertRxjsNoSubclass } from "../rxjs-no-subclass"; -describe(convertNoSubclass, () => { +describe(convertRxjsNoSubclass, () => { test("conversion without arguments", () => { - const result = convertNoSubclass({ + const result = convertRxjsNoSubclass({ ruleArguments: [], }); diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/no-subject-unsubscribe.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-no-subject-unsubscribe.test.ts similarity index 63% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/no-subject-unsubscribe.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-no-subject-unsubscribe.test.ts index 3578f4b3e..a7aaa4fc1 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/no-subject-unsubscribe.test.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-no-subject-unsubscribe.test.ts @@ -1,8 +1,8 @@ -import { convertNoSubjectUnubscribe } from "../no-subject-unsubscribe"; +import { convertRxjsNoSubjectUnubscribe } from "../rxjs-no-subject-unsubscribe"; -describe(convertNoSubjectUnubscribe, () => { +describe(convertRxjsNoSubjectUnubscribe, () => { test("conversion without arguments", () => { - const result = convertNoSubjectUnubscribe({ + const result = convertRxjsNoSubjectUnubscribe({ ruleArguments: [], }); diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/no-subject-value.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-no-subject-value.test.ts similarity index 66% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/no-subject-value.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-no-subject-value.test.ts index 47edff3e5..e7f4ce1a7 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/no-subject-value.test.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-no-subject-value.test.ts @@ -1,8 +1,8 @@ -import { convertNoSubjectValue } from "../no-subject-value"; +import { convertRxjsNoSubjectValue } from "../rxjs-no-subject-value"; -describe(convertNoSubjectValue, () => { +describe(convertRxjsNoSubjectValue, () => { test("conversion without arguments", () => { - const result = convertNoSubjectValue({ + const result = convertRxjsNoSubjectValue({ ruleArguments: [], }); diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/no-tap.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-no-tap.test.ts similarity index 74% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/no-tap.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-no-tap.test.ts index 99a339ba4..a88ad679f 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/no-tap.test.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-no-tap.test.ts @@ -1,8 +1,8 @@ -import { convertNoTap } from "../no-tap"; +import { convertRxjsNoTap } from "../rxjs-no-tap"; -describe(convertNoTap, () => { +describe(convertRxjsNoTap, () => { test("conversion without arguments", () => { - const result = convertNoTap({ + const result = convertRxjsNoTap({ ruleArguments: [], }); diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/no-topromise.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-no-topromise.test.ts similarity index 67% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/no-topromise.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-no-topromise.test.ts index cedff64f5..c1e7009ee 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/no-topromise.test.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-no-topromise.test.ts @@ -1,8 +1,8 @@ -import { convertNoToPromise } from "../no-topromise"; +import { convertRxjsNoToPromise } from "../rxjs-no-topromise"; -describe(convertNoToPromise, () => { +describe(convertRxjsNoToPromise, () => { test("conversion without arguments", () => { - const result = convertNoToPromise({ + const result = convertRxjsNoToPromise({ ruleArguments: [], }); diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/no-unbound-methods.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-no-unbound-methods.test.ts similarity index 65% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/no-unbound-methods.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-no-unbound-methods.test.ts index 7709be2df..23cba58a4 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/no-unbound-methods.test.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-no-unbound-methods.test.ts @@ -1,8 +1,8 @@ -import { convertNoUnboundMethods } from "../no-unbound-methods"; +import { convertRxjsNoUnboundMethods } from "../rxjs-no-unbound-methods"; -describe(convertNoUnboundMethods, () => { +describe(convertRxjsNoUnboundMethods, () => { test("conversion without arguments", () => { - const result = convertNoUnboundMethods({ + const result = convertRxjsNoUnboundMethods({ ruleArguments: [], }); diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/no-unsafe-catch.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-no-unsafe-catch.test.ts similarity index 78% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/no-unsafe-catch.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-no-unsafe-catch.test.ts index 7343c4bcc..af4a658f8 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/no-unsafe-catch.test.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-no-unsafe-catch.test.ts @@ -1,8 +1,8 @@ -import { convertNoUnsafeCatch } from "../no-unsafe-catch"; +import { convertRxjsNoUnsafeCatch } from "../rxjs-no-unsafe-catch"; -describe(convertNoUnsafeCatch, () => { +describe(convertRxjsNoUnsafeCatch, () => { test("conversion without arguments", () => { - const result = convertNoUnsafeCatch({ + const result = convertRxjsNoUnsafeCatch({ ruleArguments: [], }); @@ -17,7 +17,7 @@ describe(convertNoUnsafeCatch, () => { }); test("conversion with `observable` argument", () => { - const result = convertNoUnsafeCatch({ + const result = convertRxjsNoUnsafeCatch({ ruleArguments: [{ observable: "action(s|\\$)?" }], }); diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/no-unsafe-first.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-no-unsafe-first.test.ts similarity index 66% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/no-unsafe-first.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-no-unsafe-first.test.ts index dcdc9a05e..dceee30bb 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/no-unsafe-first.test.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-no-unsafe-first.test.ts @@ -1,8 +1,8 @@ -import { convertNoUnsafeFirst } from "../no-unsafe-first"; +import { convertRxjsNoUnsafeFirst } from "../rxjs-no-unsafe-first"; -describe(convertNoUnsafeFirst, () => { +describe(convertRxjsNoUnsafeFirst, () => { test("conversion without arguments", () => { - const result = convertNoUnsafeFirst({ + const result = convertRxjsNoUnsafeFirst({ ruleArguments: [], }); diff --git a/src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-no-unsafe-scope.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-no-unsafe-scope.test.ts new file mode 100644 index 000000000..9c73077a9 --- /dev/null +++ b/src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-no-unsafe-scope.test.ts @@ -0,0 +1,11 @@ +import { convertRxjsNoUnsafeScope } from "../rxjs-no-unsafe-scope"; + +describe(convertRxjsNoUnsafeScope, () => { + test("conversion without arguments", () => { + const result = convertRxjsNoUnsafeScope({ + ruleArguments: [], + }); + + expect(result).toEqual({}); + }); +}); diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/no-unsafe-subject-next.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-no-unsafe-subject-next.test.ts similarity index 63% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/no-unsafe-subject-next.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-no-unsafe-subject-next.test.ts index 0ec6da921..1e5d741d5 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/no-unsafe-subject-next.test.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-no-unsafe-subject-next.test.ts @@ -1,8 +1,8 @@ -import { convertNoUnsafeSubjectNext } from "../no-unsafe-subject-next"; +import { convertRxjsNoUnsafeSubjectNext } from "../rxjs-no-unsafe-subject-next"; -describe(convertNoUnsafeSubjectNext, () => { +describe(convertRxjsNoUnsafeSubjectNext, () => { test("conversion without arguments", () => { - const result = convertNoUnsafeSubjectNext({ + const result = convertRxjsNoUnsafeSubjectNext({ ruleArguments: [], }); diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/no-unsafe-switchmap.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-no-unsafe-switchmap.test.ts similarity index 85% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/no-unsafe-switchmap.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-no-unsafe-switchmap.test.ts index b44af7daa..bfb86fdc0 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/no-unsafe-switchmap.test.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-no-unsafe-switchmap.test.ts @@ -1,8 +1,8 @@ -import { convertNoUnsafeSwitchmap } from "../no-unsafe-switchmap"; +import { convertRxjsNoUnsafeSwitchmap } from "../rxjs-no-unsafe-switchmap"; -describe(convertNoUnsafeSwitchmap, () => { +describe(convertRxjsNoUnsafeSwitchmap, () => { test("conversion without arguments", () => { - const result = convertNoUnsafeSwitchmap({ + const result = convertRxjsNoUnsafeSwitchmap({ ruleArguments: [], }); @@ -17,7 +17,7 @@ describe(convertNoUnsafeSwitchmap, () => { }); test("conversion with `disallow` argument", () => { - const result = convertNoUnsafeSwitchmap({ + const result = convertRxjsNoUnsafeSwitchmap({ ruleArguments: [ { disallow: ["add", "create", "delete", "post", "put", "remove", "set", "update"] }, ], @@ -48,7 +48,7 @@ describe(convertNoUnsafeSwitchmap, () => { }); test("conversion with `observable` argument", () => { - const result = convertNoUnsafeSwitchmap({ + const result = convertRxjsNoUnsafeSwitchmap({ ruleArguments: [{ observable: "action(s|\\$)?" }], }); diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/no-unsafe-takeuntil.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-no-unsafe-takeuntil.test.ts similarity index 80% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/no-unsafe-takeuntil.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-no-unsafe-takeuntil.test.ts index 8d5072818..019f81b65 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/no-unsafe-takeuntil.test.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-no-unsafe-takeuntil.test.ts @@ -1,8 +1,8 @@ -import { convertNoUnsafeTakeuntil } from "../no-unsafe-takeuntil"; +import { convertRxjsNoUnsafeTakeUntil } from "../rxjs-no-unsafe-takeuntil"; -describe(convertNoUnsafeTakeuntil, () => { +describe(convertRxjsNoUnsafeTakeUntil, () => { test("conversion without arguments", () => { - const result = convertNoUnsafeTakeuntil({ + const result = convertRxjsNoUnsafeTakeUntil({ ruleArguments: [], }); @@ -17,15 +17,15 @@ describe(convertNoUnsafeTakeuntil, () => { }); test("conversion with alias argument", () => { - const result = convertNoUnsafeTakeuntil({ + const result = convertRxjsNoUnsafeTakeUntil({ ruleArguments: [{ alias: ["untilDestroyed"] }], }); expect(result).toEqual({ rules: [ { - ruleName: "rxjs/no-unsafe-takeuntil", ruleArguments: [{ alias: ["untilDestroyed"] }], + ruleName: "rxjs/no-unsafe-takeuntil", }, ], plugins: ["eslint-plugin-rxjs"], @@ -33,15 +33,15 @@ describe(convertNoUnsafeTakeuntil, () => { }); test("conversion with allow argument", () => { - const result = convertNoUnsafeTakeuntil({ + const result = convertRxjsNoUnsafeTakeUntil({ ruleArguments: [{ allow: ["shareReplay", "share"] }], }); expect(result).toEqual({ rules: [ { - ruleName: "rxjs/no-unsafe-takeuntil", ruleArguments: [{ allow: ["shareReplay", "share"] }], + ruleName: "rxjs/no-unsafe-takeuntil", }, ], plugins: ["eslint-plugin-rxjs"], diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/no-unsafe-takewhile.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-no-unsafe-takewhile.test.ts similarity index 65% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/no-unsafe-takewhile.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-no-unsafe-takewhile.test.ts index 8c972356b..e15477321 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/no-unsafe-takewhile.test.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-no-unsafe-takewhile.test.ts @@ -1,8 +1,8 @@ -import { convertNoUnsafeTakewhile } from "../no-unsafe-takewhile"; +import { convertRxjsNoUnsafeTakewhile } from "../rxjs-no-unsafe-takewhile"; -describe(convertNoUnsafeTakewhile, () => { +describe(convertRxjsNoUnsafeTakewhile, () => { test("conversion without arguments", () => { - const result = convertNoUnsafeTakewhile({ + const result = convertRxjsNoUnsafeTakewhile({ ruleArguments: [], }); diff --git a/src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-no-unused-add.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-no-unused-add.test.ts new file mode 100644 index 000000000..3a01594f9 --- /dev/null +++ b/src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-no-unused-add.test.ts @@ -0,0 +1,11 @@ +import { convertRxjsNoUnusedAdd } from "../rxjs-no-unused-add"; + +describe(convertRxjsNoUnusedAdd, () => { + test("conversion without arguments", () => { + const result = convertRxjsNoUnusedAdd({ + ruleArguments: [], + }); + + expect(result).toEqual({}); + }); +}); diff --git a/src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-no-wholesale.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-no-wholesale.test.ts new file mode 100644 index 000000000..567f5aa46 --- /dev/null +++ b/src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-no-wholesale.test.ts @@ -0,0 +1,11 @@ +import { convertRxjsNoWholesale } from "../rxjs-no-wholesale"; + +describe(convertRxjsNoWholesale, () => { + test("conversion without arguments", () => { + const result = convertRxjsNoWholesale({ + ruleArguments: [], + }); + + expect(result).toEqual({}); + }); +}); diff --git a/src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-prefer-add.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-prefer-add.test.ts new file mode 100644 index 000000000..ce6da011e --- /dev/null +++ b/src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-prefer-add.test.ts @@ -0,0 +1,11 @@ +import { convertRxjsPreferAdd } from "../rxjs-prefer-add"; + +describe(convertRxjsPreferAdd, () => { + test("conversion without arguments", () => { + const result = convertRxjsPreferAdd({ + ruleArguments: [], + }); + + expect(result).toEqual({}); + }); +}); diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/prefer-angular-async-pipe.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-prefer-angular-async-pipe.test.ts similarity index 61% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/prefer-angular-async-pipe.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-prefer-angular-async-pipe.test.ts index 5f293f477..747a397c3 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/prefer-angular-async-pipe.test.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-prefer-angular-async-pipe.test.ts @@ -1,8 +1,8 @@ -import { convertPreferAngularAsyncPipe } from "../prefer-angular-async-pipe"; +import { convertRxjsPreferAngularAsyncPipe } from "../rxjs-prefer-angular-async-pipe"; -describe(convertPreferAngularAsyncPipe, () => { +describe(convertRxjsPreferAngularAsyncPipe, () => { test("conversion without arguments", () => { - const result = convertPreferAngularAsyncPipe({ + const result = convertRxjsPreferAngularAsyncPipe({ ruleArguments: [], }); diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/prefer-angular-composition.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-prefer-angular-composition.test.ts similarity index 60% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/prefer-angular-composition.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-prefer-angular-composition.test.ts index a152d3d11..d8a5ff0c4 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/prefer-angular-composition.test.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-prefer-angular-composition.test.ts @@ -1,8 +1,8 @@ -import { convertPreferAngularComposition } from "../prefer-angular-composition"; +import { convertRxjsPreferAngularComposition } from "../rxjs-prefer-angular-composition"; -describe(convertPreferAngularComposition, () => { +describe(convertRxjsPreferAngularComposition, () => { test("conversion without arguments", () => { - const result = convertPreferAngularComposition({ + const result = convertRxjsPreferAngularComposition({ ruleArguments: [], }); diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/prefer-angular-takeuntil.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-prefer-angular-takeuntil.test.ts similarity index 80% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/prefer-angular-takeuntil.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-prefer-angular-takeuntil.test.ts index 36028ecc6..e3829ad0a 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/prefer-angular-takeuntil.test.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-prefer-angular-takeuntil.test.ts @@ -1,8 +1,8 @@ -import { convertPreferAngularTakeuntil } from "../prefer-angular-takeuntil"; +import { convertRxjsPreferAngularTakeuntil } from "../rxjs-prefer-angular-takeuntil"; -describe(convertPreferAngularTakeuntil, () => { +describe(convertRxjsPreferAngularTakeuntil, () => { test("conversion without arguments", () => { - const result = convertPreferAngularTakeuntil({ + const result = convertRxjsPreferAngularTakeuntil({ ruleArguments: [], }); @@ -17,7 +17,7 @@ describe(convertPreferAngularTakeuntil, () => { }); test("conversion with `alias` argument", () => { - const result = convertPreferAngularTakeuntil({ + const result = convertRxjsPreferAngularTakeuntil({ ruleArguments: [{ alias: ["untilDestroyed"] }], }); @@ -33,7 +33,7 @@ describe(convertPreferAngularTakeuntil, () => { }); test("conversion with `checkComplete` argument", () => { - const result = convertPreferAngularTakeuntil({ + const result = convertRxjsPreferAngularTakeuntil({ ruleArguments: [{ checkComplete: true }], }); @@ -49,7 +49,7 @@ describe(convertPreferAngularTakeuntil, () => { }); test("conversion with `checkDecorators` argument", () => { - const result = convertPreferAngularTakeuntil({ + const result = convertRxjsPreferAngularTakeuntil({ ruleArguments: [{ checkDecorators: ["Component"] }], }); diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/prefer-observer.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-prefer-observer.test.ts similarity index 77% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/prefer-observer.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-prefer-observer.test.ts index 9bb378e03..b1fde6d21 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/prefer-observer.test.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-prefer-observer.test.ts @@ -1,8 +1,8 @@ -import { convertPreferObserver } from "../prefer-observer"; +import { convertRxjsPreferObserver } from "../rxjs-prefer-observer"; -describe(convertPreferObserver, () => { +describe(convertRxjsPreferObserver, () => { test("conversion without arguments", () => { - const result = convertPreferObserver({ + const result = convertRxjsPreferObserver({ ruleArguments: [], }); @@ -17,7 +17,7 @@ describe(convertPreferObserver, () => { }); test("conversion with `allowNext` argument", () => { - const result = convertPreferObserver({ + const result = convertRxjsPreferObserver({ ruleArguments: [{ allowNext: false }], }); diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/suffix-subjects.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-suffix-subjects.test.ts similarity index 84% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/suffix-subjects.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-suffix-subjects.test.ts index a6761be0b..d0b3355a9 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/suffix-subjects.test.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-suffix-subjects.test.ts @@ -1,8 +1,8 @@ -import { convertSuffixSubjects } from "../suffix-subjects"; +import { convertRxjsSuffixSubjects } from "../rxjs-suffix-subjects"; -describe(convertSuffixSubjects, () => { +describe(convertRxjsSuffixSubjects, () => { test("conversion without arguments", () => { - const result = convertSuffixSubjects({ + const result = convertRxjsSuffixSubjects({ ruleArguments: [], }); @@ -17,7 +17,7 @@ describe(convertSuffixSubjects, () => { }); test("conversion with `parameters` argument", () => { - const result = convertSuffixSubjects({ + const result = convertRxjsSuffixSubjects({ ruleArguments: [{ parameters: true }], }); @@ -33,7 +33,7 @@ describe(convertSuffixSubjects, () => { }); test("conversion with `properties` argument", () => { - const result = convertSuffixSubjects({ + const result = convertRxjsSuffixSubjects({ ruleArguments: [{ properties: false }], }); @@ -49,7 +49,7 @@ describe(convertSuffixSubjects, () => { }); test("conversion with `suffix` argument", () => { - const result = convertSuffixSubjects({ + const result = convertRxjsSuffixSubjects({ ruleArguments: [{ suffix: true }], }); @@ -65,7 +65,7 @@ describe(convertSuffixSubjects, () => { }); test("conversion with `variables` argument", () => { - const result = convertSuffixSubjects({ + const result = convertRxjsSuffixSubjects({ ruleArguments: [{ variables: false }], }); diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/throw-error.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-throw-error.test.ts similarity index 68% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/throw-error.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-throw-error.test.ts index 8360b9686..4cfb47d81 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-rxjs/tests/throw-error.test.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/tests/rxjs-throw-error.test.ts @@ -1,8 +1,8 @@ -import { convertThrowError } from "../throw-error"; +import { convertRxjsThrowError } from "../rxjs-throw-error"; -describe(convertThrowError, () => { +describe(convertRxjsThrowError, () => { test("conversion without arguments", () => { - const result = convertThrowError({ + const result = convertRxjsThrowError({ ruleArguments: [], }); diff --git a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/tests/template-accessibility-alt-text.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/template-accessibility-alt-text.test.ts similarity index 100% rename from src/converters/lintConfigs/rules/ruleConverters/codelyzer/tests/template-accessibility-alt-text.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/template-accessibility-alt-text.test.ts diff --git a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/tests/template-accessibility-elements-content.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/template-accessibility-elements-content.test.ts similarity index 100% rename from src/converters/lintConfigs/rules/ruleConverters/codelyzer/tests/template-accessibility-elements-content.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/template-accessibility-elements-content.test.ts diff --git a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/tests/template-accessibility-label-for.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/template-accessibility-label-for.test.ts similarity index 100% rename from src/converters/lintConfigs/rules/ruleConverters/codelyzer/tests/template-accessibility-label-for.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/template-accessibility-label-for.test.ts diff --git a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/tests/template-accessibility-tabindex-no-positive.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/template-accessibility-tabindex-no-positive.test.ts similarity index 100% rename from src/converters/lintConfigs/rules/ruleConverters/codelyzer/tests/template-accessibility-tabindex-no-positive.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/template-accessibility-tabindex-no-positive.test.ts diff --git a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/tests/template-accessibility-table-scope.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/template-accessibility-table-scope.test.ts similarity index 100% rename from src/converters/lintConfigs/rules/ruleConverters/codelyzer/tests/template-accessibility-table-scope.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/template-accessibility-table-scope.test.ts diff --git a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/tests/template-accessibility-valid-aria.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/template-accessibility-valid-aria.test.ts similarity index 100% rename from src/converters/lintConfigs/rules/ruleConverters/codelyzer/tests/template-accessibility-valid-aria.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/template-accessibility-valid-aria.test.ts diff --git a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/tests/template-banana-in-box.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/template-banana-in-box.test.ts similarity index 100% rename from src/converters/lintConfigs/rules/ruleConverters/codelyzer/tests/template-banana-in-box.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/template-banana-in-box.test.ts diff --git a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/tests/template-click-events-have-key-events.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/template-click-events-have-key-events.test.ts similarity index 100% rename from src/converters/lintConfigs/rules/ruleConverters/codelyzer/tests/template-click-events-have-key-events.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/template-click-events-have-key-events.test.ts diff --git a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/tests/template-conditional-complexity.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/template-conditional-complexity.test.ts similarity index 100% rename from src/converters/lintConfigs/rules/ruleConverters/codelyzer/tests/template-conditional-complexity.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/template-conditional-complexity.test.ts diff --git a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/tests/template-cyclomatic-complexity.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/template-cyclomatic-complexity.test.ts similarity index 100% rename from src/converters/lintConfigs/rules/ruleConverters/codelyzer/tests/template-cyclomatic-complexity.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/template-cyclomatic-complexity.test.ts diff --git a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/tests/template-i18n.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/template-i18n.test.ts similarity index 100% rename from src/converters/lintConfigs/rules/ruleConverters/codelyzer/tests/template-i18n.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/template-i18n.test.ts diff --git a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/tests/template-mouse-events-have-key-events.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/template-mouse-events-have-key-events.test.ts similarity index 100% rename from src/converters/lintConfigs/rules/ruleConverters/codelyzer/tests/template-mouse-events-have-key-events.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/template-mouse-events-have-key-events.test.ts diff --git a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/tests/template-no-any.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/template-no-any.test.ts similarity index 100% rename from src/converters/lintConfigs/rules/ruleConverters/codelyzer/tests/template-no-any.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/template-no-any.test.ts diff --git a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/tests/template-no-autofocus.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/template-no-autofocus.test.ts similarity index 100% rename from src/converters/lintConfigs/rules/ruleConverters/codelyzer/tests/template-no-autofocus.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/template-no-autofocus.test.ts diff --git a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/tests/template-no-call-expression.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/template-no-call-expression.test.ts similarity index 100% rename from src/converters/lintConfigs/rules/ruleConverters/codelyzer/tests/template-no-call-expression.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/template-no-call-expression.test.ts diff --git a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/tests/template-no-distracting-elements.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/template-no-distracting-elements.test.ts similarity index 100% rename from src/converters/lintConfigs/rules/ruleConverters/codelyzer/tests/template-no-distracting-elements.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/template-no-distracting-elements.test.ts diff --git a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/tests/template-no-negated-async.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/template-no-negated-async.test.ts similarity index 100% rename from src/converters/lintConfigs/rules/ruleConverters/codelyzer/tests/template-no-negated-async.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/template-no-negated-async.test.ts diff --git a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/tests/template-use-track-by-function.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/template-use-track-by-function.test.ts similarity index 100% rename from src/converters/lintConfigs/rules/ruleConverters/codelyzer/tests/template-use-track-by-function.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/template-use-track-by-function.test.ts diff --git a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/tests/use-component-selector.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/use-component-selector.test.ts similarity index 100% rename from src/converters/lintConfigs/rules/ruleConverters/codelyzer/tests/use-component-selector.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/use-component-selector.test.ts diff --git a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/tests/use-component-view-encapsulation.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/use-component-view-encapsulation.test.ts similarity index 100% rename from src/converters/lintConfigs/rules/ruleConverters/codelyzer/tests/use-component-view-encapsulation.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/use-component-view-encapsulation.test.ts diff --git a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/tests/use-injectable-provided-in.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/use-injectable-provided-in.test.ts similarity index 100% rename from src/converters/lintConfigs/rules/ruleConverters/codelyzer/tests/use-injectable-provided-in.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/use-injectable-provided-in.test.ts diff --git a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/tests/use-lifecycle-interface.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/use-lifecycle-interface.test.ts similarity index 100% rename from src/converters/lintConfigs/rules/ruleConverters/codelyzer/tests/use-lifecycle-interface.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/use-lifecycle-interface.test.ts diff --git a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/tests/use-pipe-decorator.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/use-pipe-decorator.test.ts similarity index 100% rename from src/converters/lintConfigs/rules/ruleConverters/codelyzer/tests/use-pipe-decorator.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/use-pipe-decorator.test.ts diff --git a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/tests/use-pipe-transform-interface.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/use-pipe-transform-interface.test.ts similarity index 100% rename from src/converters/lintConfigs/rules/ruleConverters/codelyzer/tests/use-pipe-transform-interface.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/use-pipe-transform-interface.test.ts diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/tests/use-primitive-type.test.ts b/src/converters/lintConfigs/rules/ruleConverters/tests/use-primitive-type.test.ts similarity index 100% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/tests/use-primitive-type.test.ts rename to src/converters/lintConfigs/rules/ruleConverters/tests/use-primitive-type.test.ts diff --git a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/use-component-selector.ts b/src/converters/lintConfigs/rules/ruleConverters/use-component-selector.ts similarity index 83% rename from src/converters/lintConfigs/rules/ruleConverters/codelyzer/use-component-selector.ts rename to src/converters/lintConfigs/rules/ruleConverters/use-component-selector.ts index 03d6e8557..1cb702887 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/use-component-selector.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/use-component-selector.ts @@ -1,4 +1,4 @@ -import { RuleConverter } from "../../ruleConverter"; +import { RuleConverter } from "../ruleConverter"; export const convertUseComponentSelector: RuleConverter = () => { return { diff --git a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/use-component-view-encapsulation.ts b/src/converters/lintConfigs/rules/ruleConverters/use-component-view-encapsulation.ts similarity index 84% rename from src/converters/lintConfigs/rules/ruleConverters/codelyzer/use-component-view-encapsulation.ts rename to src/converters/lintConfigs/rules/ruleConverters/use-component-view-encapsulation.ts index 25e1eeebc..429176a61 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/use-component-view-encapsulation.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/use-component-view-encapsulation.ts @@ -1,4 +1,4 @@ -import { RuleConverter } from "../../ruleConverter"; +import { RuleConverter } from "../ruleConverter"; export const convertUseComponentViewEncapsulation: RuleConverter = () => { return { diff --git a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/use-injectable-provided-in.ts b/src/converters/lintConfigs/rules/ruleConverters/use-injectable-provided-in.ts similarity index 83% rename from src/converters/lintConfigs/rules/ruleConverters/codelyzer/use-injectable-provided-in.ts rename to src/converters/lintConfigs/rules/ruleConverters/use-injectable-provided-in.ts index bf4e70151..59c0c3980 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/use-injectable-provided-in.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/use-injectable-provided-in.ts @@ -1,4 +1,4 @@ -import { RuleConverter } from "../../ruleConverter"; +import { RuleConverter } from "../ruleConverter"; export const convertUseInjectableProvidedIn: RuleConverter = () => { return { diff --git a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/use-lifecycle-interface.ts b/src/converters/lintConfigs/rules/ruleConverters/use-lifecycle-interface.ts similarity index 83% rename from src/converters/lintConfigs/rules/ruleConverters/codelyzer/use-lifecycle-interface.ts rename to src/converters/lintConfigs/rules/ruleConverters/use-lifecycle-interface.ts index 2716f8ba7..e92c5e7e3 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/use-lifecycle-interface.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/use-lifecycle-interface.ts @@ -1,4 +1,4 @@ -import { RuleConverter } from "../../ruleConverter"; +import { RuleConverter } from "../ruleConverter"; export const convertUseLifecycleInterface: RuleConverter = () => { return { diff --git a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/use-pipe-decorator.ts b/src/converters/lintConfigs/rules/ruleConverters/use-pipe-decorator.ts similarity index 60% rename from src/converters/lintConfigs/rules/ruleConverters/codelyzer/use-pipe-decorator.ts rename to src/converters/lintConfigs/rules/ruleConverters/use-pipe-decorator.ts index 90ca37a63..5c1207d9a 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/use-pipe-decorator.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/use-pipe-decorator.ts @@ -1,4 +1,4 @@ -import { RuleConverter } from "../../ruleConverter"; +import { RuleConverter } from "../ruleConverter"; export const convertUsePipeDecorator: RuleConverter = () => { return {}; diff --git a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/use-pipe-transform-interface.ts b/src/converters/lintConfigs/rules/ruleConverters/use-pipe-transform-interface.ts similarity index 83% rename from src/converters/lintConfigs/rules/ruleConverters/codelyzer/use-pipe-transform-interface.ts rename to src/converters/lintConfigs/rules/ruleConverters/use-pipe-transform-interface.ts index 38beb078e..89c10c98e 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/codelyzer/use-pipe-transform-interface.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/use-pipe-transform-interface.ts @@ -1,4 +1,4 @@ -import { RuleConverter } from "../../ruleConverter"; +import { RuleConverter } from "../ruleConverter"; export const convertUsePipeTransformInterface: RuleConverter = () => { return { diff --git a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/use-primitive-type.ts b/src/converters/lintConfigs/rules/ruleConverters/use-primitive-type.ts similarity index 94% rename from src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/use-primitive-type.ts rename to src/converters/lintConfigs/rules/ruleConverters/use-primitive-type.ts index 10a8eb4f5..465f5d264 100644 --- a/src/converters/lintConfigs/rules/ruleConverters/eslint-plugin-sonarjs/use-primitive-type.ts +++ b/src/converters/lintConfigs/rules/ruleConverters/use-primitive-type.ts @@ -1,4 +1,4 @@ -import { RuleConverter } from "../../ruleConverter"; +import { RuleConverter } from "../ruleConverter"; export const convertUsePrimitiveType: RuleConverter = () => { return { diff --git a/src/converters/lintConfigs/rules/ruleMergers/eslint-plugin-rxjs/ban-operators.ts b/src/converters/lintConfigs/rules/ruleMergers/ban-operators.ts similarity index 86% rename from src/converters/lintConfigs/rules/ruleMergers/eslint-plugin-rxjs/ban-operators.ts rename to src/converters/lintConfigs/rules/ruleMergers/ban-operators.ts index e7539d414..86551053f 100644 --- a/src/converters/lintConfigs/rules/ruleMergers/eslint-plugin-rxjs/ban-operators.ts +++ b/src/converters/lintConfigs/rules/ruleMergers/ban-operators.ts @@ -1,4 +1,4 @@ -import { RuleMerger } from "../../ruleMerger"; +import { RuleMerger } from "../ruleMerger"; export const mergeBanOperators: RuleMerger = (existingOptions, newOptions) => { if (existingOptions === undefined && newOptions === undefined) { diff --git a/src/converters/lintConfigs/rules/ruleMergers/eslint-plugin-rxjs/tests/ban-operators.test.ts b/src/converters/lintConfigs/rules/ruleMergers/tests/ban-operators.test.ts similarity index 100% rename from src/converters/lintConfigs/rules/ruleMergers/eslint-plugin-rxjs/tests/ban-operators.test.ts rename to src/converters/lintConfigs/rules/ruleMergers/tests/ban-operators.test.ts