@flint.fyi/ts 0.15.0 → 0.18.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.d.ts +2 -13
- package/lib/index.js +2 -12
- package/lib/plugin.d.ts +2159 -232
- package/lib/plugin.js +609 -121
- package/lib/rules/accessorPairGroups.d.ts +10 -0
- package/lib/rules/accessorPairGroups.js +48 -0
- package/lib/rules/accessorPairTypes.d.ts +10 -0
- package/lib/rules/accessorPairTypes.js +72 -0
- package/lib/rules/accessorThisRecursion.d.ts +10 -0
- package/lib/rules/accessorThisRecursion.js +65 -0
- package/lib/rules/anyArguments.d.ts +10 -0
- package/lib/rules/anyArguments.js +234 -0
- package/lib/rules/anyAssignments.d.ts +10 -0
- package/lib/rules/anyAssignments.js +265 -0
- package/lib/rules/anyCalls.d.ts +10 -0
- package/lib/rules/anyCalls.js +68 -0
- package/lib/rules/anyMemberAccess.d.ts +10 -0
- package/lib/rules/anyMemberAccess.js +85 -0
- package/lib/rules/anyReturns.d.ts +5 -2
- package/lib/rules/anyReturns.js +97 -182
- package/lib/rules/arguments.d.ts +10 -0
- package/lib/rules/arguments.js +38 -0
- package/lib/rules/arrayCallbackReturns.d.ts +10 -0
- package/lib/rules/arrayCallbackReturns.js +73 -0
- package/lib/rules/arrayConstructors.d.ts +10 -0
- package/lib/rules/arrayConstructors.js +47 -0
- package/lib/rules/arrayDeleteUnnecessaryCounts.d.ts +10 -0
- package/lib/rules/arrayDeleteUnnecessaryCounts.js +54 -0
- package/lib/rules/arrayElementDeletions.d.ts +10 -0
- package/lib/rules/arrayElementDeletions.js +43 -0
- package/lib/rules/arrayEmptyCallbackSlots.d.ts +10 -0
- package/lib/rules/arrayEmptyCallbackSlots.js +45 -0
- package/lib/rules/arrayExistenceChecksConsistency.d.ts +10 -0
- package/lib/rules/arrayExistenceChecksConsistency.js +86 -0
- package/lib/rules/arrayFilteredFinds.d.ts +10 -0
- package/lib/rules/arrayFilteredFinds.js +80 -0
- package/lib/rules/arrayFinds.d.ts +10 -0
- package/lib/rules/arrayFinds.js +41 -0
- package/lib/rules/arrayFlatMapMethods.d.ts +10 -0
- package/lib/rules/arrayFlatMapMethods.js +47 -0
- package/lib/rules/arrayFlatMethods.d.ts +10 -0
- package/lib/rules/arrayFlatMethods.js +83 -0
- package/lib/rules/arrayFlatUnnecessaryDepths.d.ts +10 -0
- package/lib/rules/arrayFlatUnnecessaryDepths.js +33 -0
- package/lib/rules/arrayIncludes.d.ts +10 -0
- package/lib/rules/arrayIncludes.js +59 -0
- package/lib/rules/arrayIncludesMethods.d.ts +10 -0
- package/lib/rules/arrayIncludesMethods.js +37 -0
- package/lib/rules/arrayIndexOfMethods.d.ts +10 -0
- package/lib/rules/arrayIndexOfMethods.js +51 -0
- package/lib/rules/arrayLoops.d.ts +10 -0
- package/lib/rules/arrayLoops.js +36 -0
- package/lib/rules/arrayMapIdentities.d.ts +10 -0
- package/lib/rules/arrayMapIdentities.js +74 -0
- package/lib/rules/arrayMutableReverses.d.ts +10 -0
- package/lib/rules/arrayMutableReverses.js +39 -0
- package/lib/rules/arrayMutableSorts.d.ts +10 -0
- package/lib/rules/arrayMutableSorts.js +72 -0
- package/lib/rules/arrayReduceTypeArguments.d.ts +10 -0
- package/lib/rules/arrayReduceTypeArguments.js +64 -0
- package/lib/rules/arraySliceUnnecessaryEnd.d.ts +10 -0
- package/lib/rules/arraySliceUnnecessaryEnd.js +51 -0
- package/lib/rules/arraySomeMethods.d.ts +10 -0
- package/lib/rules/arraySomeMethods.js +77 -0
- package/lib/rules/arrayTernarySpreadingConsistency.d.ts +10 -0
- package/lib/rules/arrayTernarySpreadingConsistency.js +74 -0
- package/lib/rules/arrayTypes.d.ts +17 -0
- package/lib/rules/arrayTypes.js +111 -0
- package/lib/rules/arrayUnnecessaryLengthChecks.d.ts +10 -0
- package/lib/rules/arrayUnnecessaryLengthChecks.js +97 -0
- package/lib/rules/asConstAssertions.d.ts +10 -0
- package/lib/rules/asConstAssertions.js +57 -0
- package/lib/rules/assignmentOperatorShorthands.d.ts +10 -0
- package/lib/rules/assignmentOperatorShorthands.js +47 -0
- package/lib/rules/asyncPromiseExecutors.d.ts +5 -2
- package/lib/rules/asyncPromiseExecutors.js +39 -50
- package/lib/rules/asyncUnnecessaryPromiseWrappers.d.ts +10 -0
- package/lib/rules/asyncUnnecessaryPromiseWrappers.js +52 -0
- package/lib/rules/atAccesses.d.ts +10 -0
- package/lib/rules/atAccesses.js +52 -0
- package/lib/rules/builtinCoercions.d.ts +10 -0
- package/lib/rules/builtinCoercions.js +117 -0
- package/lib/rules/builtinConstructorNews.d.ts +10 -0
- package/lib/rules/builtinConstructorNews.js +89 -0
- package/lib/rules/caseDeclarations.d.ts +5 -3
- package/lib/rules/caseDeclarations.js +37 -51
- package/lib/rules/caseDuplicates.d.ts +5 -2
- package/lib/rules/caseDuplicates.js +34 -48
- package/lib/rules/caseFallthroughs.d.ts +10 -0
- package/lib/rules/caseFallthroughs.js +76 -0
- package/lib/rules/catchCallbackTypes.d.ts +10 -0
- package/lib/rules/catchCallbackTypes.js +67 -0
- package/lib/rules/caughtVariableNames.d.ts +10 -0
- package/lib/rules/caughtVariableNames.js +40 -0
- package/lib/rules/chainedAssignments.d.ts +5 -2
- package/lib/rules/chainedAssignments.js +30 -47
- package/lib/rules/charAtComparisons.d.ts +10 -0
- package/lib/rules/charAtComparisons.js +58 -0
- package/lib/rules/classAssignments.d.ts +5 -2
- package/lib/rules/classAssignments.js +30 -41
- package/lib/rules/classFieldDeclarations.d.ts +10 -0
- package/lib/rules/classFieldDeclarations.js +40 -0
- package/lib/rules/classLiteralProperties.d.ts +10 -0
- package/lib/rules/classLiteralProperties.js +45 -0
- package/lib/rules/classMemberDuplicates.d.ts +10 -0
- package/lib/rules/classMemberDuplicates.js +71 -0
- package/lib/rules/classMethodsThis.d.ts +14 -0
- package/lib/rules/classMethodsThis.js +124 -0
- package/lib/rules/combinedPushes.d.ts +10 -0
- package/lib/rules/combinedPushes.js +56 -0
- package/lib/rules/consecutiveNonNullAssertions.d.ts +5 -2
- package/lib/rules/consecutiveNonNullAssertions.js +37 -41
- package/lib/rules/consoleCalls.d.ts +9 -0
- package/lib/rules/consoleCalls.js +28 -0
- package/lib/rules/constantAssignments.d.ts +5 -2
- package/lib/rules/constantAssignments.js +42 -60
- package/lib/rules/constructorGenericCalls.d.ts +16 -0
- package/lib/rules/constructorGenericCalls.js +138 -0
- package/lib/rules/constructorReturns.d.ts +5 -2
- package/lib/rules/constructorReturns.js +38 -50
- package/lib/rules/constructorSupers.d.ts +10 -0
- package/lib/rules/constructorSupers.js +77 -0
- package/lib/rules/dateConstructorClones.d.ts +10 -0
- package/lib/rules/dateConstructorClones.js +37 -0
- package/lib/rules/dateNowTimestamps.d.ts +10 -0
- package/lib/rules/dateNowTimestamps.js +57 -0
- package/lib/rules/debuggerStatements.d.ts +5 -2
- package/lib/rules/debuggerStatements.js +31 -42
- package/lib/rules/defaultCaseLast.d.ts +5 -2
- package/lib/rules/defaultCaseLast.js +34 -42
- package/lib/rules/defaultParameterLast.d.ts +10 -0
- package/lib/rules/defaultParameterLast.js +42 -0
- package/lib/rules/deprecated.d.ts +10 -0
- package/lib/rules/deprecated.js +243 -0
- package/lib/rules/destructuringConsistency.d.ts +10 -0
- package/lib/rules/destructuringConsistency.js +112 -0
- package/lib/rules/duplicateArguments.d.ts +5 -3
- package/lib/rules/duplicateArguments.js +43 -50
- package/lib/rules/dynamicDeletes.d.ts +10 -0
- package/lib/rules/dynamicDeletes.js +37 -0
- package/lib/rules/elseIfDuplicates.d.ts +5 -2
- package/lib/rules/elseIfDuplicates.js +36 -52
- package/lib/rules/elseReturns.d.ts +10 -0
- package/lib/rules/elseReturns.js +67 -0
- package/lib/rules/emptyBlocks.d.ts +5 -2
- package/lib/rules/emptyBlocks.js +52 -64
- package/lib/rules/emptyDestructures.d.ts +5 -3
- package/lib/rules/emptyDestructures.js +32 -39
- package/lib/rules/emptyEnums.d.ts +10 -0
- package/lib/rules/emptyEnums.js +30 -0
- package/lib/rules/emptyExports.d.ts +10 -0
- package/lib/rules/emptyExports.js +60 -0
- package/lib/rules/emptyFiles.d.ts +10 -0
- package/lib/rules/emptyFiles.js +44 -0
- package/lib/rules/emptyFunctions.d.ts +10 -0
- package/lib/rules/emptyFunctions.js +61 -0
- package/lib/rules/emptyModuleAttributes.d.ts +10 -0
- package/lib/rules/emptyModuleAttributes.js +35 -0
- package/lib/rules/emptyObjectTypes.d.ts +10 -0
- package/lib/rules/emptyObjectTypes.js +47 -0
- package/lib/rules/emptyStaticBlocks.d.ts +5 -2
- package/lib/rules/emptyStaticBlocks.js +40 -53
- package/lib/rules/emptyTypeParameterLists.d.ts +10 -0
- package/lib/rules/emptyTypeParameterLists.js +31 -0
- package/lib/rules/enumInitializers.d.ts +10 -0
- package/lib/rules/enumInitializers.js +54 -0
- package/lib/rules/enumMemberLiterals.d.ts +10 -0
- package/lib/rules/enumMemberLiterals.js +39 -0
- package/lib/rules/enumValueConsistency.d.ts +10 -0
- package/lib/rules/enumValueConsistency.js +56 -0
- package/lib/rules/enumValueDuplicates.d.ts +10 -0
- package/lib/rules/enumValueDuplicates.js +60 -0
- package/lib/rules/equalityOperatorNegations.d.ts +9 -0
- package/lib/rules/equalityOperatorNegations.js +60 -0
- package/lib/rules/equalityOperators.d.ts +10 -0
- package/lib/rules/equalityOperators.js +44 -0
- package/lib/rules/errorMessages.d.ts +10 -0
- package/lib/rules/errorMessages.js +60 -0
- package/lib/rules/errorSubclassProperties.d.ts +10 -0
- package/lib/rules/errorSubclassProperties.js +144 -0
- package/lib/rules/errorUnnecessaryCaptureStackTraces.d.ts +10 -0
- package/lib/rules/errorUnnecessaryCaptureStackTraces.js +55 -0
- package/lib/rules/escapeSequenceCasing.d.ts +10 -0
- package/lib/rules/escapeSequenceCasing.js +75 -0
- package/lib/rules/evals.d.ts +10 -0
- package/lib/rules/evals.js +31 -0
- package/lib/rules/evolvingVariableTypes.d.ts +10 -0
- package/lib/rules/evolvingVariableTypes.js +33 -0
- package/lib/rules/exceptionAssignments.d.ts +5 -2
- package/lib/rules/exceptionAssignments.js +40 -60
- package/lib/rules/explicitAnys.d.ts +10 -0
- package/lib/rules/explicitAnys.js +55 -0
- package/lib/rules/exponentiationOperators.d.ts +10 -0
- package/lib/rules/exponentiationOperators.js +34 -0
- package/lib/rules/exportFromImports.d.ts +10 -0
- package/lib/rules/exportFromImports.js +119 -0
- package/lib/rules/exportMutables.d.ts +10 -0
- package/lib/rules/exportMutables.js +33 -0
- package/lib/rules/exportUniqueNames.d.ts +10 -0
- package/lib/rules/exportUniqueNames.js +65 -0
- package/lib/rules/extraneousClasses.d.ts +16 -0
- package/lib/rules/extraneousClasses.js +111 -0
- package/lib/rules/fetchMethodBodies.d.ts +10 -0
- package/lib/rules/fetchMethodBodies.js +72 -0
- package/lib/rules/finallyStatementSafety.d.ts +5 -2
- package/lib/rules/finallyStatementSafety.js +45 -69
- package/lib/rules/forDirections.d.ts +5 -2
- package/lib/rules/forDirections.js +67 -124
- package/lib/rules/forInArrays.d.ts +5 -2
- package/lib/rules/forInArrays.js +42 -50
- package/lib/rules/forInGuards.d.ts +9 -0
- package/lib/rules/forInGuards.js +44 -0
- package/lib/rules/functionApplySpreads.d.ts +10 -0
- package/lib/rules/functionApplySpreads.js +63 -0
- package/lib/rules/functionAssignments.d.ts +5 -2
- package/lib/rules/functionAssignments.js +30 -41
- package/lib/rules/functionCurryingRedundancy.d.ts +5 -2
- package/lib/rules/functionCurryingRedundancy.js +47 -71
- package/lib/rules/functionDeclarationStyles.d.ts +16 -0
- package/lib/rules/functionDeclarationStyles.js +67 -0
- package/lib/rules/functionNameMatches.d.ts +10 -0
- package/lib/rules/functionNameMatches.js +74 -0
- package/lib/rules/functionNewCalls.d.ts +5 -3
- package/lib/rules/functionNewCalls.js +40 -59
- package/lib/rules/generatorFunctionYields.d.ts +5 -3
- package/lib/rules/generatorFunctionYields.js +45 -53
- package/lib/rules/getterReturns.d.ts +10 -0
- package/lib/rules/getterReturns.js +65 -0
- package/lib/rules/globalAssignments.d.ts +5 -2
- package/lib/rules/globalAssignments.js +44 -57
- package/lib/rules/globalObjectCalls.d.ts +5 -3
- package/lib/rules/globalObjectCalls.js +40 -42
- package/lib/rules/globalThisAliases.d.ts +10 -0
- package/lib/rules/globalThisAliases.js +47 -0
- package/lib/rules/impliedEvals.d.ts +10 -0
- package/lib/rules/impliedEvals.js +130 -0
- package/lib/rules/importEmptyBlocks.d.ts +10 -0
- package/lib/rules/importEmptyBlocks.js +53 -0
- package/lib/rules/importTypeSideEffects.d.ts +10 -0
- package/lib/rules/importTypeSideEffects.js +31 -0
- package/lib/rules/indexedObjectTypes.d.ts +16 -0
- package/lib/rules/indexedObjectTypes.js +83 -0
- package/lib/rules/instanceOfArrays.d.ts +10 -0
- package/lib/rules/instanceOfArrays.js +31 -0
- package/lib/rules/irregularWhitespaces.d.ts +16 -0
- package/lib/rules/irregularWhitespaces.js +97 -0
- package/lib/rules/isNaNComparisons.d.ts +10 -0
- package/lib/rules/isNaNComparisons.js +43 -0
- package/lib/rules/literalConstructorWrappers.d.ts +10 -0
- package/lib/rules/literalConstructorWrappers.js +64 -0
- package/lib/rules/mathMethods.d.ts +10 -0
- package/lib/rules/mathMethods.js +128 -0
- package/lib/rules/meaninglessVoidOperators.d.ts +10 -0
- package/lib/rules/meaninglessVoidOperators.js +39 -0
- package/lib/rules/misleadingVoidExpressions.d.ts +10 -0
- package/lib/rules/misleadingVoidExpressions.js +128 -0
- package/lib/rules/moduleSpecifierLists.d.ts +10 -0
- package/lib/rules/moduleSpecifierLists.js +92 -0
- package/lib/rules/multilineAmbiguities.d.ts +10 -0
- package/lib/rules/multilineAmbiguities.js +64 -0
- package/lib/rules/namedDefaultExports.d.ts +10 -0
- package/lib/rules/namedDefaultExports.js +60 -0
- package/lib/rules/namespaceDeclarations.d.ts +6 -3
- package/lib/rules/namespaceDeclarations.js +34 -55
- package/lib/rules/namespaceImplicitAmbientImports.d.ts +10 -0
- package/lib/rules/namespaceImplicitAmbientImports.js +40 -0
- package/lib/rules/namespaceKeywords.d.ts +10 -0
- package/lib/rules/namespaceKeywords.js +40 -0
- package/lib/rules/nativeObjectExtensions.d.ts +10 -0
- package/lib/rules/nativeObjectExtensions.js +114 -0
- package/lib/rules/negativeIndexLengthMethods.d.ts +10 -0
- package/lib/rules/negativeIndexLengthMethods.js +180 -0
- package/lib/rules/negativeZeroComparisons.d.ts +5 -2
- package/lib/rules/negativeZeroComparisons.js +44 -62
- package/lib/rules/nestedStandaloneIfs.d.ts +10 -0
- package/lib/rules/nestedStandaloneIfs.js +105 -0
- package/lib/rules/newDefinitions.d.ts +10 -0
- package/lib/rules/newDefinitions.js +84 -0
- package/lib/rules/newExpressions.d.ts +5 -2
- package/lib/rules/newExpressions.js +36 -53
- package/lib/rules/newNativeNonConstructors.d.ts +5 -2
- package/lib/rules/newNativeNonConstructors.js +37 -48
- package/lib/rules/nonNullAssertedNullishCoalesces.d.ts +10 -0
- package/lib/rules/nonNullAssertedNullishCoalesces.js +63 -0
- package/lib/rules/nonNullAssertedOptionalChains.d.ts +10 -0
- package/lib/rules/nonNullAssertedOptionalChains.js +69 -0
- package/lib/rules/nonNullAssertionPlacement.d.ts +10 -0
- package/lib/rules/nonNullAssertionPlacement.js +94 -0
- package/lib/rules/nonNullableTypeAssertions.d.ts +10 -0
- package/lib/rules/nonNullableTypeAssertions.js +78 -0
- package/lib/rules/nonOctalDecimalEscapes.d.ts +5 -3
- package/lib/rules/nonOctalDecimalEscapes.js +45 -55
- package/lib/rules/nullishCheckStyle.d.ts +21 -0
- package/lib/rules/nullishCheckStyle.js +144 -0
- package/lib/rules/nullishCoalescingOperators.d.ts +22 -0
- package/lib/rules/nullishCoalescingOperators.js +311 -0
- package/lib/rules/numberMethodRanges.d.ts +10 -0
- package/lib/rules/numberMethodRanges.js +74 -0
- package/lib/rules/numberStaticMethods.d.ts +10 -0
- package/lib/rules/numberStaticMethods.js +53 -0
- package/lib/rules/numericErasingOperations.d.ts +10 -0
- package/lib/rules/numericErasingOperations.js +46 -0
- package/lib/rules/numericLiteralParsing.d.ts +5 -2
- package/lib/rules/numericLiteralParsing.js +58 -90
- package/lib/rules/numericPrecision.d.ts +10 -0
- package/lib/rules/numericPrecision.js +102 -0
- package/lib/rules/numericSeparatorGroups.d.ts +10 -0
- package/lib/rules/numericSeparatorGroups.js +101 -0
- package/lib/rules/objectAssignSpreads.d.ts +10 -0
- package/lib/rules/objectAssignSpreads.js +53 -0
- package/lib/rules/objectCalls.d.ts +5 -2
- package/lib/rules/objectCalls.js +36 -45
- package/lib/rules/objectEntriesMethods.d.ts +10 -0
- package/lib/rules/objectEntriesMethods.js +82 -0
- package/lib/rules/objectHasOwns.d.ts +5 -2
- package/lib/rules/objectHasOwns.js +48 -72
- package/lib/rules/objectKeyDuplicates.d.ts +5 -2
- package/lib/rules/objectKeyDuplicates.js +57 -85
- package/lib/rules/objectProto.d.ts +5 -2
- package/lib/rules/objectProto.js +48 -53
- package/lib/rules/objectPrototypeBuiltIns.d.ts +5 -2
- package/lib/rules/objectPrototypeBuiltIns.js +48 -59
- package/lib/rules/objectShorthand.d.ts +10 -0
- package/lib/rules/objectShorthand.js +84 -0
- package/lib/rules/objectSpreadUnnecessaryFallbacks.d.ts +10 -0
- package/lib/rules/objectSpreadUnnecessaryFallbacks.js +43 -0
- package/lib/rules/objectTypeDefinitions.d.ts +10 -0
- package/lib/rules/objectTypeDefinitions.js +34 -0
- package/lib/rules/octalEscapes.d.ts +5 -2
- package/lib/rules/octalEscapes.js +53 -71
- package/lib/rules/octalNumbers.d.ts +5 -2
- package/lib/rules/octalNumbers.js +53 -67
- package/lib/rules/operatorAssignmentShorthand.d.ts +10 -0
- package/lib/rules/operatorAssignmentShorthand.js +77 -0
- package/lib/rules/overloadSignaturesAdjacent.d.ts +10 -0
- package/lib/rules/overloadSignaturesAdjacent.js +140 -0
- package/lib/rules/parameterReassignments.d.ts +10 -0
- package/lib/rules/parameterReassignments.js +76 -0
- package/lib/rules/parseIntRadixes.d.ts +10 -0
- package/lib/rules/parseIntRadixes.js +62 -0
- package/lib/rules/propertyAccessNotation.d.ts +13 -0
- package/lib/rules/propertyAccessNotation.js +119 -0
- package/lib/rules/recursionOnlyArguments.d.ts +10 -0
- package/lib/rules/recursionOnlyArguments.js +71 -0
- package/lib/rules/redundantTypeConstituents.d.ts +10 -0
- package/lib/rules/redundantTypeConstituents.js +277 -0
- package/lib/rules/regexAllGlobalFlags.d.ts +10 -0
- package/lib/rules/regexAllGlobalFlags.js +56 -0
- package/lib/rules/regexAmbiguousInvalidity.d.ts +10 -0
- package/lib/rules/regexAmbiguousInvalidity.js +297 -0
- package/lib/rules/regexCharacterClassRanges.d.ts +10 -0
- package/lib/rules/regexCharacterClassRanges.js +137 -0
- package/lib/rules/regexCharacterClassSetOperations.d.ts +10 -0
- package/lib/rules/regexCharacterClassSetOperations.js +81 -0
- package/lib/rules/regexCharacterClasses.d.ts +10 -0
- package/lib/rules/regexCharacterClasses.js +234 -0
- package/lib/rules/regexConciseCharacterClassNegations.d.ts +10 -0
- package/lib/rules/regexConciseCharacterClassNegations.js +52 -0
- package/lib/rules/regexContradictoryAssertions.d.ts +10 -0
- package/lib/rules/regexContradictoryAssertions.js +210 -0
- package/lib/rules/regexControlCharacterEscapes.d.ts +10 -0
- package/lib/rules/regexControlCharacterEscapes.js +130 -0
- package/lib/rules/regexControlCharacters.d.ts +10 -0
- package/lib/rules/regexControlCharacters.js +95 -0
- package/lib/rules/regexDigitMatchers.d.ts +10 -0
- package/lib/rules/regexDigitMatchers.js +180 -0
- package/lib/rules/regexDollarEscapes.d.ts +10 -0
- package/lib/rules/regexDollarEscapes.js +91 -0
- package/lib/rules/regexDuplicateCharacterClassCharacters.d.ts +10 -0
- package/lib/rules/regexDuplicateCharacterClassCharacters.js +128 -0
- package/lib/rules/regexEmptyAlternatives.d.ts +10 -0
- package/lib/rules/regexEmptyAlternatives.js +140 -0
- package/lib/rules/regexEmptyCapturingGroups.d.ts +10 -0
- package/lib/rules/regexEmptyCapturingGroups.js +67 -0
- package/lib/rules/regexEmptyCharacterClasses.d.ts +10 -0
- package/lib/rules/regexEmptyCharacterClasses.js +68 -0
- package/lib/rules/regexEmptyGroups.d.ts +10 -0
- package/lib/rules/regexEmptyGroups.js +66 -0
- package/lib/rules/regexEmptyLazyQuantifiers.d.ts +10 -0
- package/lib/rules/regexEmptyLazyQuantifiers.js +92 -0
- package/lib/rules/regexEmptyLookaroundsAssertions.d.ts +10 -0
- package/lib/rules/regexEmptyLookaroundsAssertions.js +68 -0
- package/lib/rules/regexEmptyStringLiterals.d.ts +10 -0
- package/lib/rules/regexEmptyStringLiterals.js +66 -0
- package/lib/rules/regexEscapeBackspaces.d.ts +10 -0
- package/lib/rules/regexEscapeBackspaces.js +69 -0
- package/lib/rules/regexExecutors.d.ts +10 -0
- package/lib/rules/regexExecutors.js +58 -0
- package/lib/rules/regexGraphemeStringLiterals.d.ts +10 -0
- package/lib/rules/regexGraphemeStringLiterals.js +51 -0
- package/lib/rules/regexHexadecimalEscapes.d.ts +10 -0
- package/lib/rules/regexHexadecimalEscapes.js +71 -0
- package/lib/rules/regexIgnoreCaseFlags.d.ts +10 -0
- package/lib/rules/regexIgnoreCaseFlags.js +145 -0
- package/lib/rules/regexInvisibleCharacters.d.ts +10 -0
- package/lib/rules/regexInvisibleCharacters.js +90 -0
- package/lib/rules/regexLetterCasing.d.ts +10 -0
- package/lib/rules/regexLetterCasing.js +186 -0
- package/lib/rules/regexLiterals.d.ts +10 -0
- package/lib/rules/regexLiterals.js +92 -0
- package/lib/rules/regexLookaroundAssertions.d.ts +10 -0
- package/lib/rules/regexLookaroundAssertions.js +163 -0
- package/lib/rules/regexLookaroundQuantifierOptimizations.d.ts +10 -0
- package/lib/rules/regexLookaroundQuantifierOptimizations.js +94 -0
- package/lib/rules/regexMatchNotation.d.ts +10 -0
- package/lib/rules/regexMatchNotation.js +139 -0
- package/lib/rules/regexMisleadingCapturingGroups.d.ts +10 -0
- package/lib/rules/regexMisleadingCapturingGroups.js +229 -0
- package/lib/rules/regexMisleadingQuantifiers.d.ts +10 -0
- package/lib/rules/regexMisleadingQuantifiers.js +78 -0
- package/lib/rules/regexMisleadingUnicodeCharacters.d.ts +10 -0
- package/lib/rules/regexMisleadingUnicodeCharacters.js +203 -0
- package/lib/rules/regexNamedBackreferences.d.ts +10 -0
- package/lib/rules/regexNamedBackreferences.js +48 -0
- package/lib/rules/regexNamedCaptureGroups.d.ts +9 -0
- package/lib/rules/regexNamedCaptureGroups.js +67 -0
- package/lib/rules/regexNamedReplacements.d.ts +10 -0
- package/lib/rules/regexNamedReplacements.js +93 -0
- package/lib/rules/regexNonStandardFlags.d.ts +10 -0
- package/lib/rules/regexNonStandardFlags.js +66 -0
- package/lib/rules/regexObscureRanges.d.ts +10 -0
- package/lib/rules/regexObscureRanges.js +93 -0
- package/lib/rules/regexOctalEscapes.d.ts +10 -0
- package/lib/rules/regexOctalEscapes.js +70 -0
- package/lib/rules/regexPlusQuantifiers.d.ts +10 -0
- package/lib/rules/regexPlusQuantifiers.js +68 -0
- package/lib/rules/regexPredefinedAssertions.d.ts +10 -0
- package/lib/rules/regexPredefinedAssertions.js +127 -0
- package/lib/rules/regexQuestionQuantifiers.d.ts +10 -0
- package/lib/rules/regexQuestionQuantifiers.js +104 -0
- package/lib/rules/regexRepeatQuantifiers.d.ts +10 -0
- package/lib/rules/regexRepeatQuantifiers.js +96 -0
- package/lib/rules/regexResultArrayGroups.d.ts +10 -0
- package/lib/rules/regexResultArrayGroups.js +187 -0
- package/lib/rules/regexSetOperationOptimizations.d.ts +10 -0
- package/lib/rules/regexSetOperationOptimizations.js +177 -0
- package/lib/rules/regexStandaloneBackslashes.d.ts +10 -0
- package/lib/rules/regexStandaloneBackslashes.js +59 -0
- package/lib/rules/regexStarQuantifiers.d.ts +10 -0
- package/lib/rules/regexStarQuantifiers.js +68 -0
- package/lib/rules/regexSuperLinearBacktracking.d.ts +10 -0
- package/lib/rules/regexSuperLinearBacktracking.js +98 -0
- package/lib/rules/regexSuperLinearMoves.d.ts +10 -0
- package/lib/rules/regexSuperLinearMoves.js +142 -0
- package/lib/rules/regexTestMethods.d.ts +10 -0
- package/lib/rules/regexTestMethods.js +83 -0
- package/lib/rules/regexUnicodeCodepointEscapes.d.ts +10 -0
- package/lib/rules/regexUnicodeCodepointEscapes.js +107 -0
- package/lib/rules/regexUnicodeEscapes.d.ts +9 -0
- package/lib/rules/regexUnicodeEscapes.js +97 -0
- package/lib/rules/regexUnicodeFlag.d.ts +9 -0
- package/lib/rules/regexUnicodeFlag.js +97 -0
- package/lib/rules/regexUnicodeProperties.d.ts +10 -0
- package/lib/rules/regexUnicodeProperties.js +133 -0
- package/lib/rules/regexUnnecessaryAssertions.d.ts +10 -0
- package/lib/rules/regexUnnecessaryAssertions.js +223 -0
- package/lib/rules/regexUnnecessaryBackreferences.d.ts +10 -0
- package/lib/rules/regexUnnecessaryBackreferences.js +125 -0
- package/lib/rules/regexUnnecessaryCharacterClasses.d.ts +10 -0
- package/lib/rules/regexUnnecessaryCharacterClasses.js +74 -0
- package/lib/rules/regexUnnecessaryCharacterRanges.d.ts +10 -0
- package/lib/rules/regexUnnecessaryCharacterRanges.js +108 -0
- package/lib/rules/regexUnnecessaryDisjunctions.d.ts +10 -0
- package/lib/rules/regexUnnecessaryDisjunctions.js +118 -0
- package/lib/rules/regexUnnecessaryDollarReplacements.d.ts +10 -0
- package/lib/rules/regexUnnecessaryDollarReplacements.js +144 -0
- package/lib/rules/regexUnnecessaryEscapes.d.ts +10 -0
- package/lib/rules/regexUnnecessaryEscapes.js +136 -0
- package/lib/rules/regexUnnecessaryLookaroundAssertions.d.ts +10 -0
- package/lib/rules/regexUnnecessaryLookaroundAssertions.js +80 -0
- package/lib/rules/regexUnnecessaryNestedAssertions.d.ts +10 -0
- package/lib/rules/regexUnnecessaryNestedAssertions.js +198 -0
- package/lib/rules/regexUnnecessaryNestedQuantifiers.d.ts +10 -0
- package/lib/rules/regexUnnecessaryNestedQuantifiers.js +93 -0
- package/lib/rules/regexUnnecessaryNonCapturingGroups.d.ts +10 -0
- package/lib/rules/regexUnnecessaryNonCapturingGroups.js +104 -0
- package/lib/rules/regexUnnecessaryNumericQuantifiers.d.ts +10 -0
- package/lib/rules/regexUnnecessaryNumericQuantifiers.js +69 -0
- package/lib/rules/regexUnnecessaryOptionalAssertions.d.ts +10 -0
- package/lib/rules/regexUnnecessaryOptionalAssertions.js +137 -0
- package/lib/rules/regexUnnecessaryReferentialBackreferences.d.ts +10 -0
- package/lib/rules/regexUnnecessaryReferentialBackreferences.js +123 -0
- package/lib/rules/regexUnnecessarySetOperands.d.ts +10 -0
- package/lib/rules/regexUnnecessarySetOperands.js +136 -0
- package/lib/rules/regexUnusedCapturingGroups.d.ts +10 -0
- package/lib/rules/regexUnusedCapturingGroups.js +69 -0
- package/lib/rules/regexUnusedFlags.d.ts +10 -0
- package/lib/rules/regexUnusedFlags.js +116 -0
- package/lib/rules/regexUnusedLazyQuantifiers.d.ts +10 -0
- package/lib/rules/regexUnusedLazyQuantifiers.js +63 -0
- package/lib/rules/regexUnusedQuantifiers.d.ts +10 -0
- package/lib/rules/regexUnusedQuantifiers.js +63 -0
- package/lib/rules/regexValidity.d.ts +10 -0
- package/lib/rules/regexValidity.js +146 -0
- package/lib/rules/regexWordMatchers.d.ts +10 -0
- package/lib/rules/regexWordMatchers.js +146 -0
- package/lib/rules/regexZeroQuantifiers.d.ts +10 -0
- package/lib/rules/regexZeroQuantifiers.js +60 -0
- package/lib/rules/responseJsonMethods.d.ts +10 -0
- package/lib/rules/responseJsonMethods.js +51 -0
- package/lib/rules/restrictedIdentifiers.d.ts +13 -0
- package/lib/rules/restrictedIdentifiers.js +41 -0
- package/lib/rules/returnAssignments.d.ts +5 -2
- package/lib/rules/returnAssignments.js +35 -48
- package/lib/rules/returnThisTypes.d.ts +10 -0
- package/lib/rules/returnThisTypes.js +94 -0
- package/lib/rules/ruleCreator.d.ts +3 -0
- package/lib/rules/ruleCreator.js +17 -0
- package/lib/rules/selfAssignments.d.ts +5 -2
- package/lib/rules/selfAssignments.js +27 -43
- package/lib/rules/sequences.d.ts +5 -2
- package/lib/rules/sequences.js +26 -33
- package/lib/rules/setSizeLengthChecks.d.ts +10 -0
- package/lib/rules/setSizeLengthChecks.js +48 -0
- package/lib/rules/setterReturns.d.ts +10 -0
- package/lib/rules/setterReturns.js +41 -0
- package/lib/rules/shadowedRestrictedNames.d.ts +5 -2
- package/lib/rules/shadowedRestrictedNames.js +64 -92
- package/lib/rules/singleVariableDeclarations.d.ts +10 -0
- package/lib/rules/singleVariableDeclarations.js +36 -0
- package/lib/rules/sizeComparisonOperators.d.ts +16 -0
- package/lib/rules/sizeComparisonOperators.js +148 -0
- package/lib/rules/sparseArrays.d.ts +5 -2
- package/lib/rules/sparseArrays.js +41 -53
- package/lib/rules/staticMemberOnlyClasses.d.ts +10 -0
- package/lib/rules/staticMemberOnlyClasses.js +77 -0
- package/lib/rules/stringCaseMismatches.d.ts +10 -0
- package/lib/rules/stringCaseMismatches.js +58 -0
- package/lib/rules/stringCodePoints.d.ts +10 -0
- package/lib/rules/stringCodePoints.js +50 -0
- package/lib/rules/stringSliceMethods.d.ts +10 -0
- package/lib/rules/stringSliceMethods.js +47 -0
- package/lib/rules/stringStartsEndsWith.d.ts +10 -0
- package/lib/rules/stringStartsEndsWith.js +79 -0
- package/lib/rules/structuredCloneMethods.d.ts +10 -0
- package/lib/rules/structuredCloneMethods.js +39 -0
- package/lib/rules/symbolDescriptions.d.ts +5 -2
- package/lib/rules/symbolDescriptions.js +30 -40
- package/lib/rules/thisAliases.d.ts +10 -0
- package/lib/rules/thisAliases.js +44 -0
- package/lib/rules/thisBeforeSuper.d.ts +10 -0
- package/lib/rules/thisBeforeSuper.js +86 -0
- package/lib/rules/throwErrors.d.ts +10 -0
- package/lib/rules/throwErrors.js +61 -0
- package/lib/rules/topLevelAwaits.d.ts +10 -0
- package/lib/rules/topLevelAwaits.js +49 -0
- package/lib/rules/tripleSlashReferenceValidity.d.ts +10 -0
- package/lib/rules/tripleSlashReferenceValidity.js +54 -0
- package/lib/rules/tripleSlashReferences.d.ts +10 -0
- package/lib/rules/tripleSlashReferences.js +34 -0
- package/lib/rules/tsComments.d.ts +22 -0
- package/lib/rules/tsComments.js +130 -0
- package/lib/rules/tslintComments.d.ts +10 -0
- package/lib/rules/tslintComments.js +36 -0
- package/lib/rules/typeAssertionStyles.d.ts +10 -0
- package/lib/rules/typeAssertionStyles.js +32 -0
- package/lib/rules/typeofComparisons.d.ts +5 -2
- package/lib/rules/typeofComparisons.js +50 -71
- package/lib/rules/unassignedVariables.d.ts +5 -2
- package/lib/rules/unassignedVariables.js +35 -54
- package/lib/rules/undefinedTypeofChecks.d.ts +10 -0
- package/lib/rules/undefinedTypeofChecks.js +41 -0
- package/lib/rules/undefinedVariables.d.ts +5 -2
- package/lib/rules/undefinedVariables.js +37 -75
- package/lib/rules/unicodeBOMs.d.ts +5 -2
- package/lib/rules/unicodeBOMs.js +37 -46
- package/lib/rules/unnecessaryBinds.d.ts +10 -0
- package/lib/rules/unnecessaryBinds.js +78 -0
- package/lib/rules/unnecessaryBlocks.d.ts +5 -2
- package/lib/rules/unnecessaryBlocks.js +58 -74
- package/lib/rules/unnecessaryBooleanCasts.d.ts +10 -0
- package/lib/rules/unnecessaryBooleanCasts.js +58 -0
- package/lib/rules/unnecessaryCatches.d.ts +5 -2
- package/lib/rules/unnecessaryCatches.js +46 -67
- package/lib/rules/unnecessaryComparisons.d.ts +10 -0
- package/lib/rules/unnecessaryComparisons.js +300 -0
- package/lib/rules/unnecessaryConcatenation.d.ts +5 -2
- package/lib/rules/unnecessaryConcatenation.js +26 -37
- package/lib/rules/unnecessaryEscapes.d.ts +10 -0
- package/lib/rules/unnecessaryEscapes.js +134 -0
- package/lib/rules/unnecessaryMathClamps.d.ts +10 -0
- package/lib/rules/unnecessaryMathClamps.js +114 -0
- package/lib/rules/unnecessaryNumericFractions.d.ts +10 -0
- package/lib/rules/unnecessaryNumericFractions.js +50 -0
- package/lib/rules/unnecessaryRenames.d.ts +10 -0
- package/lib/rules/unnecessaryRenames.js +92 -0
- package/lib/rules/unnecessaryTernaries.d.ts +10 -0
- package/lib/rules/unnecessaryTernaries.js +88 -0
- package/lib/rules/unnecessaryUseStricts.d.ts +10 -0
- package/lib/rules/unnecessaryUseStricts.js +40 -0
- package/lib/rules/unsafeNegations.d.ts +5 -2
- package/lib/rules/unsafeNegations.js +36 -49
- package/lib/rules/utils/collectAccessorPairs.d.ts +12 -0
- package/lib/rules/utils/collectAccessorPairs.js +29 -0
- package/lib/rules/utils/countCommentsInRange.d.ts +3 -0
- package/lib/rules/utils/countCommentsInRange.js +12 -0
- package/lib/rules/utils/discriminateAnyType.d.ts +12 -9
- package/lib/rules/utils/discriminateAnyType.js +33 -37
- package/lib/rules/utils/equalityOperators.d.ts +9 -0
- package/lib/rules/utils/equalityOperators.js +36 -0
- package/lib/rules/utils/forEachReturnStatement.d.ts +3 -0
- package/lib/rules/utils/forEachReturnStatement.js +29 -0
- package/lib/rules/utils/formatReportedType.d.ts +4 -0
- package/lib/rules/utils/formatReportedType.js +9 -0
- package/lib/rules/utils/getConstrainedType.d.ts +2 -2
- package/lib/rules/utils/getConstrainedType.js +7 -3
- package/lib/rules/utils/getFunctionName.d.ts +3 -0
- package/lib/rules/utils/getFunctionName.js +16 -0
- package/lib/rules/utils/getRegExpConstruction.d.ts +10 -0
- package/lib/rules/utils/getRegExpConstruction.js +26 -0
- package/lib/rules/utils/getRegExpLiteralDetails.d.ts +7 -0
- package/lib/rules/utils/getRegExpLiteralDetails.js +13 -0
- package/lib/rules/utils/getThisExpression.d.ts +2 -2
- package/lib/rules/utils/getThisExpression.js +14 -22
- package/lib/rules/utils/isArrayOrTupleTypeAtLocation.d.ts +3 -0
- package/lib/rules/utils/isArrayOrTupleTypeAtLocation.js +13 -0
- package/lib/rules/utils/isBuiltinSymbolLike.d.ts +3 -0
- package/lib/rules/utils/isBuiltinSymbolLike.js +33 -0
- package/lib/rules/utils/isDirectEqualityCheck.d.ts +4 -0
- package/lib/rules/utils/isDirectEqualityCheck.js +29 -0
- package/lib/rules/utils/isErrorSubclass.d.ts +3 -0
- package/lib/rules/utils/isErrorSubclass.js +27 -0
- package/lib/rules/utils/isInBooleanContext.d.ts +3 -0
- package/lib/rules/utils/isInBooleanContext.js +22 -0
- package/lib/rules/utils/isTypeRecursive.d.ts +1 -1
- package/lib/rules/utils/isTypeRecursive.js +6 -4
- package/lib/rules/utils/isUnsafeAssignment.d.ts +3 -2
- package/lib/rules/utils/isUnsafeAssignment.js +40 -72
- package/lib/rules/utils/operators.d.ts +4 -4
- package/lib/rules/utils/operators.js +31 -33
- package/lib/rules/utils/parseRegexpAst.d.ts +2 -0
- package/lib/rules/utils/parseRegexpAst.js +17 -0
- package/lib/rules/utils/parseRegexpAstFull.d.ts +3 -0
- package/lib/rules/utils/parseRegexpAstFull.js +18 -0
- package/lib/rules/utils/skipParentheses.d.ts +3 -0
- package/lib/rules/utils/skipParentheses.js +10 -0
- package/lib/rules/variableDeletions.d.ts +5 -2
- package/lib/rules/variableDeletions.js +33 -38
- package/lib/rules/voidOperator.d.ts +5 -2
- package/lib/rules/voidOperator.js +32 -35
- package/lib/rules/withStatements.d.ts +5 -2
- package/lib/rules/withStatements.js +28 -35
- package/lib/rules/wrapperObjects.d.ts +10 -0
- package/lib/rules/wrapperObjects.js +36 -0
- package/package.json +17 -11
- package/lib/collectReferencedFilePaths.d.ts +0 -3
- package/lib/collectReferencedFilePaths.js +0 -22
- package/lib/convertTypeScriptDiagnosticToLanguageFileDiagnostic.d.ts +0 -14
- package/lib/convertTypeScriptDiagnosticToLanguageFileDiagnostic.js +0 -129
- package/lib/createTypeScriptFileFromProgram.d.ts +0 -6
- package/lib/createTypeScriptFileFromProgram.js +0 -58
- package/lib/createTypeScriptFileFromProjectService.d.ts +0 -7
- package/lib/createTypeScriptFileFromProjectService.js +0 -14
- package/lib/directives/parseDirectivesFromTypeScriptFile.d.ts +0 -13
- package/lib/directives/parseDirectivesFromTypeScriptFile.js +0 -29
- package/lib/directives/parseDirectivesFromTypeScriptFile.test.d.ts +0 -2
- package/lib/directives/parseDirectivesFromTypeScriptFile.test.js +0 -92
- package/lib/getFirstEnumValues.d.ts +0 -36
- package/lib/getFirstEnumValues.js +0 -52
- package/lib/getFirstEnumValues.test.d.ts +0 -2
- package/lib/getFirstEnumValues.test.js +0 -46
- package/lib/getTSNodeRange.d.ts +0 -4
- package/lib/getTSNodeRange.js +0 -7
- package/lib/language.d.ts +0 -9
- package/lib/language.js +0 -20
- package/lib/nodes.d.ts +0 -143
- package/lib/nodes.js +0 -2
- package/lib/normalizeRange.d.ts +0 -4
- package/lib/normalizeRange.js +0 -14
- package/lib/prepareTypeScriptBasedLanguage.d.ts +0 -11
- package/lib/prepareTypeScriptBasedLanguage.js +0 -59
- package/lib/prepareTypeScriptFile.d.ts +0 -12
- package/lib/prepareTypeScriptFile.js +0 -13
- package/lib/rules/anyReturns.test.d.ts +0 -2
- package/lib/rules/anyReturns.test.js +0 -648
- package/lib/rules/asyncPromiseExecutors.test.d.ts +0 -2
- package/lib/rules/asyncPromiseExecutors.test.js +0 -72
- package/lib/rules/caseDeclarations.test.d.ts +0 -2
- package/lib/rules/caseDeclarations.test.js +0 -228
- package/lib/rules/caseDuplicates.test.d.ts +0 -2
- package/lib/rules/caseDuplicates.test.js +0 -308
- package/lib/rules/chainedAssignments.test.d.ts +0 -2
- package/lib/rules/chainedAssignments.test.js +0 -263
- package/lib/rules/classAssignments.test.d.ts +0 -2
- package/lib/rules/classAssignments.test.js +0 -157
- package/lib/rules/consecutiveNonNullAssertions.test.d.ts +0 -2
- package/lib/rules/consecutiveNonNullAssertions.test.js +0 -33
- package/lib/rules/constantAssignments.test.d.ts +0 -2
- package/lib/rules/constantAssignments.test.js +0 -222
- package/lib/rules/constructorReturns.test.d.ts +0 -2
- package/lib/rules/constructorReturns.test.js +0 -97
- package/lib/rules/debuggerStatements.test.d.ts +0 -2
- package/lib/rules/debuggerStatements.test.js +0 -81
- package/lib/rules/defaultCaseLast.test.d.ts +0 -2
- package/lib/rules/defaultCaseLast.test.js +0 -196
- package/lib/rules/duplicateArguments.test.d.ts +0 -2
- package/lib/rules/duplicateArguments.test.js +0 -140
- package/lib/rules/elseIfDuplicates.test.d.ts +0 -2
- package/lib/rules/elseIfDuplicates.test.js +0 -177
- package/lib/rules/emptyBlocks.test.d.ts +0 -2
- package/lib/rules/emptyBlocks.test.js +0 -136
- package/lib/rules/emptyDestructures.test.d.ts +0 -2
- package/lib/rules/emptyDestructures.test.js +0 -187
- package/lib/rules/emptyStaticBlocks.test.d.ts +0 -2
- package/lib/rules/emptyStaticBlocks.test.js +0 -168
- package/lib/rules/exceptionAssignments.test.d.ts +0 -2
- package/lib/rules/exceptionAssignments.test.js +0 -265
- package/lib/rules/finallyStatementSafety.test.d.ts +0 -2
- package/lib/rules/finallyStatementSafety.test.js +0 -307
- package/lib/rules/forDirections.test.d.ts +0 -2
- package/lib/rules/forDirections.test.js +0 -125
- package/lib/rules/forInArrays.test.d.ts +0 -2
- package/lib/rules/forInArrays.test.js +0 -25
- package/lib/rules/functionAssignments.test.d.ts +0 -2
- package/lib/rules/functionAssignments.test.js +0 -210
- package/lib/rules/functionCurryingRedundancy.test.d.ts +0 -2
- package/lib/rules/functionCurryingRedundancy.test.js +0 -172
- package/lib/rules/functionNewCalls.test.d.ts +0 -2
- package/lib/rules/functionNewCalls.test.js +0 -116
- package/lib/rules/generatorFunctionYields.test.d.ts +0 -2
- package/lib/rules/generatorFunctionYields.test.js +0 -152
- package/lib/rules/globalAssignments.test.d.ts +0 -2
- package/lib/rules/globalAssignments.test.js +0 -216
- package/lib/rules/globalObjectCalls.test.d.ts +0 -2
- package/lib/rules/globalObjectCalls.test.js +0 -94
- package/lib/rules/namespaceDeclarations.test.d.ts +0 -2
- package/lib/rules/namespaceDeclarations.test.js +0 -41
- package/lib/rules/negativeZeroComparisons.test.d.ts +0 -2
- package/lib/rules/negativeZeroComparisons.test.js +0 -210
- package/lib/rules/newExpressions.test.d.ts +0 -2
- package/lib/rules/newExpressions.test.js +0 -80
- package/lib/rules/newNativeNonConstructors.test.d.ts +0 -2
- package/lib/rules/newNativeNonConstructors.test.js +0 -95
- package/lib/rules/nonOctalDecimalEscapes.test.d.ts +0 -2
- package/lib/rules/nonOctalDecimalEscapes.test.js +0 -70
- package/lib/rules/numericLiteralParsing.test.d.ts +0 -2
- package/lib/rules/numericLiteralParsing.test.js +0 -100
- package/lib/rules/objectCalls.test.d.ts +0 -2
- package/lib/rules/objectCalls.test.js +0 -172
- package/lib/rules/objectHasOwns.test.d.ts +0 -2
- package/lib/rules/objectHasOwns.test.js +0 -112
- package/lib/rules/objectKeyDuplicates.test.d.ts +0 -2
- package/lib/rules/objectKeyDuplicates.test.js +0 -180
- package/lib/rules/objectProto.test.d.ts +0 -2
- package/lib/rules/objectProto.test.js +0 -97
- package/lib/rules/objectPrototypeBuiltIns.test.d.ts +0 -2
- package/lib/rules/objectPrototypeBuiltIns.test.js +0 -146
- package/lib/rules/octalEscapes.test.d.ts +0 -2
- package/lib/rules/octalEscapes.test.js +0 -214
- package/lib/rules/octalNumbers.test.d.ts +0 -2
- package/lib/rules/octalNumbers.test.js +0 -246
- package/lib/rules/returnAssignments.test.d.ts +0 -2
- package/lib/rules/returnAssignments.test.js +0 -186
- package/lib/rules/ruleTester.d.ts +0 -3
- package/lib/rules/ruleTester.js +0 -8
- package/lib/rules/selfAssignments.test.d.ts +0 -2
- package/lib/rules/selfAssignments.test.js +0 -67
- package/lib/rules/selfComparisons.d.ts +0 -7
- package/lib/rules/selfComparisons.js +0 -42
- package/lib/rules/selfComparisons.test.d.ts +0 -2
- package/lib/rules/selfComparisons.test.js +0 -298
- package/lib/rules/sequences.test.d.ts +0 -2
- package/lib/rules/sequences.test.js +0 -49
- package/lib/rules/shadowedRestrictedNames.test.d.ts +0 -2
- package/lib/rules/shadowedRestrictedNames.test.js +0 -148
- package/lib/rules/sparseArrays.test.d.ts +0 -2
- package/lib/rules/sparseArrays.test.js +0 -111
- package/lib/rules/symbolDescriptions.test.d.ts +0 -2
- package/lib/rules/symbolDescriptions.test.js +0 -90
- package/lib/rules/typeofComparisons.test.d.ts +0 -2
- package/lib/rules/typeofComparisons.test.js +0 -86
- package/lib/rules/unassignedVariables.test.d.ts +0 -2
- package/lib/rules/unassignedVariables.test.js +0 -73
- package/lib/rules/undefinedVariables.test.d.ts +0 -2
- package/lib/rules/undefinedVariables.test.js +0 -81
- package/lib/rules/unicodeBOMs.test.d.ts +0 -2
- package/lib/rules/unicodeBOMs.test.js +0 -67
- package/lib/rules/unnecessaryBlocks.test.d.ts +0 -2
- package/lib/rules/unnecessaryBlocks.test.js +0 -148
- package/lib/rules/unnecessaryCatches.test.d.ts +0 -2
- package/lib/rules/unnecessaryCatches.test.js +0 -211
- package/lib/rules/unnecessaryConcatenation.test.d.ts +0 -2
- package/lib/rules/unnecessaryConcatenation.test.js +0 -88
- package/lib/rules/unsafeNegations.test.d.ts +0 -2
- package/lib/rules/unsafeNegations.test.js +0 -64
- package/lib/rules/variableDeletions.test.d.ts +0 -2
- package/lib/rules/variableDeletions.test.js +0 -76
- package/lib/rules/voidOperator.test.d.ts +0 -2
- package/lib/rules/voidOperator.test.js +0 -99
- package/lib/rules/withStatements.test.d.ts +0 -2
- package/lib/rules/withStatements.test.js +0 -27
- package/lib/utils/declarationIncludesGlobal.d.ts +0 -3
- package/lib/utils/declarationIncludesGlobal.js +0 -6
- package/lib/utils/declarationsIncludeGlobal.d.ts +0 -3
- package/lib/utils/declarationsIncludeGlobal.js +0 -5
- package/lib/utils/getDeclarationsIfGlobal.d.ts +0 -3
- package/lib/utils/getDeclarationsIfGlobal.js +0 -8
- package/lib/utils/getModifyingReferences.d.ts +0 -9
- package/lib/utils/getModifyingReferences.js +0 -43
- package/lib/utils/hasSameTokens.d.ts +0 -3
- package/lib/utils/hasSameTokens.js +0 -31
- package/lib/utils/isFunction.d.ts +0 -3
- package/lib/utils/isFunction.js +0 -6
- package/lib/utils/isGlobalDeclaration.d.ts +0 -3
- package/lib/utils/isGlobalDeclaration.js +0 -5
- package/lib/utils/isGlobalDeclarationOfName.d.ts +0 -6
- package/lib/utils/isGlobalDeclarationOfName.js +0 -36
- package/lib/utils/isGlobalVariable.d.ts +0 -9
- package/lib/utils/isGlobalVariable.js +0 -22
- package/lib/utils/unwrapParentParenthesizedExpressions.d.ts +0 -3
- package/lib/utils/unwrapParentParenthesizedExpressions.js +0 -7
- package/lib/utils/unwrapParenthesizedExpression.d.ts +0 -3
- package/lib/utils/unwrapParenthesizedExpression.js +0 -7
package/lib/plugin.d.ts
CHANGED
|
@@ -1,233 +1,2160 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
},
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
},
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
},
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
},
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
},
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
},
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
},
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
},
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
}
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
1
|
+
import * as _flint_fyi_core0 from "@flint.fyi/core";
|
|
2
|
+
import * as zod_v40 from "zod/v4";
|
|
3
|
+
import * as zod_v4_core0 from "zod/v4/core";
|
|
4
|
+
|
|
5
|
+
//#region src/plugin.d.ts
|
|
6
|
+
declare const ts: _flint_fyi_core0.Plugin<_flint_fyi_core0.RuleAbout, "javascript" | "all" | "typescript", [_flint_fyi_core0.Rule<{
|
|
7
|
+
readonly description: "Reports getter and setter accessors for the same property that are not adjacent.";
|
|
8
|
+
readonly id: "accessorPairGroups";
|
|
9
|
+
readonly presets: ["stylistic", "stylisticStrict"];
|
|
10
|
+
} & {
|
|
11
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
12
|
+
url: string;
|
|
13
|
+
}, object, object, "notGrouped", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
14
|
+
readonly description: "Reports mismatched types between getter and setter accessor pairs.";
|
|
15
|
+
readonly id: "accessorPairTypes";
|
|
16
|
+
readonly presets: ["logical", "logicalStrict"];
|
|
17
|
+
} & {
|
|
18
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
19
|
+
url: string;
|
|
20
|
+
}, object, object, "mismatchedTypes", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
21
|
+
readonly description: "Reports recursive access to this within getters and setters.";
|
|
22
|
+
readonly id: "accessorThisRecursion";
|
|
23
|
+
readonly presets: ["logical", "logicalStrict"];
|
|
24
|
+
} & {
|
|
25
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
26
|
+
url: string;
|
|
27
|
+
}, object, object, "noGetterRecursion" | "noSetterRecursion", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
28
|
+
readonly description: "Reports calling a function with a value typed as `any` as an argument.";
|
|
29
|
+
readonly id: "anyArguments";
|
|
30
|
+
readonly presets: ["logical", "logicalStrict"];
|
|
31
|
+
} & {
|
|
32
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
33
|
+
url: string;
|
|
34
|
+
}, object, object, "unsafeArgument" | "unsafeSpread" | "unsafeTupleSpread", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
35
|
+
readonly description: "Reports assigning a value with type `any` to variables and properties.";
|
|
36
|
+
readonly id: "anyAssignments";
|
|
37
|
+
readonly presets: ["logical", "logicalStrict"];
|
|
38
|
+
} & {
|
|
39
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
40
|
+
url: string;
|
|
41
|
+
}, object, object, "unsafeArrayDestructure" | "unsafeArrayPatternFromTuple" | "unsafeArraySpread" | "unsafeAssignment" | "unsafeAssignmentToVariable" | "unsafeObjectPattern", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
42
|
+
readonly description: "Reports calling a value with type `any`.";
|
|
43
|
+
readonly id: "anyCalls";
|
|
44
|
+
readonly presets: ["logical", "logicalStrict"];
|
|
45
|
+
} & {
|
|
46
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
47
|
+
url: string;
|
|
48
|
+
}, object, object, "unsafeCall" | "unsafeNew" | "unsafeTemplateTag", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
49
|
+
readonly description: "Reports member access on a value with type `any`.";
|
|
50
|
+
readonly id: "anyMemberAccess";
|
|
51
|
+
readonly presets: ["logical", "logicalStrict"];
|
|
52
|
+
} & {
|
|
53
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
54
|
+
url: string;
|
|
55
|
+
}, object, object, "unsafeComputedMemberAccess" | "unsafeMemberAccess", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
56
|
+
readonly description: "Reports returning a value with type `any` from a function.";
|
|
57
|
+
readonly id: "anyReturns";
|
|
58
|
+
readonly presets: ["logical", "logicalStrict"];
|
|
59
|
+
} & {
|
|
60
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
61
|
+
url: string;
|
|
62
|
+
}, object, object, "unsafeReturn" | "unsafeReturnAssignment" | "unsafeReturnThis", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
63
|
+
readonly description: "Reports using the arguments object instead of rest parameters.";
|
|
64
|
+
readonly id: "arguments";
|
|
65
|
+
readonly presets: ["logical", "logicalStrict"];
|
|
66
|
+
} & {
|
|
67
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
68
|
+
url: string;
|
|
69
|
+
}, object, object, "preferRestParameters", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
70
|
+
readonly description: "Reports missing return statements in callbacks of array methods.";
|
|
71
|
+
readonly id: "arrayCallbackReturns";
|
|
72
|
+
readonly presets: ["javascript"];
|
|
73
|
+
} & {
|
|
74
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
75
|
+
url: string;
|
|
76
|
+
}, object, object, "missingReturn", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
77
|
+
readonly description: "Reports using the `Array` constructor to create arrays instead of array literal syntax.";
|
|
78
|
+
readonly id: "arrayConstructors";
|
|
79
|
+
readonly presets: ["logical", "logicalStrict"];
|
|
80
|
+
} & {
|
|
81
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
82
|
+
url: string;
|
|
83
|
+
}, object, object, "preferLiteral", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
84
|
+
readonly description: "Reports using `.length` or `Infinity` as the `deleteCount` or `skipCount` argument of `Array#splice()` or `Array#toSpliced()`.";
|
|
85
|
+
readonly id: "arrayDeleteUnnecessaryCounts";
|
|
86
|
+
readonly presets: ["stylistic", "stylisticStrict"];
|
|
87
|
+
} & {
|
|
88
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
89
|
+
url: string;
|
|
90
|
+
}, object, object, "unnecessaryCount", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
91
|
+
readonly description: "Reports using the `delete` operator on array values.";
|
|
92
|
+
readonly id: "arrayElementDeletions";
|
|
93
|
+
readonly presets: ["logical", "logicalStrict"];
|
|
94
|
+
} & {
|
|
95
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
96
|
+
url: string;
|
|
97
|
+
}, object, object, "noArrayDelete", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
98
|
+
readonly description: "Reports array methods with callbacks that will never be invoked on arrays with empty slots.";
|
|
99
|
+
readonly id: "arrayEmptyCallbackSlots";
|
|
100
|
+
readonly presets: ["logical", "logicalStrict"];
|
|
101
|
+
} & {
|
|
102
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
103
|
+
url: string;
|
|
104
|
+
}, object, object, "neverInvoked", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
105
|
+
readonly description: "Reports inconsistent styles for checking element existence using index methods.";
|
|
106
|
+
readonly id: "arrayExistenceChecksConsistency";
|
|
107
|
+
readonly presets: ["stylistic", "stylisticStrict"];
|
|
108
|
+
} & {
|
|
109
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
110
|
+
url: string;
|
|
111
|
+
}, object, object, "preferEqualsMinusOne" | "preferNotEqualsMinusOne", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
112
|
+
readonly description: "Reports using `.filter()` when only the first or last matching element is needed.";
|
|
113
|
+
readonly id: "arrayFilteredFinds";
|
|
114
|
+
readonly presets: ["logical", "logicalStrict"];
|
|
115
|
+
} & {
|
|
116
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
117
|
+
url: string;
|
|
118
|
+
}, object, object, "preferFind" | "preferFindLast", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
119
|
+
readonly description: "Reports using `.filter()[0]` instead of `.find()` when looking for a single element.";
|
|
120
|
+
readonly id: "arrayFinds";
|
|
121
|
+
readonly presets: ["stylistic", "stylisticStrict"];
|
|
122
|
+
} & {
|
|
123
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
124
|
+
url: string;
|
|
125
|
+
}, object, object, "preferFind", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
126
|
+
readonly description: "Reports using `.map().flat()` when `.flatMap()` can be used.";
|
|
127
|
+
readonly id: "arrayFlatMapMethods";
|
|
128
|
+
readonly presets: ["stylistic", "stylisticStrict"];
|
|
129
|
+
} & {
|
|
130
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
131
|
+
url: string;
|
|
132
|
+
}, object, object, "preferFlatMap", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
133
|
+
readonly description: "Reports legacy techniques to flatten arrays instead of using `.flat()`.";
|
|
134
|
+
readonly id: "arrayFlatMethods";
|
|
135
|
+
readonly presets: ["stylistic", "stylisticStrict"];
|
|
136
|
+
} & {
|
|
137
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
138
|
+
url: string;
|
|
139
|
+
}, object, object, "preferFlat", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
140
|
+
readonly description: "Reports using `1` as the depth argument of `.flat()` since it is the default.";
|
|
141
|
+
readonly id: "arrayFlatUnnecessaryDepths";
|
|
142
|
+
readonly presets: ["stylistic", "stylisticStrict"];
|
|
143
|
+
} & {
|
|
144
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
145
|
+
url: string;
|
|
146
|
+
}, object, object, "unnecessaryDepth", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
147
|
+
readonly description: "Reports using `.indexOf()` comparisons that can be replaced with `.includes()`.";
|
|
148
|
+
readonly id: "arrayIncludes";
|
|
149
|
+
readonly presets: ["stylistic", "stylisticStrict"];
|
|
150
|
+
} & {
|
|
151
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
152
|
+
url: string;
|
|
153
|
+
}, object, object, "preferIncludes", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
154
|
+
readonly description: "Reports using `Array#some()` with simple equality checks that can be replaced with `.includes()`.";
|
|
155
|
+
readonly id: "arrayIncludesMethods";
|
|
156
|
+
readonly presets: ["stylistic", "stylisticStrict"];
|
|
157
|
+
} & {
|
|
158
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
159
|
+
url: string;
|
|
160
|
+
}, object, object, "preferIncludes", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
161
|
+
readonly description: "Reports using `.findIndex()` or `.findLastIndex()` with simple equality checks that can be replaced with `.indexOf()` or `.lastIndexOf()`.";
|
|
162
|
+
readonly id: "arrayIndexOfMethods";
|
|
163
|
+
readonly presets: ["stylistic", "stylisticStrict"];
|
|
164
|
+
} & {
|
|
165
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
166
|
+
url: string;
|
|
167
|
+
}, object, object, "preferIndexOf" | "preferLastIndexOf", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
168
|
+
readonly description: "Reports using `.forEach()` when a for-of loop can be used.";
|
|
169
|
+
readonly id: "arrayLoops";
|
|
170
|
+
readonly presets: ["stylistic", "stylisticStrict"];
|
|
171
|
+
} & {
|
|
172
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
173
|
+
url: string;
|
|
174
|
+
}, object, object, "preferForOf", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
175
|
+
readonly description: "Reports using `.flatMap()` with an identity function that returns its argument unchanged.";
|
|
176
|
+
readonly id: "arrayMapIdentities";
|
|
177
|
+
readonly presets: ["logical", "logicalStrict"];
|
|
178
|
+
} & {
|
|
179
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
180
|
+
url: string;
|
|
181
|
+
}, object, object, "identityFlatMap", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
182
|
+
readonly description: "Reports `.reverse()` calls on arrays that mutate the original array.";
|
|
183
|
+
readonly id: "arrayMutableReverses";
|
|
184
|
+
readonly presets: ["stylistic", "stylisticStrict"];
|
|
185
|
+
} & {
|
|
186
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
187
|
+
url: string;
|
|
188
|
+
}, object, object, "preferToReversed", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
189
|
+
readonly description: "Reports `.sort()` calls on arrays that mutate the original array.";
|
|
190
|
+
readonly id: "arrayMutableSorts";
|
|
191
|
+
readonly presets: ["stylistic", "stylisticStrict"];
|
|
192
|
+
} & {
|
|
193
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
194
|
+
url: string;
|
|
195
|
+
}, object, object, "preferToSorted", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
196
|
+
readonly description: "Reports `Array#reduce` calls using type assertions on initial values instead of type arguments.";
|
|
197
|
+
readonly id: "arrayReduceTypeArguments";
|
|
198
|
+
readonly presets: ["logicalStrict"];
|
|
199
|
+
} & {
|
|
200
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
201
|
+
url: string;
|
|
202
|
+
}, object, object, "preferTypeParameter", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
203
|
+
readonly description: "Reports unnecessary `end` argument in `.slice()` calls when it equals the length or is `Infinity`.";
|
|
204
|
+
readonly id: "arraySliceUnnecessaryEnd";
|
|
205
|
+
readonly presets: ["stylistic", "stylisticStrict"];
|
|
206
|
+
} & {
|
|
207
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
208
|
+
url: string;
|
|
209
|
+
}, object, object, "unnecessaryEnd", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
210
|
+
readonly description: "Reports patterns that can be replaced with `.some()` for checking array element existence.";
|
|
211
|
+
readonly id: "arraySomeMethods";
|
|
212
|
+
readonly presets: ["stylistic", "stylisticStrict"];
|
|
213
|
+
} & {
|
|
214
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
215
|
+
url: string;
|
|
216
|
+
}, object, object, "preferSome", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
217
|
+
readonly description: "Reports inconsistent types when spreading a ternary in an array literal.";
|
|
218
|
+
readonly id: "arrayTernarySpreadingConsistency";
|
|
219
|
+
readonly presets: ["stylistic", "stylisticStrict"];
|
|
220
|
+
} & {
|
|
221
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
222
|
+
url: string;
|
|
223
|
+
}, object, object, "inconsistentTypes", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
224
|
+
readonly description: "Reports array type syntax that doesn't match the configured style.";
|
|
225
|
+
readonly id: "arrayTypes";
|
|
226
|
+
readonly presets: ["stylistic", "stylisticStrict"];
|
|
227
|
+
} & {
|
|
228
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
229
|
+
url: string;
|
|
230
|
+
}, object, object, "preferArraySyntax" | "preferGenericSyntax" | "preferReadonlyArraySyntax" | "preferReadonlyGenericSyntax", {
|
|
231
|
+
readonly style: zod_v40.ZodDefault<zod_v40.ZodEnum<{
|
|
232
|
+
array: "array";
|
|
233
|
+
"array-simple": "array-simple";
|
|
234
|
+
generic: "generic";
|
|
235
|
+
}>>;
|
|
236
|
+
}>, _flint_fyi_core0.Rule<{
|
|
237
|
+
readonly description: "Reports unnecessary array length checks before `.some()` or `.every()` calls.";
|
|
238
|
+
readonly id: "arrayUnnecessaryLengthChecks";
|
|
239
|
+
readonly presets: ["logical"];
|
|
240
|
+
} & {
|
|
241
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
242
|
+
url: string;
|
|
243
|
+
}, object, object, "unnecessaryLengthCheckEvery" | "unnecessaryLengthCheckSome", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
244
|
+
readonly description: "Reports using explicit literal types when `as const` can be used.";
|
|
245
|
+
readonly id: "asConstAssertions";
|
|
246
|
+
readonly presets: ["stylistic", "stylisticStrict"];
|
|
247
|
+
} & {
|
|
248
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
249
|
+
url: string;
|
|
250
|
+
}, object, object, "preferAsConst" | "preferAsConstAnnotation", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
251
|
+
readonly description: "Prefer logical assignment operator shorthand expressions.";
|
|
252
|
+
readonly id: "assignmentOperatorShorthands";
|
|
253
|
+
readonly presets: ["stylistic", "stylisticStrict"];
|
|
254
|
+
} & {
|
|
255
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
256
|
+
url: string;
|
|
257
|
+
}, object, object, "preferShorthand", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
258
|
+
readonly description: "Reports using async functions as Promise executor functions.";
|
|
259
|
+
readonly id: "asyncPromiseExecutors";
|
|
260
|
+
readonly presets: ["logical", "logicalStrict"];
|
|
261
|
+
} & {
|
|
262
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
263
|
+
url: string;
|
|
264
|
+
}, object, object, "asyncPromiseExecutor", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
265
|
+
readonly description: "Reports unnecessary `Promise.resolve()` or `Promise.reject()` in async contexts.";
|
|
266
|
+
readonly id: "asyncUnnecessaryPromiseWrappers";
|
|
267
|
+
readonly presets: ["logical", "logicalStrict"];
|
|
268
|
+
} & {
|
|
269
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
270
|
+
url: string;
|
|
271
|
+
}, object, object, "unnecessaryReject" | "unnecessaryResolve", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
272
|
+
readonly description: "Prefer using .at() for accessing elements at negative indices.";
|
|
273
|
+
readonly id: "atAccesses";
|
|
274
|
+
readonly presets: ["stylistic", "stylisticStrict"];
|
|
275
|
+
} & {
|
|
276
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
277
|
+
url: string;
|
|
278
|
+
}, object, object, "preferAt", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
279
|
+
readonly description: "Reports functions that wrap native coercion functions like `String`, `Number`, `BigInt`, `Boolean`, or `Symbol`.";
|
|
280
|
+
readonly id: "builtinCoercions";
|
|
281
|
+
readonly presets: ["stylistic", "stylisticStrict"];
|
|
282
|
+
} & {
|
|
283
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
284
|
+
url: string;
|
|
285
|
+
}, object, object, "useBuiltin", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
286
|
+
readonly description: "Enforces using new for constructors that require it, and disallows new for primitive coercion functions.";
|
|
287
|
+
readonly id: "builtinConstructorNews";
|
|
288
|
+
readonly presets: ["stylistic", "stylisticStrict"];
|
|
289
|
+
} & {
|
|
290
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
291
|
+
url: string;
|
|
292
|
+
}, object, object, "disallowedNew" | "missingNew", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
293
|
+
readonly description: "Reports lexical declarations in case clauses without wrapping them in blocks.";
|
|
294
|
+
readonly id: "caseDeclarations";
|
|
295
|
+
readonly presets: ["javascript"];
|
|
296
|
+
} & {
|
|
297
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
298
|
+
url: string;
|
|
299
|
+
}, object, object, "unexpectedLexicalDeclaration", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
300
|
+
readonly description: "Reports switch statements with duplicate case clause test expressions.";
|
|
301
|
+
readonly id: "caseDuplicates";
|
|
302
|
+
readonly presets: ["logical", "logicalStrict"];
|
|
303
|
+
} & {
|
|
304
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
305
|
+
url: string;
|
|
306
|
+
}, object, object, "duplicateCase", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
307
|
+
readonly description: "Reports switch case clauses that fall through unexpectedly.";
|
|
308
|
+
readonly id: "caseFallthroughs";
|
|
309
|
+
readonly presets: ["logical", "logicalStrict"];
|
|
310
|
+
} & {
|
|
311
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
312
|
+
url: string;
|
|
313
|
+
}, object, object, "unexpectedFallthrough", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
314
|
+
readonly description: "Reports `Promise` catch callback parameters that are not typed as unknown.";
|
|
315
|
+
readonly id: "catchCallbackTypes";
|
|
316
|
+
readonly presets: ["logical", "logicalStrict"];
|
|
317
|
+
} & {
|
|
318
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
319
|
+
url: string;
|
|
320
|
+
}, object, object, "preferUnknown", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
321
|
+
readonly description: "Enforces a consistent naming convention for catch clause error variables.";
|
|
322
|
+
readonly id: "caughtVariableNames";
|
|
323
|
+
readonly presets: ["stylisticStrict"];
|
|
324
|
+
} & {
|
|
325
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
326
|
+
url: string;
|
|
327
|
+
}, object, object, "preferErrorName", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
328
|
+
readonly description: "Reports using chained assignment expressions (e.g., a = b = c).";
|
|
329
|
+
readonly id: "chainedAssignments";
|
|
330
|
+
readonly presets: ["stylistic", "stylisticStrict"];
|
|
331
|
+
} & {
|
|
332
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
333
|
+
url: string;
|
|
334
|
+
}, object, object, "noChainedAssignment", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
335
|
+
readonly description: "Reports comparing charAt() results with strings longer than one character.";
|
|
336
|
+
readonly id: "charAtComparisons";
|
|
337
|
+
readonly presets: ["logical", "logicalStrict"];
|
|
338
|
+
} & {
|
|
339
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
340
|
+
url: string;
|
|
341
|
+
}, object, object, "invalidComparison", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
342
|
+
readonly description: "Reports reassigning class declarations.";
|
|
343
|
+
readonly id: "classAssignments";
|
|
344
|
+
readonly presets: ["javascript"];
|
|
345
|
+
} & {
|
|
346
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
347
|
+
url: string;
|
|
348
|
+
}, object, object, "noClassAssign", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
349
|
+
readonly description: "Reports assigning literal values to `this` in constructors instead of using class field declarations.";
|
|
350
|
+
readonly id: "classFieldDeclarations";
|
|
351
|
+
readonly presets: ["javascript"];
|
|
352
|
+
} & {
|
|
353
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
354
|
+
url: string;
|
|
355
|
+
}, object, object, "preferClassField", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
356
|
+
readonly description: "Reports getters that return literal values instead of using readonly class fields.";
|
|
357
|
+
readonly id: "classLiteralProperties";
|
|
358
|
+
readonly presets: ["stylistic", "stylisticStrict"];
|
|
359
|
+
} & {
|
|
360
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
361
|
+
url: string;
|
|
362
|
+
}, object, object, "preferField", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
363
|
+
readonly description: "Reports duplicate class member names that will be overwritten.";
|
|
364
|
+
readonly id: "classMemberDuplicates";
|
|
365
|
+
readonly presets: ["javascript"];
|
|
366
|
+
} & {
|
|
367
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
368
|
+
url: string;
|
|
369
|
+
}, object, object, "duplicateMember", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
370
|
+
readonly description: "Reports class methods that do not use `this`.";
|
|
371
|
+
readonly id: "classMethodsThis";
|
|
372
|
+
readonly presets: ["stylistic", "stylisticStrict"];
|
|
373
|
+
} & {
|
|
374
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
375
|
+
url: string;
|
|
376
|
+
}, object, object, "missingThis", {
|
|
377
|
+
readonly ignoreClassesThatImplementAnInterface: zod_v40.ZodDefault<zod_v40.ZodUnion<readonly [zod_v40.ZodBoolean, zod_v40.ZodLiteral<"public-fields">]>>;
|
|
378
|
+
readonly ignoreOverrideMethods: zod_v40.ZodDefault<zod_v40.ZodBoolean>;
|
|
379
|
+
}>, _flint_fyi_core0.Rule<{
|
|
380
|
+
readonly description: "Reports consecutive array.push() calls that could be combined into a single call.";
|
|
381
|
+
readonly id: "combinedPushes";
|
|
382
|
+
readonly presets: ["stylistic", "stylisticStrict"];
|
|
383
|
+
} & {
|
|
384
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
385
|
+
url: string;
|
|
386
|
+
}, object, object, "combinePushes", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
387
|
+
readonly description: "Reports unnecessary extra non-null assertions.";
|
|
388
|
+
readonly id: "consecutiveNonNullAssertions";
|
|
389
|
+
readonly presets: ["logical"];
|
|
390
|
+
} & {
|
|
391
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
392
|
+
url: string;
|
|
393
|
+
}, object, object, "consecutiveNonNullAssertion", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
394
|
+
readonly description: "Reports calls to console methods.";
|
|
395
|
+
readonly id: "consoleCalls";
|
|
396
|
+
} & {
|
|
397
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
398
|
+
url: string;
|
|
399
|
+
}, object, object, "noConsole", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
400
|
+
readonly description: "Reports attempting to reassign variables declared with const.";
|
|
401
|
+
readonly id: "constantAssignments";
|
|
402
|
+
readonly presets: ["javascript"];
|
|
403
|
+
} & {
|
|
404
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
405
|
+
url: string;
|
|
406
|
+
}, object, object, "noConstAssign", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
407
|
+
readonly description: "Reports inconsistent placement of type arguments in constructor calls.";
|
|
408
|
+
readonly id: "constructorGenericCalls";
|
|
409
|
+
readonly presets: ["stylistic", "stylisticStrict"];
|
|
410
|
+
} & {
|
|
411
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
412
|
+
url: string;
|
|
413
|
+
}, object, object, "preferConstructor" | "preferTypeAnnotation", {
|
|
414
|
+
style: zod_v40.ZodDefault<zod_v40.ZodEnum<{
|
|
415
|
+
constructor: "constructor";
|
|
416
|
+
"type-annotation": "type-annotation";
|
|
417
|
+
}>>;
|
|
418
|
+
}>, _flint_fyi_core0.Rule<{
|
|
419
|
+
readonly description: "Reports returning values from constructor functions.";
|
|
420
|
+
readonly id: "constructorReturns";
|
|
421
|
+
readonly presets: ["javascript"];
|
|
422
|
+
} & {
|
|
423
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
424
|
+
url: string;
|
|
425
|
+
}, object, object, "noConstructorReturn", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
426
|
+
readonly description: "Reports constructors of derived classes that do not call `super()`, and constructors of non-derived classes that call `super()`.";
|
|
427
|
+
readonly id: "constructorSupers";
|
|
428
|
+
readonly presets: ["javascript"];
|
|
429
|
+
} & {
|
|
430
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
431
|
+
url: string;
|
|
432
|
+
}, object, object, "missingSuperCall" | "unexpectedSuperCall", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
433
|
+
readonly description: "Prefer passing a `Date` directly to the `Date` constructor when cloning, rather than calling `getTime()`.";
|
|
434
|
+
readonly id: "dateConstructorClones";
|
|
435
|
+
readonly presets: ["logical"];
|
|
436
|
+
} & {
|
|
437
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
438
|
+
url: string;
|
|
439
|
+
}, object, object, "unnecessaryGetTime", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
440
|
+
readonly description: "Prefer the shorter `Date.now()` to get the number of milliseconds since the Unix Epoch.";
|
|
441
|
+
readonly id: "dateNowTimestamps";
|
|
442
|
+
readonly presets: ["logical", "logicalStrict"];
|
|
443
|
+
} & {
|
|
444
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
445
|
+
url: string;
|
|
446
|
+
}, object, object, "preferDateNow", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
447
|
+
readonly description: "Reports using debugger statements.";
|
|
448
|
+
readonly id: "debuggerStatements";
|
|
449
|
+
readonly presets: ["logical", "logicalStrict"];
|
|
450
|
+
} & {
|
|
451
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
452
|
+
url: string;
|
|
453
|
+
}, object, object, "noDebugger", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
454
|
+
readonly description: "Reports switch statements where the default clause is not last.";
|
|
455
|
+
readonly id: "defaultCaseLast";
|
|
456
|
+
readonly presets: ["logical", "logicalStrict"];
|
|
457
|
+
} & {
|
|
458
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
459
|
+
url: string;
|
|
460
|
+
}, object, object, "defaultCaseShouldBeLast", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
461
|
+
readonly description: "Enforce default parameters to be last.";
|
|
462
|
+
readonly id: "defaultParameterLast";
|
|
463
|
+
readonly presets: ["javascript"];
|
|
464
|
+
} & {
|
|
465
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
466
|
+
url: string;
|
|
467
|
+
}, object, object, "defaultParameterLast", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
468
|
+
readonly description: "Disallow using code marked as @deprecated.";
|
|
469
|
+
readonly id: "deprecated";
|
|
470
|
+
readonly presets: ["logical", "logicalStrict"];
|
|
471
|
+
} & {
|
|
472
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
473
|
+
url: string;
|
|
474
|
+
}, object, object, "deprecated", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
475
|
+
readonly description: "Use destructured variables over properties for consistency.";
|
|
476
|
+
readonly id: "destructuringConsistency";
|
|
477
|
+
readonly presets: ["stylistic", "stylisticStrict"];
|
|
478
|
+
} & {
|
|
479
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
480
|
+
url: string;
|
|
481
|
+
}, object, object, "useDestructured", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
482
|
+
readonly description: "Reports functions with duplicate parameter names in their signatures.";
|
|
483
|
+
readonly id: "duplicateArguments";
|
|
484
|
+
readonly presets: ["javascript"];
|
|
485
|
+
} & {
|
|
486
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
487
|
+
url: string;
|
|
488
|
+
}, object, object, "duplicateParam", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
489
|
+
readonly description: "Disallow using the delete operator on computed key expressions.";
|
|
490
|
+
readonly id: "dynamicDeletes";
|
|
491
|
+
readonly presets: ["logical", "logicalStrict"];
|
|
492
|
+
} & {
|
|
493
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
494
|
+
url: string;
|
|
495
|
+
}, object, object, "dynamicDelete", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
496
|
+
readonly description: "Reports duplicate conditions in if-else-if chains that make code unreachable.";
|
|
497
|
+
readonly id: "elseIfDuplicates";
|
|
498
|
+
readonly presets: ["logical", "logicalStrict"];
|
|
499
|
+
} & {
|
|
500
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
501
|
+
url: string;
|
|
502
|
+
}, object, object, "duplicateCondition", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
503
|
+
readonly description: "Reports unnecessary `else` blocks following `if` statements that always return or throw.";
|
|
504
|
+
readonly id: "elseReturns";
|
|
505
|
+
readonly presets: ["stylisticStrict"];
|
|
506
|
+
} & {
|
|
507
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
508
|
+
url: string;
|
|
509
|
+
}, object, object, "unnecessaryElse", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
510
|
+
readonly description: "Reports empty block statements that should contain code.";
|
|
511
|
+
readonly id: "emptyBlocks";
|
|
512
|
+
readonly presets: ["stylistic", "stylisticStrict"];
|
|
513
|
+
} & {
|
|
514
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
515
|
+
url: string;
|
|
516
|
+
}, object, object, "emptyBlock", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
517
|
+
readonly description: "Reports using empty destructuring patterns that destructure no values.";
|
|
518
|
+
readonly id: "emptyDestructures";
|
|
519
|
+
readonly presets: ["logical", "logicalStrict"];
|
|
520
|
+
} & {
|
|
521
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
522
|
+
url: string;
|
|
523
|
+
}, object, object, "emptyPattern", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
524
|
+
readonly description: "Reports empty enum declarations with no members.";
|
|
525
|
+
readonly id: "emptyEnums";
|
|
526
|
+
readonly presets: ["logical"];
|
|
527
|
+
} & {
|
|
528
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
529
|
+
url: string;
|
|
530
|
+
}, object, object, "emptyEnum", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
531
|
+
readonly description: "Reports empty export statements that don't make a file a module.";
|
|
532
|
+
readonly id: "emptyExports";
|
|
533
|
+
readonly presets: ["logical", "logicalStrict"];
|
|
534
|
+
} & {
|
|
535
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
536
|
+
url: string;
|
|
537
|
+
}, object, object, "uselessExport", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
538
|
+
readonly description: "Reports files that contain no meaningful code.";
|
|
539
|
+
readonly id: "emptyFiles";
|
|
540
|
+
readonly presets: ["stylistic", "stylisticStrict"];
|
|
541
|
+
} & {
|
|
542
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
543
|
+
url: string;
|
|
544
|
+
}, object, object, "emptyFile", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
545
|
+
readonly description: "Reports empty functions that should contain code or a comment.";
|
|
546
|
+
readonly id: "emptyFunctions";
|
|
547
|
+
readonly presets: ["stylistic", "stylisticStrict"];
|
|
548
|
+
} & {
|
|
549
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
550
|
+
url: string;
|
|
551
|
+
}, object, object, "emptyFunction", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
552
|
+
readonly description: "Reports empty import/export attributes that serve no purpose.";
|
|
553
|
+
readonly id: "emptyModuleAttributes";
|
|
554
|
+
readonly presets: ["stylistic", "stylisticStrict"];
|
|
555
|
+
} & {
|
|
556
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
557
|
+
url: string;
|
|
558
|
+
}, object, object, "emptyAttributes", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
559
|
+
readonly description: "Reports empty object type literals and empty interfaces that are often used incorrectly.";
|
|
560
|
+
readonly id: "emptyObjectTypes";
|
|
561
|
+
readonly presets: ["logical", "logicalStrict"];
|
|
562
|
+
} & {
|
|
563
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
564
|
+
url: string;
|
|
565
|
+
}, object, object, "emptyInterface" | "emptyObjectType", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
566
|
+
readonly description: "Reports empty static initialization blocks within class declarations.";
|
|
567
|
+
readonly id: "emptyStaticBlocks";
|
|
568
|
+
readonly presets: ["stylistic", "stylisticStrict"];
|
|
569
|
+
} & {
|
|
570
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
571
|
+
url: string;
|
|
572
|
+
}, object, object, "emptyStaticBlock", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
573
|
+
readonly description: "Reports empty type parameter lists in type aliases and interfaces.";
|
|
574
|
+
readonly id: "emptyTypeParameterLists";
|
|
575
|
+
readonly presets: ["stylistic", "stylisticStrict"];
|
|
576
|
+
} & {
|
|
577
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
578
|
+
url: string;
|
|
579
|
+
}, object, object, "emptyTypeParameters", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
580
|
+
readonly description: "Reports enum members without explicit initial values.";
|
|
581
|
+
readonly id: "enumInitializers";
|
|
582
|
+
readonly presets: ["logical", "logicalStrict"];
|
|
583
|
+
} & {
|
|
584
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
585
|
+
url: string;
|
|
586
|
+
}, object, object, "defineInitializer", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
587
|
+
readonly description: "Requires all enum members to be literal values.";
|
|
588
|
+
readonly id: "enumMemberLiterals";
|
|
589
|
+
readonly presets: ["logicalStrict"];
|
|
590
|
+
} & {
|
|
591
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
592
|
+
url: string;
|
|
593
|
+
}, object, object, "requireLiteral", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
594
|
+
readonly description: "Reports enums that contain both string and number members.";
|
|
595
|
+
readonly id: "enumValueConsistency";
|
|
596
|
+
readonly presets: ["logical", "logicalStrict"];
|
|
597
|
+
} & {
|
|
598
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
599
|
+
url: string;
|
|
600
|
+
}, object, object, "mixedTypes", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
601
|
+
readonly description: "Reports enum members with duplicate values.";
|
|
602
|
+
readonly id: "enumValueDuplicates";
|
|
603
|
+
readonly presets: ["logical", "logicalStrict"];
|
|
604
|
+
} & {
|
|
605
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
606
|
+
url: string;
|
|
607
|
+
}, object, object, "duplicateValue", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
608
|
+
readonly description: "Reports negated expressions on the left side of equality checks.";
|
|
609
|
+
readonly id: "equalityOperatorNegations";
|
|
610
|
+
} & {
|
|
611
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
612
|
+
url: string;
|
|
613
|
+
}, object, object, "negatedEquality", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
614
|
+
readonly description: "Enforces consistent use of strict equality operators (=== and !==) over loose equality operators (== and !=) for non-nullish comparisons.";
|
|
615
|
+
readonly id: "equalityOperators";
|
|
616
|
+
readonly presets: ["logical", "logicalStrict"];
|
|
617
|
+
} & {
|
|
618
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
619
|
+
url: string;
|
|
620
|
+
}, object, object, "preferStrictEquality", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
621
|
+
readonly description: "Requires a message value when creating a built-in error.";
|
|
622
|
+
readonly id: "errorMessages";
|
|
623
|
+
readonly presets: ["logicalStrict"];
|
|
624
|
+
} & {
|
|
625
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
626
|
+
url: string;
|
|
627
|
+
}, object, object, "missingMessage", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
628
|
+
readonly description: "Reports incorrect Error subclass definitions that don't follow best practices.";
|
|
629
|
+
readonly id: "errorSubclassProperties";
|
|
630
|
+
readonly presets: ["logicalStrict"];
|
|
631
|
+
} & {
|
|
632
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
633
|
+
url: string;
|
|
634
|
+
}, object, object, "invalidClassName" | "missingName" | "redundantMessage" | "useConstructorName" | "wrongName", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
635
|
+
readonly description: "Reports unnecessary Error.captureStackTrace() calls in Error subclass constructors.";
|
|
636
|
+
readonly id: "errorUnnecessaryCaptureStackTraces";
|
|
637
|
+
readonly presets: ["logical", "logicalStrict"];
|
|
638
|
+
} & {
|
|
639
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
640
|
+
url: string;
|
|
641
|
+
}, object, object, "unnecessaryCaptureStackTrace", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
642
|
+
readonly description: "Reports escape sequences with lowercase hexadecimal characters.";
|
|
643
|
+
readonly id: "escapeSequenceCasing";
|
|
644
|
+
readonly presets: ["stylisticStrict"];
|
|
645
|
+
} & {
|
|
646
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
647
|
+
url: string;
|
|
648
|
+
}, object, object, "useUppercase", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
649
|
+
readonly description: "Reports uses of the eval function.";
|
|
650
|
+
readonly id: "evals";
|
|
651
|
+
readonly presets: ["logical", "logicalStrict"];
|
|
652
|
+
} & {
|
|
653
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
654
|
+
url: string;
|
|
655
|
+
}, object, object, "noEval", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
656
|
+
readonly description: "Reports variables declared without type annotation or initializer.";
|
|
657
|
+
readonly id: "evolvingVariableTypes";
|
|
658
|
+
readonly presets: ["stylisticStrict"];
|
|
659
|
+
} & {
|
|
660
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
661
|
+
url: string;
|
|
662
|
+
}, object, object, "implicitAny", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
663
|
+
readonly description: "Reports reassigning exception parameters in catch clauses.";
|
|
664
|
+
readonly id: "exceptionAssignments";
|
|
665
|
+
readonly presets: ["logical", "logicalStrict"];
|
|
666
|
+
} & {
|
|
667
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
668
|
+
url: string;
|
|
669
|
+
}, object, object, "noExAssign", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
670
|
+
readonly description: "Reports explicit uses of the any type.";
|
|
671
|
+
readonly id: "explicitAnys";
|
|
672
|
+
readonly presets: ["logical", "logicalStrict"];
|
|
673
|
+
} & {
|
|
674
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
675
|
+
url: string;
|
|
676
|
+
}, object, object, "noExplicitAny", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
677
|
+
readonly description: "Prefers the ** operator over Math.pow().";
|
|
678
|
+
readonly id: "exponentiationOperators";
|
|
679
|
+
readonly presets: ["stylistic", "stylisticStrict"];
|
|
680
|
+
} & {
|
|
681
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
682
|
+
url: string;
|
|
683
|
+
}, object, object, "preferOperator", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
684
|
+
readonly description: "Reports imports that are re-exported and could use export...from syntax instead.";
|
|
685
|
+
readonly id: "exportFromImports";
|
|
686
|
+
readonly presets: ["stylistic", "stylisticStrict"];
|
|
687
|
+
} & {
|
|
688
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
689
|
+
url: string;
|
|
690
|
+
}, object, object, "preferExportDefaultFrom" | "preferExportFrom" | "preferExportNamespaceFrom", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
691
|
+
readonly description: "Reports exporting mutable bindings (let or var).";
|
|
692
|
+
readonly id: "exportMutables";
|
|
693
|
+
readonly presets: ["logical", "logicalStrict"];
|
|
694
|
+
} & {
|
|
695
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
696
|
+
url: string;
|
|
697
|
+
}, object, object, "noMutableExport", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
698
|
+
readonly description: "Reports duplicate export names in a module.";
|
|
699
|
+
readonly id: "exportUniqueNames";
|
|
700
|
+
readonly presets: ["javascript"];
|
|
701
|
+
} & {
|
|
702
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
703
|
+
url: string;
|
|
704
|
+
}, object, object, "duplicateExport", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
705
|
+
readonly description: "Reports classes used as static namespaces.";
|
|
706
|
+
readonly id: "extraneousClasses";
|
|
707
|
+
readonly presets: ["logicalStrict"];
|
|
708
|
+
} & {
|
|
709
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
710
|
+
url: string;
|
|
711
|
+
}, object, object, "empty" | "onlyConstructor" | "onlyStatic", {
|
|
712
|
+
allowConstructorOnly: zod_v40.ZodDefault<zod_v40.ZodBoolean>;
|
|
713
|
+
allowEmpty: zod_v40.ZodDefault<zod_v40.ZodBoolean>;
|
|
714
|
+
allowStaticOnly: zod_v40.ZodDefault<zod_v40.ZodBoolean>;
|
|
715
|
+
allowWithDecorator: zod_v40.ZodDefault<zod_v40.ZodBoolean>;
|
|
716
|
+
}>, _flint_fyi_core0.Rule<{
|
|
717
|
+
readonly description: "Disallow providing a body with GET or HEAD fetch requests.";
|
|
718
|
+
readonly id: "fetchMethodBodies";
|
|
719
|
+
readonly presets: ["logical", "logicalStrict"];
|
|
720
|
+
} & {
|
|
721
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
722
|
+
url: string;
|
|
723
|
+
}, object, object, "noBody", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
724
|
+
readonly description: "Reports control flow statements in `finally` blocks that can override control flow in `try`/`catch` blocks.";
|
|
725
|
+
readonly id: "finallyStatementSafety";
|
|
726
|
+
readonly presets: ["logical", "logicalStrict"];
|
|
727
|
+
} & {
|
|
728
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
729
|
+
url: string;
|
|
730
|
+
}, object, object, "unsafeFinally", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
731
|
+
readonly description: "Reports for loops with counter variables that move in the wrong direction.";
|
|
732
|
+
readonly id: "forDirections";
|
|
733
|
+
readonly presets: ["stylistic", "stylisticStrict"];
|
|
734
|
+
} & {
|
|
735
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
736
|
+
url: string;
|
|
737
|
+
}, object, object, "wrongDirection", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
738
|
+
readonly description: "Reports iterating over an array with a for-in loop.";
|
|
739
|
+
readonly id: "forInArrays";
|
|
740
|
+
readonly presets: ["logical", "logicalStrict"];
|
|
741
|
+
} & {
|
|
742
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
743
|
+
url: string;
|
|
744
|
+
}, object, object, "forIn", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
745
|
+
readonly description: "Reports for-in loops without an if statement to filter inherited properties.";
|
|
746
|
+
readonly id: "forInGuards";
|
|
747
|
+
} & {
|
|
748
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
749
|
+
url: string;
|
|
750
|
+
}, object, object, "missingGuard", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
751
|
+
readonly description: "Prefer the spread operator over `.apply()` calls.";
|
|
752
|
+
readonly id: "functionApplySpreads";
|
|
753
|
+
readonly presets: ["stylistic", "stylisticStrict"];
|
|
754
|
+
} & {
|
|
755
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
756
|
+
url: string;
|
|
757
|
+
}, object, object, "preferSpread", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
758
|
+
readonly description: "Reports reassigning variables declared with function declarations.";
|
|
759
|
+
readonly id: "functionAssignments";
|
|
760
|
+
readonly presets: ["javascript"];
|
|
761
|
+
} & {
|
|
762
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
763
|
+
url: string;
|
|
764
|
+
}, object, object, "noFunctionAssignment", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
765
|
+
readonly description: "Reports using `.apply()` or `.call()` or when the context (`this` value) provides no benefit.";
|
|
766
|
+
readonly id: "functionCurryingRedundancy";
|
|
767
|
+
readonly presets: ["logical", "logicalStrict"];
|
|
768
|
+
} & {
|
|
769
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
770
|
+
url: string;
|
|
771
|
+
}, object, object, "unnecessaryCall", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
772
|
+
readonly description: "Reports functions that don't match the configured style (declaration vs expression).";
|
|
773
|
+
readonly id: "functionDeclarationStyles";
|
|
774
|
+
} & {
|
|
775
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
776
|
+
url: string;
|
|
777
|
+
}, object, object, "preferDeclaration" | "preferExpression", {
|
|
778
|
+
readonly allowArrowFunctions: zod_v40.ZodDefault<zod_v40.ZodBoolean>;
|
|
779
|
+
readonly style: zod_v40.ZodDefault<zod_v40.ZodEnum<{
|
|
780
|
+
expression: "expression";
|
|
781
|
+
declaration: "declaration";
|
|
782
|
+
}>>;
|
|
783
|
+
}>, _flint_fyi_core0.Rule<{
|
|
784
|
+
readonly description: "Reports function names that don't match the variable or property they're assigned to.";
|
|
785
|
+
readonly id: "functionNameMatches";
|
|
786
|
+
readonly presets: ["stylistic", "stylisticStrict"];
|
|
787
|
+
} & {
|
|
788
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
789
|
+
url: string;
|
|
790
|
+
}, object, object, "mismatch", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
791
|
+
readonly description: "Reports using the Function constructor to create functions from strings.";
|
|
792
|
+
readonly id: "functionNewCalls";
|
|
793
|
+
readonly presets: ["logical"];
|
|
794
|
+
} & {
|
|
795
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
796
|
+
url: string;
|
|
797
|
+
}, object, object, "noFunctionConstructor", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
798
|
+
readonly description: "Reports generator functions that do not yield values.";
|
|
799
|
+
readonly id: "generatorFunctionYields";
|
|
800
|
+
readonly presets: ["logical"];
|
|
801
|
+
} & {
|
|
802
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
803
|
+
url: string;
|
|
804
|
+
}, object, object, "missingYield", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
805
|
+
readonly description: "Reports getter functions that do not return values.";
|
|
806
|
+
readonly id: "getterReturns";
|
|
807
|
+
readonly presets: ["javascript"];
|
|
808
|
+
} & {
|
|
809
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
810
|
+
url: string;
|
|
811
|
+
}, object, object, "missingReturn", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
812
|
+
readonly description: "Reports attempting to assign to read-only global variables such as undefined, NaN, Infinity, Object, etc.";
|
|
813
|
+
readonly id: "globalAssignments";
|
|
814
|
+
readonly presets: ["javascript"];
|
|
815
|
+
} & {
|
|
816
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
817
|
+
url: string;
|
|
818
|
+
}, object, object, "noGlobalAssign", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
819
|
+
readonly description: "Reports calling global objects like Math, JSON, or Reflect as functions.";
|
|
820
|
+
readonly id: "globalObjectCalls";
|
|
821
|
+
readonly presets: ["javascript"];
|
|
822
|
+
} & {
|
|
823
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
824
|
+
url: string;
|
|
825
|
+
}, object, object, "noGlobalObjectCall", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
826
|
+
readonly description: "Reports using window, self, or global instead of globalThis.";
|
|
827
|
+
readonly id: "globalThisAliases";
|
|
828
|
+
readonly presets: ["stylisticStrict"];
|
|
829
|
+
} & {
|
|
830
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
831
|
+
url: string;
|
|
832
|
+
}, object, object, "preferGlobalThis", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
833
|
+
readonly description: "Reports using string arguments in setTimeout, setInterval, setImmediate, execScript, or the Function constructor.";
|
|
834
|
+
readonly id: "impliedEvals";
|
|
835
|
+
readonly presets: ["logical", "logicalStrict"];
|
|
836
|
+
} & {
|
|
837
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
838
|
+
url: string;
|
|
839
|
+
}, object, object, "functionConstructor" | "impliedEval", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
840
|
+
readonly description: "Reports empty named import blocks.";
|
|
841
|
+
readonly id: "importEmptyBlocks";
|
|
842
|
+
readonly presets: ["logical", "logicalStrict"];
|
|
843
|
+
} & {
|
|
844
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
845
|
+
url: string;
|
|
846
|
+
}, object, object, "noEmptyNamedBlocksOnly" | "noEmptyNamedBlocksWithOther", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
847
|
+
readonly description: "Reports imports that use inline type qualifiers on all specifiers when a top-level type qualifier should be used instead.";
|
|
848
|
+
readonly id: "importTypeSideEffects";
|
|
849
|
+
readonly presets: ["logical"];
|
|
850
|
+
} & {
|
|
851
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
852
|
+
url: string;
|
|
853
|
+
}, object, object, "useTopLevelQualifier", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
854
|
+
readonly description: "Reports indexed object types that don't match the configured style.";
|
|
855
|
+
readonly id: "indexedObjectTypes";
|
|
856
|
+
readonly presets: ["stylistic", "stylisticStrict"];
|
|
857
|
+
} & {
|
|
858
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
859
|
+
url: string;
|
|
860
|
+
}, object, object, "preferIndexSignature" | "preferRecord", {
|
|
861
|
+
readonly style: zod_v40.ZodDefault<zod_v40.ZodEnum<{
|
|
862
|
+
record: "record";
|
|
863
|
+
"index-signature": "index-signature";
|
|
864
|
+
}>>;
|
|
865
|
+
}>, _flint_fyi_core0.Rule<{
|
|
866
|
+
readonly description: "Reports using `instanceof Array` instead of `Array.isArray()`.";
|
|
867
|
+
readonly id: "instanceOfArrays";
|
|
868
|
+
readonly presets: ["logical", "logicalStrict"];
|
|
869
|
+
} & {
|
|
870
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
871
|
+
url: string;
|
|
872
|
+
}, object, object, "useArrayIsArray", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
873
|
+
readonly description: "Reports irregular whitespace characters that can cause issues with code parsing and display.";
|
|
874
|
+
readonly id: "irregularWhitespaces";
|
|
875
|
+
readonly presets: ["logical"];
|
|
876
|
+
} & {
|
|
877
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
878
|
+
url: string;
|
|
879
|
+
}, object, object, "irregularWhitespace", {
|
|
880
|
+
readonly skipComments: zod_v40.ZodDefault<zod_v40.ZodBoolean>;
|
|
881
|
+
readonly skipJSXText: zod_v40.ZodDefault<zod_v40.ZodBoolean>;
|
|
882
|
+
readonly skipRegularExpressions: zod_v40.ZodDefault<zod_v40.ZodBoolean>;
|
|
883
|
+
readonly skipTemplates: zod_v40.ZodDefault<zod_v40.ZodBoolean>;
|
|
884
|
+
}>, _flint_fyi_core0.Rule<{
|
|
885
|
+
readonly description: "Reports comparisons with NaN, which should use Number.isNaN() instead.";
|
|
886
|
+
readonly id: "isNaNComparisons";
|
|
887
|
+
readonly presets: ["logical", "logicalStrict"];
|
|
888
|
+
} & {
|
|
889
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
890
|
+
url: string;
|
|
891
|
+
}, object, object, "useIsNaN", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
892
|
+
readonly description: "Prefers literal syntax over constructor function calls for primitive values.";
|
|
893
|
+
readonly id: "literalConstructorWrappers";
|
|
894
|
+
readonly presets: ["stylistic", "stylisticStrict"];
|
|
895
|
+
} & {
|
|
896
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
897
|
+
url: string;
|
|
898
|
+
}, object, object, "preferLiteral", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
899
|
+
readonly description: "Prefer modern Math methods over legacy patterns.";
|
|
900
|
+
readonly id: "mathMethods";
|
|
901
|
+
readonly presets: ["stylisticStrict"];
|
|
902
|
+
} & {
|
|
903
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
904
|
+
url: string;
|
|
905
|
+
}, object, object, "preferModernMath", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
906
|
+
readonly description: "Reports using the void operator on expressions that are already void or undefined.";
|
|
907
|
+
readonly id: "meaninglessVoidOperators";
|
|
908
|
+
readonly presets: ["logical", "logicalStrict"];
|
|
909
|
+
} & {
|
|
910
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
911
|
+
url: string;
|
|
912
|
+
}, object, object, "meaninglessVoid", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
913
|
+
readonly description: "Require expressions of type void to appear in statement position.";
|
|
914
|
+
readonly id: "misleadingVoidExpressions";
|
|
915
|
+
readonly presets: ["logical", "logicalStrict"];
|
|
916
|
+
} & {
|
|
917
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
918
|
+
url: string;
|
|
919
|
+
}, object, object, "voidExpressionArrow" | "voidExpressionReturn" | "voidExpressionValue", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
920
|
+
readonly description: "Require non-empty specifier lists in import and export statements.";
|
|
921
|
+
readonly id: "moduleSpecifierLists";
|
|
922
|
+
readonly presets: ["logical", "logicalStrict"];
|
|
923
|
+
} & {
|
|
924
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
925
|
+
url: string;
|
|
926
|
+
}, object, object, "emptyExportSpecifiers" | "emptyImportSpecifiers", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
927
|
+
readonly description: "Reports ambiguous multiline expressions that could be misinterpreted.";
|
|
928
|
+
readonly id: "multilineAmbiguities";
|
|
929
|
+
readonly presets: ["stylistic", "stylisticStrict"];
|
|
930
|
+
} & {
|
|
931
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
932
|
+
url: string;
|
|
933
|
+
}, object, object, "ambiguity", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
934
|
+
readonly description: "Reports anonymous functions and classes as the default export.";
|
|
935
|
+
readonly id: "namedDefaultExports";
|
|
936
|
+
readonly presets: ["stylisticStrict"];
|
|
937
|
+
} & {
|
|
938
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
939
|
+
url: string;
|
|
940
|
+
}, object, object, "anonymousClass" | "anonymousFunction", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
941
|
+
readonly description: "Reports using legacy `namespace` declarations.";
|
|
942
|
+
readonly id: "namespaceDeclarations";
|
|
943
|
+
readonly presets: ["logical", "logicalStrict"];
|
|
944
|
+
} & {
|
|
945
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
946
|
+
url: string;
|
|
947
|
+
}, object, object, "preferModules", {
|
|
948
|
+
readonly allowDeclarations: zod_v40.ZodDefault<zod_v40.ZodBoolean>;
|
|
949
|
+
readonly allowDefinitionFiles: zod_v40.ZodDefault<zod_v40.ZodBoolean>;
|
|
950
|
+
}>, _flint_fyi_core0.Rule<{
|
|
951
|
+
readonly description: "Reports declared namespaces that implicitly export all members.";
|
|
952
|
+
readonly id: "namespaceImplicitAmbientImports";
|
|
953
|
+
readonly presets: ["stylisticStrict"];
|
|
954
|
+
} & {
|
|
955
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
956
|
+
url: string;
|
|
957
|
+
}, object, object, "implicitExports", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
958
|
+
readonly description: "Reports using `module` keyword instead of `namespace` for TypeScript namespaces.";
|
|
959
|
+
readonly id: "namespaceKeywords";
|
|
960
|
+
readonly presets: ["stylistic", "stylisticStrict"];
|
|
961
|
+
} & {
|
|
962
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
963
|
+
url: string;
|
|
964
|
+
}, object, object, "preferNamespace", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
965
|
+
readonly description: "Reports extending the prototype of native JavaScript objects.";
|
|
966
|
+
readonly id: "nativeObjectExtensions";
|
|
967
|
+
readonly presets: ["javascript"];
|
|
968
|
+
} & {
|
|
969
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
970
|
+
url: string;
|
|
971
|
+
}, object, object, "noExtendNative", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
972
|
+
readonly description: "Prefer negative index over `.length - index` for `at`, `slice`, `splice`, and similar methods.";
|
|
973
|
+
readonly id: "negativeIndexLengthMethods";
|
|
974
|
+
readonly presets: ["stylisticStrict"];
|
|
975
|
+
} & {
|
|
976
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
977
|
+
url: string;
|
|
978
|
+
}, object, object, "preferNegativeIndex", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
979
|
+
readonly description: "Reports comparisons with -0 that may not behave as expected.";
|
|
980
|
+
readonly id: "negativeZeroComparisons";
|
|
981
|
+
readonly presets: ["logical", "logicalStrict"];
|
|
982
|
+
} & {
|
|
983
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
984
|
+
url: string;
|
|
985
|
+
}, object, object, "unexpectedNegativeZeroComparison", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
986
|
+
readonly description: "Reports `if` statements that are the only statement inside an `else` block or inside another `if` without an `else`.";
|
|
987
|
+
readonly id: "nestedStandaloneIfs";
|
|
988
|
+
readonly presets: ["stylistic", "stylisticStrict"];
|
|
989
|
+
} & {
|
|
990
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
991
|
+
url: string;
|
|
992
|
+
}, object, object, "lonelyIfInElse" | "lonelyIfInIf", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
993
|
+
readonly description: "Reports misleading constructor and `new` definitions in interfaces and classes.";
|
|
994
|
+
readonly id: "newDefinitions";
|
|
995
|
+
readonly presets: ["logical", "logicalStrict"];
|
|
996
|
+
} & {
|
|
997
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
998
|
+
url: string;
|
|
999
|
+
}, object, object, "classMethodNamedNew" | "interfaceConstructSignature" | "interfaceMethodNamedConstructor", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
1000
|
+
readonly description: "Reports standalone new expressions that don't use the constructed object.";
|
|
1001
|
+
readonly id: "newExpressions";
|
|
1002
|
+
readonly presets: ["logical", "logicalStrict"];
|
|
1003
|
+
} & {
|
|
1004
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
1005
|
+
url: string;
|
|
1006
|
+
}, object, object, "noStandaloneNew", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
1007
|
+
readonly description: "Disallows using `new` with global non-constructor functions like Symbol and BigInt.";
|
|
1008
|
+
readonly id: "newNativeNonConstructors";
|
|
1009
|
+
readonly presets: ["javascript"];
|
|
1010
|
+
} & {
|
|
1011
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
1012
|
+
url: string;
|
|
1013
|
+
}, object, object, "noNewNonConstructor", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
1014
|
+
readonly description: "Reports type assertions that can be replaced with non-null assertions.";
|
|
1015
|
+
readonly id: "nonNullableTypeAssertions";
|
|
1016
|
+
readonly presets: ["stylistic", "stylisticStrict"];
|
|
1017
|
+
} & {
|
|
1018
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
1019
|
+
url: string;
|
|
1020
|
+
}, object, object, "preferNonNullAssertion", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
1021
|
+
readonly description: "Reports non-null assertions on the left side of nullish coalescing operators.";
|
|
1022
|
+
readonly id: "nonNullAssertedNullishCoalesces";
|
|
1023
|
+
readonly presets: ["logicalStrict"];
|
|
1024
|
+
} & {
|
|
1025
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
1026
|
+
url: string;
|
|
1027
|
+
}, object, object, "unnecessaryNonNullAssertion", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
1028
|
+
readonly description: "Reports non-null assertions on optional chain expressions.";
|
|
1029
|
+
readonly id: "nonNullAssertedOptionalChains";
|
|
1030
|
+
readonly presets: ["logical", "logicalStrict"];
|
|
1031
|
+
} & {
|
|
1032
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
1033
|
+
url: string;
|
|
1034
|
+
}, object, object, "nonNullOptionalChain", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
1035
|
+
readonly description: "Reports confusing placement of non-null assertions next to comparison or assignment operators.";
|
|
1036
|
+
readonly id: "nonNullAssertionPlacement";
|
|
1037
|
+
readonly presets: ["stylisticStrict"];
|
|
1038
|
+
} & {
|
|
1039
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
1040
|
+
url: string;
|
|
1041
|
+
}, object, object, "confusingAssign" | "confusingEqual" | "confusingOperator", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
1042
|
+
readonly description: "Reports non-octal decimal escape sequences (\\8 and \\9) in string literals.";
|
|
1043
|
+
readonly id: "nonOctalDecimalEscapes";
|
|
1044
|
+
readonly presets: ["logical", "logicalStrict"];
|
|
1045
|
+
} & {
|
|
1046
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
1047
|
+
url: string;
|
|
1048
|
+
}, object, object, "unexpectedEscape", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
1049
|
+
readonly description: "Enforces consistent equality operator usage when comparing with null or undefined.";
|
|
1050
|
+
readonly id: "nullishCheckStyle";
|
|
1051
|
+
} & {
|
|
1052
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
1053
|
+
url: string;
|
|
1054
|
+
}, object, object, "preferLooseNull" | "preferLooseNullish" | "preferLooseUndefined" | "preferStrictNullish", {
|
|
1055
|
+
readonly looseNullishComparisonStyle: zod_v40.ZodDefault<zod_v40.ZodEnum<{
|
|
1056
|
+
"prefer-null": "prefer-null";
|
|
1057
|
+
"prefer-undefined": "prefer-undefined";
|
|
1058
|
+
ignore: "ignore";
|
|
1059
|
+
}>>;
|
|
1060
|
+
readonly nullishComparisonStrictness: zod_v40.ZodDefault<zod_v40.ZodEnum<{
|
|
1061
|
+
ignore: "ignore";
|
|
1062
|
+
"double-equals": "double-equals";
|
|
1063
|
+
"triple-equals": "triple-equals";
|
|
1064
|
+
}>>;
|
|
1065
|
+
}>, _flint_fyi_core0.Rule<{
|
|
1066
|
+
readonly description: "Prefer nullish coalescing operator (??) over logical OR (||) for nullish values.";
|
|
1067
|
+
readonly id: "nullishCoalescingOperators";
|
|
1068
|
+
readonly presets: ["stylistic", "stylisticStrict"];
|
|
1069
|
+
} & {
|
|
1070
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
1071
|
+
url: string;
|
|
1072
|
+
}, object, object, "preferNullish" | "preferNullishAssignment" | "preferNullishTernary", {
|
|
1073
|
+
readonly ignoreConditionalTests: zod_v40.ZodDefault<zod_v40.ZodBoolean>;
|
|
1074
|
+
readonly ignoreIfStatements: zod_v40.ZodDefault<zod_v40.ZodBoolean>;
|
|
1075
|
+
readonly ignoreMixedLogicalExpressions: zod_v40.ZodDefault<zod_v40.ZodBoolean>;
|
|
1076
|
+
readonly ignorePrimitives: zod_v40.ZodDefault<zod_v40.ZodUnion<readonly [zod_v40.ZodBoolean, zod_v40.ZodRecord<zod_v40.ZodEnum<{
|
|
1077
|
+
string: "string";
|
|
1078
|
+
number: "number";
|
|
1079
|
+
bigint: "bigint";
|
|
1080
|
+
boolean: "boolean";
|
|
1081
|
+
}>, zod_v40.ZodBoolean>]>>;
|
|
1082
|
+
readonly ignoreTernaryTests: zod_v40.ZodDefault<zod_v40.ZodBoolean>;
|
|
1083
|
+
}>, _flint_fyi_core0.Rule<{
|
|
1084
|
+
readonly description: "Reports when number method arguments are outside their valid range.";
|
|
1085
|
+
readonly id: "numberMethodRanges";
|
|
1086
|
+
readonly presets: ["logical", "logicalStrict"];
|
|
1087
|
+
} & {
|
|
1088
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
1089
|
+
url: string;
|
|
1090
|
+
}, object, object, "outOfRange", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
1091
|
+
readonly description: "Reports using legacy global functions instead of `Number` static methods.";
|
|
1092
|
+
readonly id: "numberStaticMethods";
|
|
1093
|
+
readonly presets: ["logicalStrict"];
|
|
1094
|
+
} & {
|
|
1095
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
1096
|
+
url: string;
|
|
1097
|
+
}, object, object, "preferNumberMethod", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
1098
|
+
readonly description: "Reports operations that always result in zero, such as multiplication by zero.";
|
|
1099
|
+
readonly id: "numericErasingOperations";
|
|
1100
|
+
readonly presets: ["logicalStrict"];
|
|
1101
|
+
} & {
|
|
1102
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
1103
|
+
url: string;
|
|
1104
|
+
}, object, object, "erasingOperation", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
1105
|
+
readonly description: "Reports parseInt calls with binary, hexadecimal, or octal strings that can be replaced with numeric literals.";
|
|
1106
|
+
readonly id: "numericLiteralParsing";
|
|
1107
|
+
readonly presets: ["stylistic", "stylisticStrict"];
|
|
1108
|
+
} & {
|
|
1109
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
1110
|
+
url: string;
|
|
1111
|
+
}, object, object, "preferLiteral", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
1112
|
+
readonly description: "Reports numeric literals that lose precision when converted to JavaScript numbers.";
|
|
1113
|
+
readonly id: "numericPrecision";
|
|
1114
|
+
readonly presets: ["logicalStrict"];
|
|
1115
|
+
} & {
|
|
1116
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
1117
|
+
url: string;
|
|
1118
|
+
}, object, object, "lossOfPrecision", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
1119
|
+
readonly description: "Reports numeric literals with inconsistent separator grouping.";
|
|
1120
|
+
readonly id: "numericSeparatorGroups";
|
|
1121
|
+
readonly presets: ["stylisticStrict"];
|
|
1122
|
+
} & {
|
|
1123
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
1124
|
+
url: string;
|
|
1125
|
+
}, object, object, "invalidGrouping", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
1126
|
+
readonly description: "Prefer object spread syntax over `Object.assign()` when the first argument is an object literal.";
|
|
1127
|
+
readonly id: "objectAssignSpreads";
|
|
1128
|
+
readonly presets: ["stylistic", "stylisticStrict"];
|
|
1129
|
+
} & {
|
|
1130
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
1131
|
+
url: string;
|
|
1132
|
+
}, object, object, "preferObjectLiteral" | "preferObjectSpread", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
1133
|
+
readonly description: "Prefer `{}` object literal notation or `Object.create` instead of calling or constructing `Object`.";
|
|
1134
|
+
readonly id: "objectCalls";
|
|
1135
|
+
readonly presets: ["stylistic", "stylisticStrict"];
|
|
1136
|
+
} & {
|
|
1137
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
1138
|
+
url: string;
|
|
1139
|
+
}, object, object, "preferObjectLiteral", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
1140
|
+
readonly description: "Prefer Object.fromEntries() over reduce patterns that build objects from key-value pairs.";
|
|
1141
|
+
readonly id: "objectEntriesMethods";
|
|
1142
|
+
readonly presets: ["stylistic", "stylisticStrict"];
|
|
1143
|
+
} & {
|
|
1144
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
1145
|
+
url: string;
|
|
1146
|
+
}, object, object, "preferFromEntries", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
1147
|
+
readonly description: "Prefer Object.hasOwn() over Object.prototype.hasOwnProperty.call() for checking own properties.";
|
|
1148
|
+
readonly id: "objectHasOwns";
|
|
1149
|
+
readonly presets: ["stylistic", "stylisticStrict"];
|
|
1150
|
+
} & {
|
|
1151
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
1152
|
+
url: string;
|
|
1153
|
+
}, object, object, "preferHasOwn", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
1154
|
+
readonly description: "Reports unnecessary duplicate keys that override previous values.";
|
|
1155
|
+
readonly id: "objectKeyDuplicates";
|
|
1156
|
+
readonly presets: ["javascript"];
|
|
1157
|
+
} & {
|
|
1158
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
1159
|
+
url: string;
|
|
1160
|
+
}, object, object, "duplicateKey", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
1161
|
+
readonly description: "Reports using the deprecated __proto__ property to access or modify an object's prototype.";
|
|
1162
|
+
readonly id: "objectProto";
|
|
1163
|
+
readonly presets: ["javascript"];
|
|
1164
|
+
} & {
|
|
1165
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
1166
|
+
url: string;
|
|
1167
|
+
}, object, object, "noProto", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
1168
|
+
readonly description: "Reports direct calls to Object.prototype methods on object instances.";
|
|
1169
|
+
readonly id: "objectPrototypeBuiltIns";
|
|
1170
|
+
readonly presets: ["logical", "logicalStrict"];
|
|
1171
|
+
} & {
|
|
1172
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
1173
|
+
url: string;
|
|
1174
|
+
}, object, object, "prototypeBuiltIn", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
1175
|
+
readonly description: "Object property and method definitions can use shorthand syntax when the key matches the value identifier or when a function expression is assigned.";
|
|
1176
|
+
readonly id: "objectShorthand";
|
|
1177
|
+
readonly presets: ["stylistic", "stylisticStrict"];
|
|
1178
|
+
} & {
|
|
1179
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
1180
|
+
url: string;
|
|
1181
|
+
}, object, object, "expectedMethodShorthand" | "expectedPropertyShorthand", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
1182
|
+
readonly description: "Reports empty object fallbacks in object spread expressions that have no effect.";
|
|
1183
|
+
readonly id: "objectSpreadUnnecessaryFallbacks";
|
|
1184
|
+
readonly presets: ["logical", "logicalStrict"];
|
|
1185
|
+
} & {
|
|
1186
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
1187
|
+
url: string;
|
|
1188
|
+
}, object, object, "unnecessaryFallback", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
1189
|
+
readonly description: "Prefer interface declarations over type aliases for object types.";
|
|
1190
|
+
readonly id: "objectTypeDefinitions";
|
|
1191
|
+
readonly presets: ["stylistic", "stylisticStrict"];
|
|
1192
|
+
} & {
|
|
1193
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
1194
|
+
url: string;
|
|
1195
|
+
}, object, object, "preferInterface", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
1196
|
+
readonly description: "Reports using octal escape sequences in string literals.";
|
|
1197
|
+
readonly id: "octalEscapes";
|
|
1198
|
+
readonly presets: ["javascript"];
|
|
1199
|
+
} & {
|
|
1200
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
1201
|
+
url: string;
|
|
1202
|
+
}, object, object, "noOctalEscape", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
1203
|
+
readonly description: "Reports using legacy octal numeric literals.";
|
|
1204
|
+
readonly id: "octalNumbers";
|
|
1205
|
+
readonly presets: ["javascript"];
|
|
1206
|
+
} & {
|
|
1207
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
1208
|
+
url: string;
|
|
1209
|
+
}, object, object, "noOctalNumber", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
1210
|
+
readonly description: "Prefer assignment operator shorthand where possible.";
|
|
1211
|
+
readonly id: "operatorAssignmentShorthand";
|
|
1212
|
+
readonly presets: ["stylistic", "stylisticStrict"];
|
|
1213
|
+
} & {
|
|
1214
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
1215
|
+
url: string;
|
|
1216
|
+
}, object, object, "preferShorthand", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
1217
|
+
readonly description: "Require that function overload signatures be consecutive.";
|
|
1218
|
+
readonly id: "overloadSignaturesAdjacent";
|
|
1219
|
+
readonly presets: ["stylistic", "stylisticStrict"];
|
|
1220
|
+
} & {
|
|
1221
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
1222
|
+
url: string;
|
|
1223
|
+
}, object, object, "overloadSignatureSeparated", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
1224
|
+
readonly description: "Disallow reassignment of function parameters.";
|
|
1225
|
+
readonly id: "parameterReassignments";
|
|
1226
|
+
readonly presets: ["logical"];
|
|
1227
|
+
} & {
|
|
1228
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
1229
|
+
url: string;
|
|
1230
|
+
}, object, object, "parameterReassignment", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
1231
|
+
readonly description: "Reports parseInt calls that are missing or have an invalid radix parameter.";
|
|
1232
|
+
readonly id: "parseIntRadixes";
|
|
1233
|
+
readonly presets: ["logical", "logicalStrict"];
|
|
1234
|
+
} & {
|
|
1235
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
1236
|
+
url: string;
|
|
1237
|
+
}, object, object, "invalidRadix" | "missingRadix", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
1238
|
+
readonly description: "Reports bracket notation property access when dot notation can be used.";
|
|
1239
|
+
readonly id: "propertyAccessNotation";
|
|
1240
|
+
readonly presets: ["stylistic", "stylisticStrict"];
|
|
1241
|
+
} & {
|
|
1242
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
1243
|
+
url: string;
|
|
1244
|
+
}, object, object, "preferDotNotation", {
|
|
1245
|
+
readonly allowIndexSignaturePropertyAccess: zod_v40.ZodDefault<zod_v40.ZodBoolean>;
|
|
1246
|
+
}>, _flint_fyi_core0.Rule<{
|
|
1247
|
+
readonly description: "Reports function parameters that are only used in recursive calls.";
|
|
1248
|
+
readonly id: "recursionOnlyArguments";
|
|
1249
|
+
readonly presets: ["logical", "logicalStrict"];
|
|
1250
|
+
} & {
|
|
1251
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
1252
|
+
url: string;
|
|
1253
|
+
}, object, object, "onlyUsedInRecursion", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
1254
|
+
readonly description: "Reports union and intersection type constituents that are redundant or override other types.";
|
|
1255
|
+
readonly id: "redundantTypeConstituents";
|
|
1256
|
+
readonly presets: ["logical", "logicalStrict"];
|
|
1257
|
+
} & {
|
|
1258
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
1259
|
+
url: string;
|
|
1260
|
+
}, object, object, "errorTypeOverrides" | "literalOverridden" | "overridden" | "overrides" | "primitiveOverridden", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
1261
|
+
readonly description: "Reports `matchAll()` and `replaceAll()` calls with regex arguments missing the global flag.";
|
|
1262
|
+
readonly id: "regexAllGlobalFlags";
|
|
1263
|
+
readonly presets: ["logical"];
|
|
1264
|
+
} & {
|
|
1265
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
1266
|
+
url: string;
|
|
1267
|
+
}, object, object, "missingGlobalFlag", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
1268
|
+
readonly description: "Reports regex patterns that use ambiguous or invalid syntax from Annex B.";
|
|
1269
|
+
readonly id: "regexAmbiguousInvalidity";
|
|
1270
|
+
readonly presets: ["logical", "logicalStrict"];
|
|
1271
|
+
} & {
|
|
1272
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
1273
|
+
url: string;
|
|
1274
|
+
}, object, object, "incompleteBackreference" | "incompleteEscapeSequence" | "invalidControlEscape" | "invalidPropertyEscape" | "invalidRange" | "octalEscape" | "quantifiedAssertion" | "regexMessage" | "unescapedSourceCharacter" | "uselessEscape", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
1275
|
+
readonly description: "Reports regex alternations that can be simplified to character classes.";
|
|
1276
|
+
readonly id: "regexCharacterClasses";
|
|
1277
|
+
readonly presets: ["stylisticStrict"];
|
|
1278
|
+
} & {
|
|
1279
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
1280
|
+
url: string;
|
|
1281
|
+
}, object, object, "preferCharacterClass", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
1282
|
+
readonly description: "Reports character class elements that can be simplified to ranges.";
|
|
1283
|
+
readonly id: "regexCharacterClassRanges";
|
|
1284
|
+
readonly presets: ["stylistic", "stylisticStrict"];
|
|
1285
|
+
} & {
|
|
1286
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
1287
|
+
url: string;
|
|
1288
|
+
}, object, object, "preferRange", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
1289
|
+
readonly description: "Reports lookarounds that can be replaced with character class set operations.";
|
|
1290
|
+
readonly id: "regexCharacterClassSetOperations";
|
|
1291
|
+
readonly presets: ["stylistic", "stylisticStrict"];
|
|
1292
|
+
} & {
|
|
1293
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
1294
|
+
url: string;
|
|
1295
|
+
}, object, object, "preferSetOperation", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
1296
|
+
readonly description: "Reports negated character classes that can use shorthand escapes.";
|
|
1297
|
+
readonly id: "regexConciseCharacterClassNegations";
|
|
1298
|
+
readonly presets: ["stylistic", "stylisticStrict"];
|
|
1299
|
+
} & {
|
|
1300
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
1301
|
+
url: string;
|
|
1302
|
+
}, object, object, "preferNegatedEscape", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
1303
|
+
readonly description: "Reports elements in regular expressions that contradict assertions.";
|
|
1304
|
+
readonly id: "regexContradictoryAssertions";
|
|
1305
|
+
readonly presets: ["logical", "logicalStrict"];
|
|
1306
|
+
} & {
|
|
1307
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
1308
|
+
url: string;
|
|
1309
|
+
}, object, object, "alwaysEnter" | "cannotEnter", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
1310
|
+
readonly description: "Reports control characters that are not escaped using standard escape sequences.";
|
|
1311
|
+
readonly id: "regexControlCharacterEscapes";
|
|
1312
|
+
readonly presets: ["logical", "logicalStrict"];
|
|
1313
|
+
} & {
|
|
1314
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
1315
|
+
url: string;
|
|
1316
|
+
}, object, object, "preferStandardEscape", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
1317
|
+
readonly description: "Reports control characters in regular expressions.";
|
|
1318
|
+
readonly id: "regexControlCharacters";
|
|
1319
|
+
readonly presets: ["logical", "logicalStrict"];
|
|
1320
|
+
} & {
|
|
1321
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
1322
|
+
url: string;
|
|
1323
|
+
}, object, object, "unexpectedControlChar", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
1324
|
+
readonly description: "Reports character classes with multiple adjacent characters that could use a range instead.";
|
|
1325
|
+
readonly id: "regexDigitMatchers";
|
|
1326
|
+
readonly presets: ["stylisticStrict"];
|
|
1327
|
+
} & {
|
|
1328
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
1329
|
+
url: string;
|
|
1330
|
+
}, object, object, "preferRange", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
1331
|
+
readonly description: "Reports replacement strings with unescaped `$` that should use `$$`.";
|
|
1332
|
+
readonly id: "regexDollarEscapes";
|
|
1333
|
+
readonly presets: ["stylistic", "stylisticStrict"];
|
|
1334
|
+
} & {
|
|
1335
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
1336
|
+
url: string;
|
|
1337
|
+
}, object, object, "unescapedDollar", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
1338
|
+
readonly description: "Reports duplicate characters in regular expression character classes.";
|
|
1339
|
+
readonly id: "regexDuplicateCharacterClassCharacters";
|
|
1340
|
+
readonly presets: ["logical", "logicalStrict"];
|
|
1341
|
+
} & {
|
|
1342
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
1343
|
+
url: string;
|
|
1344
|
+
}, object, object, "duplicate" | "includedInRange", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
1345
|
+
readonly description: "Reports empty alternatives in regular expressions that may indicate a mistake.";
|
|
1346
|
+
readonly id: "regexEmptyAlternatives";
|
|
1347
|
+
readonly presets: ["logical", "logicalStrict"];
|
|
1348
|
+
} & {
|
|
1349
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
1350
|
+
url: string;
|
|
1351
|
+
}, object, object, "emptyAlternative", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
1352
|
+
readonly description: "Reports capturing groups that only capture empty strings.";
|
|
1353
|
+
readonly id: "regexEmptyCapturingGroups";
|
|
1354
|
+
readonly presets: ["logical", "logicalStrict"];
|
|
1355
|
+
} & {
|
|
1356
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
1357
|
+
url: string;
|
|
1358
|
+
}, object, object, "emptyCapture", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
1359
|
+
readonly description: "Reports character classes that match no characters.";
|
|
1360
|
+
readonly id: "regexEmptyCharacterClasses";
|
|
1361
|
+
readonly presets: ["logical", "logicalStrict"];
|
|
1362
|
+
} & {
|
|
1363
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
1364
|
+
url: string;
|
|
1365
|
+
}, object, object, "empty", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
1366
|
+
readonly description: "Reports empty groups in regular expressions.";
|
|
1367
|
+
readonly id: "regexEmptyGroups";
|
|
1368
|
+
readonly presets: ["logical", "logicalStrict"];
|
|
1369
|
+
} & {
|
|
1370
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
1371
|
+
url: string;
|
|
1372
|
+
}, object, object, "emptyGroup", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
1373
|
+
readonly description: "Reports lazy quantifiers at the end of regular expressions.";
|
|
1374
|
+
readonly id: "regexEmptyLazyQuantifiers";
|
|
1375
|
+
readonly presets: ["logical"];
|
|
1376
|
+
} & {
|
|
1377
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
1378
|
+
url: string;
|
|
1379
|
+
}, object, object, "uselessElement" | "uselessQuantifier" | "uselessRange", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
1380
|
+
readonly description: "Reports empty lookahead and lookbehind assertions in regular expressions.";
|
|
1381
|
+
readonly id: "regexEmptyLookaroundsAssertions";
|
|
1382
|
+
readonly presets: ["logical", "logicalStrict"];
|
|
1383
|
+
} & {
|
|
1384
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
1385
|
+
url: string;
|
|
1386
|
+
}, object, object, "emptyLookaround", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
1387
|
+
readonly description: "Reports empty string literals in character classes.";
|
|
1388
|
+
readonly id: "regexEmptyStringLiterals";
|
|
1389
|
+
readonly presets: ["logical", "logicalStrict"];
|
|
1390
|
+
} & {
|
|
1391
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
1392
|
+
url: string;
|
|
1393
|
+
}, object, object, "emptyStringLiteral", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
1394
|
+
readonly description: "Reports escape backspace (`[\\b]`) in character classes.";
|
|
1395
|
+
readonly id: "regexEscapeBackspaces";
|
|
1396
|
+
readonly presets: ["stylistic", "stylisticStrict"];
|
|
1397
|
+
} & {
|
|
1398
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
1399
|
+
url: string;
|
|
1400
|
+
}, object, object, "escapeBackspace", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
1401
|
+
readonly description: "Reports String.prototype.match calls that can be replaced with RegExp.prototype.exec.";
|
|
1402
|
+
readonly id: "regexExecutors";
|
|
1403
|
+
readonly presets: ["stylisticStrict"];
|
|
1404
|
+
} & {
|
|
1405
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
1406
|
+
url: string;
|
|
1407
|
+
}, object, object, "preferExec", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
1408
|
+
readonly description: "Reports string literals inside character classes with the `v` flag that contain multiple graphemes.";
|
|
1409
|
+
readonly id: "regexGraphemeStringLiterals";
|
|
1410
|
+
readonly presets: ["stylisticStrict"];
|
|
1411
|
+
} & {
|
|
1412
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
1413
|
+
url: string;
|
|
1414
|
+
}, object, object, "multipleGraphemes", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
1415
|
+
readonly description: "Reports regex character escapes that can be expressed more consistently using hexadecimal escapes.";
|
|
1416
|
+
readonly id: "regexHexadecimalEscapes";
|
|
1417
|
+
readonly presets: ["stylisticStrict"];
|
|
1418
|
+
} & {
|
|
1419
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
1420
|
+
url: string;
|
|
1421
|
+
}, object, object, "preferHexEscape", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
1422
|
+
readonly description: "Reports regex patterns that can be simplified by using the i (ignore case) flag.";
|
|
1423
|
+
readonly id: "regexIgnoreCaseFlags";
|
|
1424
|
+
readonly presets: ["logical", "logicalStrict"];
|
|
1425
|
+
} & {
|
|
1426
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
1427
|
+
url: string;
|
|
1428
|
+
}, object, object, "useIgnoreCase", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
1429
|
+
readonly description: "Reports invisible characters in regex patterns that should use escape sequences instead.";
|
|
1430
|
+
readonly id: "regexInvisibleCharacters";
|
|
1431
|
+
readonly presets: ["logical", "logicalStrict"];
|
|
1432
|
+
} & {
|
|
1433
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
1434
|
+
url: string;
|
|
1435
|
+
}, object, object, "unexpectedInvisible", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
1436
|
+
readonly description: "Reports inconsistent letter casing in regex sequences.";
|
|
1437
|
+
readonly id: "regexLetterCasing";
|
|
1438
|
+
readonly presets: ["stylisticStrict"];
|
|
1439
|
+
} & {
|
|
1440
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
1441
|
+
url: string;
|
|
1442
|
+
}, object, object, "unexpectedCase", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
1443
|
+
readonly description: "Use a regular expression literal when the pattern is static.";
|
|
1444
|
+
readonly id: "regexLiterals";
|
|
1445
|
+
readonly presets: ["logical", "logicalStrict"];
|
|
1446
|
+
} & {
|
|
1447
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
1448
|
+
url: string;
|
|
1449
|
+
}, object, object, "preferLiteral", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
1450
|
+
readonly description: "Reports capturing groups at pattern boundaries that can be replaced with lookaround assertions.";
|
|
1451
|
+
readonly id: "regexLookaroundAssertions";
|
|
1452
|
+
readonly presets: ["stylisticStrict"];
|
|
1453
|
+
} & {
|
|
1454
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
1455
|
+
url: string;
|
|
1456
|
+
}, object, object, "preferLookaround", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
1457
|
+
readonly description: "Reports non-constant quantifiers in lookaround assertions that could be simplified.";
|
|
1458
|
+
readonly id: "regexLookaroundQuantifierOptimizations";
|
|
1459
|
+
readonly presets: ["logical"];
|
|
1460
|
+
} & {
|
|
1461
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
1462
|
+
url: string;
|
|
1463
|
+
}, object, object, "replace" | "remove", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
1464
|
+
readonly description: "Reports inconsistent notations for matching any character in regular expressions.";
|
|
1465
|
+
readonly id: "regexMatchNotation";
|
|
1466
|
+
readonly presets: ["stylisticStrict"];
|
|
1467
|
+
} & {
|
|
1468
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
1469
|
+
url: string;
|
|
1470
|
+
}, object, object, "unexpected", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
1471
|
+
readonly description: "Reports capturing groups that capture less text than their pattern suggests.";
|
|
1472
|
+
readonly id: "regexMisleadingCapturingGroups";
|
|
1473
|
+
readonly presets: ["logical", "logicalStrict"];
|
|
1474
|
+
} & {
|
|
1475
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
1476
|
+
url: string;
|
|
1477
|
+
}, object, object, "misleadingEnd" | "misleadingStart", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
1478
|
+
readonly description: "Reports quantifiers whose minimum implies they must match but whose element can match empty.";
|
|
1479
|
+
readonly id: "regexMisleadingQuantifiers";
|
|
1480
|
+
readonly presets: ["logical"];
|
|
1481
|
+
} & {
|
|
1482
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
1483
|
+
url: string;
|
|
1484
|
+
}, object, object, "confusing", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
1485
|
+
readonly description: "Reports characters in regex character classes that appear as single visual characters but are made of multiple code points.";
|
|
1486
|
+
readonly id: "regexMisleadingUnicodeCharacters";
|
|
1487
|
+
readonly presets: ["logical", "logicalStrict"];
|
|
1488
|
+
} & {
|
|
1489
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
1490
|
+
url: string;
|
|
1491
|
+
}, object, object, "combiningClass" | "emojiModifier" | "regionalIndicatorSymbol" | "surrogatePair" | "surrogatePairWithoutUFlag" | "zwj", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
1492
|
+
readonly description: "Reports backreferences that do not use the name of their referenced capturing group.";
|
|
1493
|
+
readonly id: "regexNamedBackreferences";
|
|
1494
|
+
readonly presets: ["stylisticStrict"];
|
|
1495
|
+
} & {
|
|
1496
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
1497
|
+
url: string;
|
|
1498
|
+
}, object, object, "preferNamed", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
1499
|
+
readonly description: "Reports capturing groups in regular expressions that do not have a name.";
|
|
1500
|
+
readonly id: "regexNamedCaptureGroups";
|
|
1501
|
+
} & {
|
|
1502
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
1503
|
+
url: string;
|
|
1504
|
+
}, object, object, "preferNamed", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
1505
|
+
readonly description: "Reports indexed references in replacement strings that should use named references.";
|
|
1506
|
+
readonly id: "regexNamedReplacements";
|
|
1507
|
+
readonly presets: ["stylisticStrict"];
|
|
1508
|
+
} & {
|
|
1509
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
1510
|
+
url: string;
|
|
1511
|
+
}, object, object, "preferNamed", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
1512
|
+
readonly description: "Reports non-standard regular expression flags.";
|
|
1513
|
+
readonly id: "regexNonStandardFlags";
|
|
1514
|
+
readonly presets: ["logical", "logicalStrict"];
|
|
1515
|
+
} & {
|
|
1516
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
1517
|
+
url: string;
|
|
1518
|
+
}, object, object, "unexpected", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
1519
|
+
readonly description: "Reports obscure character ranges in regular expressions.";
|
|
1520
|
+
readonly id: "regexObscureRanges";
|
|
1521
|
+
readonly presets: ["logical", "logicalStrict"];
|
|
1522
|
+
} & {
|
|
1523
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
1524
|
+
url: string;
|
|
1525
|
+
}, object, object, "obscure", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
1526
|
+
readonly description: "Reports octal escape sequences in regular expressions.";
|
|
1527
|
+
readonly id: "regexOctalEscapes";
|
|
1528
|
+
readonly presets: ["logical", "logicalStrict"];
|
|
1529
|
+
} & {
|
|
1530
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
1531
|
+
url: string;
|
|
1532
|
+
}, object, object, "unexpected", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
1533
|
+
readonly description: "Reports quantifiers `{1,}` in regular expressions that should use `+` instead.";
|
|
1534
|
+
readonly id: "regexPlusQuantifiers";
|
|
1535
|
+
readonly presets: ["stylisticStrict"];
|
|
1536
|
+
} & {
|
|
1537
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
1538
|
+
url: string;
|
|
1539
|
+
}, object, object, "preferPlus", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
1540
|
+
readonly description: "Reports regex lookarounds that can be replaced with predefined assertions.";
|
|
1541
|
+
readonly id: "regexPredefinedAssertions";
|
|
1542
|
+
readonly presets: ["stylistic"];
|
|
1543
|
+
} & {
|
|
1544
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
1545
|
+
url: string;
|
|
1546
|
+
}, object, object, "preferPredefinedAssertion", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
1547
|
+
readonly description: "Reports quantifiers `{0,1}` in regular expressions that should use `?` instead.";
|
|
1548
|
+
readonly id: "regexQuestionQuantifiers";
|
|
1549
|
+
readonly presets: ["stylisticStrict"];
|
|
1550
|
+
} & {
|
|
1551
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
1552
|
+
url: string;
|
|
1553
|
+
}, object, object, "preferOptionalGroup" | "preferQuestion", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
1554
|
+
readonly description: "Reports consecutive identical elements in regular expressions that should use quantifiers.";
|
|
1555
|
+
readonly id: "regexRepeatQuantifiers";
|
|
1556
|
+
readonly presets: ["stylistic", "stylisticStrict"];
|
|
1557
|
+
} & {
|
|
1558
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
1559
|
+
url: string;
|
|
1560
|
+
}, object, object, "preferQuantifier", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
1561
|
+
readonly description: "Reports indexed access on regex result arrays when named capturing groups should be used.";
|
|
1562
|
+
readonly id: "regexResultArrayGroups";
|
|
1563
|
+
readonly presets: ["stylisticStrict"];
|
|
1564
|
+
} & {
|
|
1565
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
1566
|
+
url: string;
|
|
1567
|
+
}, object, object, "preferGroups", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
1568
|
+
readonly description: "Reports set operations in regular expressions that can be simplified.";
|
|
1569
|
+
readonly id: "regexSetOperationOptimizations";
|
|
1570
|
+
readonly presets: ["logical", "logicalStrict"];
|
|
1571
|
+
} & {
|
|
1572
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
1573
|
+
url: string;
|
|
1574
|
+
}, object, object, "toIntersection" | "toNegationOfConjunction" | "toNegationOfDisjunction" | "toSubtraction", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
1575
|
+
readonly description: "Reports standalone backslashes in regex patterns that look like incomplete escape sequences.";
|
|
1576
|
+
readonly id: "regexStandaloneBackslashes";
|
|
1577
|
+
readonly presets: ["logical", "logicalStrict"];
|
|
1578
|
+
} & {
|
|
1579
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
1580
|
+
url: string;
|
|
1581
|
+
}, object, object, "standaloneBackslash", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
1582
|
+
readonly description: "Reports quantifiers `{0,}` in regular expressions that should use `*` instead.";
|
|
1583
|
+
readonly id: "regexStarQuantifiers";
|
|
1584
|
+
readonly presets: ["stylisticStrict"];
|
|
1585
|
+
} & {
|
|
1586
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
1587
|
+
url: string;
|
|
1588
|
+
}, object, object, "preferStar", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
1589
|
+
readonly description: "Reports regular expressions with exponential or polynomial backtracking.";
|
|
1590
|
+
readonly id: "regexSuperLinearBacktracking";
|
|
1591
|
+
readonly presets: ["logical", "logicalStrict"];
|
|
1592
|
+
} & {
|
|
1593
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
1594
|
+
url: string;
|
|
1595
|
+
}, object, object, "self" | "trade", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
1596
|
+
readonly description: "Reports quantifiers that can cause quadratic regex matching time.";
|
|
1597
|
+
readonly id: "regexSuperLinearMoves";
|
|
1598
|
+
readonly presets: ["logical"];
|
|
1599
|
+
} & {
|
|
1600
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
1601
|
+
url: string;
|
|
1602
|
+
}, object, object, "superLinear", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
1603
|
+
readonly description: "Reports match() and exec() calls that should use RegExp.prototype.test() for boolean checks.";
|
|
1604
|
+
readonly id: "regexTestMethods";
|
|
1605
|
+
readonly presets: ["stylistic", "stylisticStrict"];
|
|
1606
|
+
} & {
|
|
1607
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
1608
|
+
url: string;
|
|
1609
|
+
}, object, object, "preferTest", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
1610
|
+
readonly description: "Reports surrogate pair escapes in regular expressions that can be replaced with Unicode codepoint escapes.";
|
|
1611
|
+
readonly id: "regexUnicodeCodepointEscapes";
|
|
1612
|
+
readonly presets: ["stylistic", "stylisticStrict"];
|
|
1613
|
+
} & {
|
|
1614
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
1615
|
+
url: string;
|
|
1616
|
+
}, object, object, "useSurrogatePair", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
1617
|
+
readonly description: "Enforces consistent Unicode escape style in regex patterns by preferring codepoint escapes.";
|
|
1618
|
+
readonly id: "regexUnicodeEscapes";
|
|
1619
|
+
} & {
|
|
1620
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
1621
|
+
url: string;
|
|
1622
|
+
}, object, object, "preferCodepointEscape", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
1623
|
+
readonly description: "Require regex patterns to have the unicode ('u') or unicodeSets ('v') flag for proper Unicode character handling.";
|
|
1624
|
+
readonly id: "regexUnicodeFlag";
|
|
1625
|
+
} & {
|
|
1626
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
1627
|
+
url: string;
|
|
1628
|
+
}, object, object, "missing", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
1629
|
+
readonly description: "Reports inconsistent Unicode property names in regular expressions.";
|
|
1630
|
+
readonly id: "regexUnicodeProperties";
|
|
1631
|
+
readonly presets: ["stylistic"];
|
|
1632
|
+
} & {
|
|
1633
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
1634
|
+
url: string;
|
|
1635
|
+
}, object, object, "preferLongScript" | "unnecessaryPrefix", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
1636
|
+
readonly description: "Reports assertions in regular expressions that always reject.";
|
|
1637
|
+
readonly id: "regexUnnecessaryAssertions";
|
|
1638
|
+
readonly presets: ["logical"];
|
|
1639
|
+
} & {
|
|
1640
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
1641
|
+
url: string;
|
|
1642
|
+
}, object, object, "endAnchor" | "negatedWordBoundary" | "startAnchor" | "wordBoundary", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
1643
|
+
readonly description: "Reports backreferences in regular expressions that will always match empty or fail.";
|
|
1644
|
+
readonly id: "regexUnnecessaryBackreferences";
|
|
1645
|
+
readonly presets: ["logical"];
|
|
1646
|
+
} & {
|
|
1647
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
1648
|
+
url: string;
|
|
1649
|
+
}, object, object, "nested" | "disjunctive" | "intoNegativeLookaround" | "forward" | "backward", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
1650
|
+
readonly description: "Reports character classes that wrap a single element that does not require brackets.";
|
|
1651
|
+
readonly id: "regexUnnecessaryCharacterClasses";
|
|
1652
|
+
readonly presets: ["logical", "logicalStrict"];
|
|
1653
|
+
} & {
|
|
1654
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
1655
|
+
url: string;
|
|
1656
|
+
}, object, object, "unnecessary", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
1657
|
+
readonly description: "Reports character class ranges that span only one or two characters.";
|
|
1658
|
+
readonly id: "regexUnnecessaryCharacterRanges";
|
|
1659
|
+
readonly presets: ["logical", "logicalStrict"];
|
|
1660
|
+
} & {
|
|
1661
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
1662
|
+
url: string;
|
|
1663
|
+
}, object, object, "adjacent" | "identity", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
1664
|
+
readonly description: "Reports single-character alternatives in string disjunctions.";
|
|
1665
|
+
readonly id: "regexUnnecessaryDisjunctions";
|
|
1666
|
+
readonly presets: ["logical"];
|
|
1667
|
+
} & {
|
|
1668
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
1669
|
+
url: string;
|
|
1670
|
+
}, object, object, "unnecessary", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
1671
|
+
readonly description: "Reports replacement string references to capturing groups that do not exist in the pattern.";
|
|
1672
|
+
readonly id: "regexUnnecessaryDollarReplacements";
|
|
1673
|
+
readonly presets: ["logical", "logicalStrict"];
|
|
1674
|
+
} & {
|
|
1675
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
1676
|
+
url: string;
|
|
1677
|
+
}, object, object, "namedNotFound" | "numericNotFound", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
1678
|
+
readonly description: "Reports unnecessary escape sequences in regular expressions.";
|
|
1679
|
+
readonly id: "regexUnnecessaryEscapes";
|
|
1680
|
+
readonly presets: ["stylistic"];
|
|
1681
|
+
} & {
|
|
1682
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
1683
|
+
url: string;
|
|
1684
|
+
}, object, object, "unnecessary", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
1685
|
+
readonly description: "Reports unnecessary nested lookaround assertions in regular expressions.";
|
|
1686
|
+
readonly id: "regexUnnecessaryLookaroundAssertions";
|
|
1687
|
+
readonly presets: ["logical"];
|
|
1688
|
+
} & {
|
|
1689
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
1690
|
+
url: string;
|
|
1691
|
+
}, object, object, "lookahead" | "lookbehind", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
1692
|
+
readonly description: "Reports trivially nested assertions in regular expressions that can be simplified.";
|
|
1693
|
+
readonly id: "regexUnnecessaryNestedAssertions";
|
|
1694
|
+
readonly presets: ["logical"];
|
|
1695
|
+
} & {
|
|
1696
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
1697
|
+
url: string;
|
|
1698
|
+
}, object, object, "unnecessaryNesting", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
1699
|
+
readonly description: "Reports trivially nested quantifiers in regular expressions that can be simplified.";
|
|
1700
|
+
readonly id: "regexUnnecessaryNestedQuantifiers";
|
|
1701
|
+
readonly presets: ["logical"];
|
|
1702
|
+
} & {
|
|
1703
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
1704
|
+
url: string;
|
|
1705
|
+
}, object, object, "unnecessaryNestedQuantifiers", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
1706
|
+
readonly description: "Reports non-capturing groups that can be removed without changing the meaning of the regex.";
|
|
1707
|
+
readonly id: "regexUnnecessaryNonCapturingGroups";
|
|
1708
|
+
readonly presets: ["stylistic"];
|
|
1709
|
+
} & {
|
|
1710
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
1711
|
+
url: string;
|
|
1712
|
+
}, object, object, "unnecessaryGroup", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
1713
|
+
readonly description: "Reports numeric quantifiers like '{n,n}' that can be simplified to '{n}'.";
|
|
1714
|
+
readonly id: "regexUnnecessaryNumericQuantifiers";
|
|
1715
|
+
readonly presets: ["logical"];
|
|
1716
|
+
} & {
|
|
1717
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
1718
|
+
url: string;
|
|
1719
|
+
}, object, object, "unnecessaryNumericQuantifier", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
1720
|
+
readonly description: "Reports assertions inside optional quantifiers that have no effect.";
|
|
1721
|
+
readonly id: "regexUnnecessaryOptionalAssertions";
|
|
1722
|
+
readonly presets: ["logical"];
|
|
1723
|
+
} & {
|
|
1724
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
1725
|
+
url: string;
|
|
1726
|
+
}, object, object, "unnecessaryOptionalAssertion", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
1727
|
+
readonly description: "Reports backreferences that may reference a capturing group that was not matched.";
|
|
1728
|
+
readonly id: "regexUnnecessaryReferentialBackreferences";
|
|
1729
|
+
readonly presets: ["logical"];
|
|
1730
|
+
} & {
|
|
1731
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
1732
|
+
url: string;
|
|
1733
|
+
}, object, object, "potentiallyUselessBackref", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
1734
|
+
readonly description: "Reports unnecessary operands in regular expression character class set operations.";
|
|
1735
|
+
readonly id: "regexUnnecessarySetOperands";
|
|
1736
|
+
readonly presets: ["logical"];
|
|
1737
|
+
} & {
|
|
1738
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
1739
|
+
url: string;
|
|
1740
|
+
}, object, object, "intersectionDisjoint" | "intersectionSubset" | "subtractionDisjoint" | "subtractionSubset", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
1741
|
+
readonly description: "Reports capturing groups in regular expressions that are never referenced.";
|
|
1742
|
+
readonly id: "regexUnusedCapturingGroups";
|
|
1743
|
+
readonly presets: ["logical"];
|
|
1744
|
+
} & {
|
|
1745
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
1746
|
+
url: string;
|
|
1747
|
+
}, object, object, "unusedCapture", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
1748
|
+
readonly description: "Reports regular expression flags that have no effect on the pattern.";
|
|
1749
|
+
readonly id: "regexUnusedFlags";
|
|
1750
|
+
readonly presets: ["logical"];
|
|
1751
|
+
} & {
|
|
1752
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
1753
|
+
url: string;
|
|
1754
|
+
}, object, object, "unusedDotAll" | "unusedIgnoreCase" | "unusedMultiline", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
1755
|
+
readonly description: "Reports lazy quantifiers that have no effect because the quantifier is constant.";
|
|
1756
|
+
readonly id: "regexUnusedLazyQuantifiers";
|
|
1757
|
+
readonly presets: ["logical"];
|
|
1758
|
+
} & {
|
|
1759
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
1760
|
+
url: string;
|
|
1761
|
+
}, object, object, "uselessLazy", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
1762
|
+
readonly description: "Reports quantifiers that match exactly once, making them unnecessary.";
|
|
1763
|
+
readonly id: "regexUnusedQuantifiers";
|
|
1764
|
+
readonly presets: ["logical"];
|
|
1765
|
+
} & {
|
|
1766
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
1767
|
+
url: string;
|
|
1768
|
+
}, object, object, "uselessQuantifier", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
1769
|
+
readonly description: "Reports invalid regular expressions.";
|
|
1770
|
+
readonly id: "regexValidity";
|
|
1771
|
+
readonly presets: ["logical"];
|
|
1772
|
+
} & {
|
|
1773
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
1774
|
+
url: string;
|
|
1775
|
+
}, object, object, "conflictingFlags" | "duplicateFlag" | "invalidFlag" | "invalidPattern", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
1776
|
+
readonly description: "Reports character classes that match word characters and could use \\w or \\W instead.";
|
|
1777
|
+
readonly id: "regexWordMatchers";
|
|
1778
|
+
readonly presets: ["stylisticStrict"];
|
|
1779
|
+
} & {
|
|
1780
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
1781
|
+
url: string;
|
|
1782
|
+
}, object, object, "preferWord", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
1783
|
+
readonly description: "Reports quantifiers with a maximum of zero, which are useless.";
|
|
1784
|
+
readonly id: "regexZeroQuantifiers";
|
|
1785
|
+
readonly presets: ["logical"];
|
|
1786
|
+
} & {
|
|
1787
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
1788
|
+
url: string;
|
|
1789
|
+
}, object, object, "uselessZero", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
1790
|
+
readonly description: "Prefer `Response.json()` over `new Response(JSON.stringify(...))` for JSON responses.";
|
|
1791
|
+
readonly id: "responseJsonMethods";
|
|
1792
|
+
readonly presets: ["stylistic"];
|
|
1793
|
+
} & {
|
|
1794
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
1795
|
+
url: string;
|
|
1796
|
+
}, object, object, "preferResponseJson", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
1797
|
+
readonly description: "Disallows specific identifier names in binding positions.";
|
|
1798
|
+
readonly id: "restrictedIdentifiers";
|
|
1799
|
+
readonly presets: ["stylisticStrict"];
|
|
1800
|
+
} & {
|
|
1801
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
1802
|
+
url: string;
|
|
1803
|
+
}, object, object, "restricted", {
|
|
1804
|
+
readonly deny: zod_v40.ZodOptional<zod_v40.ZodArray<zod_v40.ZodString>>;
|
|
1805
|
+
}>, _flint_fyi_core0.Rule<{
|
|
1806
|
+
readonly description: "Reports using assignment expressions in return statements.";
|
|
1807
|
+
readonly id: "returnAssignments";
|
|
1808
|
+
readonly presets: ["stylistic", "stylisticStrict"];
|
|
1809
|
+
} & {
|
|
1810
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
1811
|
+
url: string;
|
|
1812
|
+
}, object, object, "noReturnAssign", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
1813
|
+
readonly description: "Enforce that `this` is used when only `this` type is returned.";
|
|
1814
|
+
readonly id: "returnThisTypes";
|
|
1815
|
+
readonly presets: ["logical"];
|
|
1816
|
+
} & {
|
|
1817
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
1818
|
+
url: string;
|
|
1819
|
+
}, object, object, "preferThis", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
1820
|
+
readonly description: "Reports self-assignments which have no effect and are likely errors.";
|
|
1821
|
+
readonly id: "selfAssignments";
|
|
1822
|
+
readonly presets: ["logical", "logicalStrict"];
|
|
1823
|
+
} & {
|
|
1824
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
1825
|
+
url: string;
|
|
1826
|
+
}, object, object, "selfAssignment", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
1827
|
+
readonly description: "Reports using the comma operator in expressions.";
|
|
1828
|
+
readonly id: "sequences";
|
|
1829
|
+
readonly presets: ["javascript"];
|
|
1830
|
+
} & {
|
|
1831
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
1832
|
+
url: string;
|
|
1833
|
+
}, object, object, "noSequences", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
1834
|
+
readonly description: "Prefer `Set.size` over spreading into an array and accessing `.length`.";
|
|
1835
|
+
readonly id: "setSizeLengthChecks";
|
|
1836
|
+
readonly presets: ["logical"];
|
|
1837
|
+
} & {
|
|
1838
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
1839
|
+
url: string;
|
|
1840
|
+
}, object, object, "preferSize", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
1841
|
+
readonly description: "Reports return statements with values inside setters.";
|
|
1842
|
+
readonly id: "setterReturns";
|
|
1843
|
+
readonly presets: ["javascript"];
|
|
1844
|
+
} & {
|
|
1845
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
1846
|
+
url: string;
|
|
1847
|
+
}, object, object, "noSetterReturn", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
1848
|
+
readonly description: "Reports variable declarations that shadow JavaScript's restricted names.";
|
|
1849
|
+
readonly id: "shadowedRestrictedNames";
|
|
1850
|
+
readonly presets: ["javascript"];
|
|
1851
|
+
} & {
|
|
1852
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
1853
|
+
url: string;
|
|
1854
|
+
}, object, object, "shadowedRestrictedName", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
1855
|
+
readonly description: "Enforces one variable per declaration statement.";
|
|
1856
|
+
readonly id: "singleVariableDeclarations";
|
|
1857
|
+
readonly presets: ["logical"];
|
|
1858
|
+
} & {
|
|
1859
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
1860
|
+
url: string;
|
|
1861
|
+
}, object, object, "singleVariable", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
1862
|
+
readonly description: "Enforce consistent style for `.length` and `.size` checks.";
|
|
1863
|
+
readonly id: "sizeComparisonOperators";
|
|
1864
|
+
readonly presets: ["stylisticStrict"];
|
|
1865
|
+
} & {
|
|
1866
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
1867
|
+
url: string;
|
|
1868
|
+
}, object, object, "coercionNonZeroCheck" | "coercionZeroCheck" | "explicitNonZeroCheck" | "explicitZeroCheck", {
|
|
1869
|
+
readonly style: zod_v40.ZodDefault<zod_v40.ZodEnum<{
|
|
1870
|
+
coercion: "coercion";
|
|
1871
|
+
explicit: "explicit";
|
|
1872
|
+
}>>;
|
|
1873
|
+
}>, _flint_fyi_core0.Rule<{
|
|
1874
|
+
readonly description: "Reports array literals with holes (sparse arrays).";
|
|
1875
|
+
readonly id: "sparseArrays";
|
|
1876
|
+
readonly presets: ["logical", "logicalStrict"];
|
|
1877
|
+
} & {
|
|
1878
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
1879
|
+
url: string;
|
|
1880
|
+
}, object, object, "noSparseArray", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
1881
|
+
readonly description: "Reports classes that only contain static members.";
|
|
1882
|
+
readonly id: "staticMemberOnlyClasses";
|
|
1883
|
+
readonly presets: ["logicalStrict"];
|
|
1884
|
+
} & {
|
|
1885
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
1886
|
+
url: string;
|
|
1887
|
+
}, object, object, "noStaticOnlyClass", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
1888
|
+
readonly description: "Reports string case method calls compared against literals with mismatched casing.";
|
|
1889
|
+
readonly id: "stringCaseMismatches";
|
|
1890
|
+
readonly presets: ["logical"];
|
|
1891
|
+
} & {
|
|
1892
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
1893
|
+
url: string;
|
|
1894
|
+
}, object, object, "mismatch", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
1895
|
+
readonly description: "Reports usage of charCodeAt and fromCharCode instead of their codePoint equivalents.";
|
|
1896
|
+
readonly id: "stringCodePoints";
|
|
1897
|
+
readonly presets: ["logical"];
|
|
1898
|
+
} & {
|
|
1899
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
1900
|
+
url: string;
|
|
1901
|
+
}, object, object, "preferCodePointAt" | "preferFromCodePoint", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
1902
|
+
readonly description: "Reports usage of `substring` instead of slice for string operations.";
|
|
1903
|
+
readonly id: "stringSliceMethods";
|
|
1904
|
+
readonly presets: ["logical"];
|
|
1905
|
+
} & {
|
|
1906
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
1907
|
+
url: string;
|
|
1908
|
+
}, object, object, "preferSliceOverSubstring", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
1909
|
+
readonly description: "Reports regex patterns that can be replaced with `endsWith` or `startsWith`.";
|
|
1910
|
+
readonly id: "stringStartsEndsWith";
|
|
1911
|
+
readonly presets: ["stylistic"];
|
|
1912
|
+
} & {
|
|
1913
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
1914
|
+
url: string;
|
|
1915
|
+
}, object, object, "preferEndsWith" | "preferStartsWith", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
1916
|
+
readonly description: "Reports JSON.parse(JSON.stringify()) patterns that can use structuredClone.";
|
|
1917
|
+
readonly id: "structuredCloneMethods";
|
|
1918
|
+
readonly presets: ["logical"];
|
|
1919
|
+
} & {
|
|
1920
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
1921
|
+
url: string;
|
|
1922
|
+
}, object, object, "preferStructuredClone", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
1923
|
+
readonly description: "Reports Symbol() calls without description arguments.";
|
|
1924
|
+
readonly id: "symbolDescriptions";
|
|
1925
|
+
readonly presets: ["stylistic", "stylisticStrict"];
|
|
1926
|
+
} & {
|
|
1927
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
1928
|
+
url: string;
|
|
1929
|
+
}, object, object, "missingDescription", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
1930
|
+
readonly description: "Reports assigning `this` to a variable.";
|
|
1931
|
+
readonly id: "thisAliases";
|
|
1932
|
+
readonly presets: ["logical"];
|
|
1933
|
+
} & {
|
|
1934
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
1935
|
+
url: string;
|
|
1936
|
+
}, object, object, "noThisAlias", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
1937
|
+
readonly description: "Reports using `this` or `super` before calling `super()` in derived class constructors.";
|
|
1938
|
+
readonly id: "thisBeforeSuper";
|
|
1939
|
+
readonly presets: ["javascript"];
|
|
1940
|
+
} & {
|
|
1941
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
1942
|
+
url: string;
|
|
1943
|
+
}, object, object, "thisBeforeSuper" | "superBeforeSuper", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
1944
|
+
readonly description: "Reports throwing values that are not `Error` objects.";
|
|
1945
|
+
readonly id: "throwErrors";
|
|
1946
|
+
readonly presets: ["logical"];
|
|
1947
|
+
} & {
|
|
1948
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
1949
|
+
url: string;
|
|
1950
|
+
}, object, object, "throwError" | "throwUndefined", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
1951
|
+
readonly description: "Reports top-level await expressions in files that export values.";
|
|
1952
|
+
readonly id: "topLevelAwaits";
|
|
1953
|
+
readonly presets: ["logicalStrict"];
|
|
1954
|
+
} & {
|
|
1955
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
1956
|
+
url: string;
|
|
1957
|
+
}, object, object, "topLevelAwait", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
1958
|
+
readonly description: "Reports triple-slash reference directives.";
|
|
1959
|
+
readonly id: "tripleSlashReferences";
|
|
1960
|
+
readonly presets: ["logical"];
|
|
1961
|
+
} & {
|
|
1962
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
1963
|
+
url: string;
|
|
1964
|
+
}, object, object, "noTripleSlashReference", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
1965
|
+
readonly description: "Reports invalid triple-slash reference directives.";
|
|
1966
|
+
readonly id: "tripleSlashReferenceValidity";
|
|
1967
|
+
readonly presets: ["logical"];
|
|
1968
|
+
} & {
|
|
1969
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
1970
|
+
url: string;
|
|
1971
|
+
}, object, object, "invalidDirective", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
1972
|
+
readonly description: "Reports problematic TypeScript comment directives or requires descriptions after directives.";
|
|
1973
|
+
readonly id: "tsComments";
|
|
1974
|
+
readonly presets: ["logical"];
|
|
1975
|
+
} & {
|
|
1976
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
1977
|
+
url: string;
|
|
1978
|
+
}, object, object, "descriptionNotMatchPattern" | "directiveComment" | "preferExpectError" | "requiresDescription", {
|
|
1979
|
+
allowTsExpectError: zod_v40.ZodDefault<zod_v40.ZodUnion<readonly [zod_v40.ZodLiteral<true>, zod_v40.ZodLiteral<false>, zod_v40.ZodLiteral<"allow-with-description">, zod_v40.ZodObject<{
|
|
1980
|
+
descriptionFormat: zod_v40.ZodString;
|
|
1981
|
+
}, zod_v4_core0.$strip>]>>;
|
|
1982
|
+
allowTsIgnore: zod_v40.ZodDefault<zod_v40.ZodUnion<readonly [zod_v40.ZodLiteral<true>, zod_v40.ZodLiteral<false>, zod_v40.ZodLiteral<"allow-with-description">, zod_v40.ZodObject<{
|
|
1983
|
+
descriptionFormat: zod_v40.ZodString;
|
|
1984
|
+
}, zod_v4_core0.$strip>]>>;
|
|
1985
|
+
allowTsNocheck: zod_v40.ZodDefault<zod_v40.ZodUnion<readonly [zod_v40.ZodLiteral<true>, zod_v40.ZodLiteral<false>, zod_v40.ZodLiteral<"allow-with-description">, zod_v40.ZodObject<{
|
|
1986
|
+
descriptionFormat: zod_v40.ZodString;
|
|
1987
|
+
}, zod_v4_core0.$strip>]>>;
|
|
1988
|
+
minimumDescriptionLength: zod_v40.ZodDefault<zod_v40.ZodNumber>;
|
|
1989
|
+
}>, _flint_fyi_core0.Rule<{
|
|
1990
|
+
readonly description: "Reports TSLint disable/enable comments.";
|
|
1991
|
+
readonly id: "tslintComments";
|
|
1992
|
+
readonly presets: ["logical"];
|
|
1993
|
+
} & {
|
|
1994
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
1995
|
+
url: string;
|
|
1996
|
+
}, object, object, "tslintComment", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
1997
|
+
readonly description: "Reports angle-bracket type assertions.";
|
|
1998
|
+
readonly id: "typeAssertionStyles";
|
|
1999
|
+
readonly presets: ["stylistic"];
|
|
2000
|
+
} & {
|
|
2001
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
2002
|
+
url: string;
|
|
2003
|
+
}, object, object, "preferAs", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
2004
|
+
readonly description: "Reports typeof expressions that compare impossible string literals.";
|
|
2005
|
+
readonly id: "typeofComparisons";
|
|
2006
|
+
readonly presets: ["javascript"];
|
|
2007
|
+
} & {
|
|
2008
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
2009
|
+
url: string;
|
|
2010
|
+
}, object, object, "invalidValue", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
2011
|
+
readonly description: "Reports variables that are declared but never assigned a value.";
|
|
2012
|
+
readonly id: "unassignedVariables";
|
|
2013
|
+
readonly presets: ["javascript"];
|
|
2014
|
+
} & {
|
|
2015
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
2016
|
+
url: string;
|
|
2017
|
+
}, object, object, "noUnassigned", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
2018
|
+
readonly description: "Reports typeof undefined checks.";
|
|
2019
|
+
readonly id: "undefinedTypeofChecks";
|
|
2020
|
+
readonly presets: ["stylistic"];
|
|
2021
|
+
} & {
|
|
2022
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
2023
|
+
url: string;
|
|
2024
|
+
}, object, object, "directComparison", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
2025
|
+
readonly description: "Reports using variables that are not defined.";
|
|
2026
|
+
readonly id: "undefinedVariables";
|
|
2027
|
+
readonly presets: ["javascript"];
|
|
2028
|
+
} & {
|
|
2029
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
2030
|
+
url: string;
|
|
2031
|
+
}, object, object, "undefinedVariable", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
2032
|
+
readonly description: "Reports files with Unicode Byte Order Marks (BOMs).";
|
|
2033
|
+
readonly id: "unicodeBOMs";
|
|
2034
|
+
readonly presets: ["stylistic", "stylisticStrict"];
|
|
2035
|
+
} & {
|
|
2036
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
2037
|
+
url: string;
|
|
2038
|
+
}, object, object, "noBOM", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
2039
|
+
readonly description: "Reports unnecessary `.bind()` calls.";
|
|
2040
|
+
readonly id: "unnecessaryBinds";
|
|
2041
|
+
readonly presets: ["logical"];
|
|
2042
|
+
} & {
|
|
2043
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
2044
|
+
url: string;
|
|
2045
|
+
}, object, object, "unnecessaryBinds" | "arrowBind", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
2046
|
+
readonly description: "Reports standalone block statements that don't create a meaningful scope.";
|
|
2047
|
+
readonly id: "unnecessaryBlocks";
|
|
2048
|
+
readonly presets: ["stylistic", "stylisticStrict"];
|
|
2049
|
+
} & {
|
|
2050
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
2051
|
+
url: string;
|
|
2052
|
+
}, object, object, "unnecessaryBlock", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
2053
|
+
readonly description: "Reports unnecessary boolean casts.";
|
|
2054
|
+
readonly id: "unnecessaryBooleanCasts";
|
|
2055
|
+
readonly presets: ["logical"];
|
|
2056
|
+
} & {
|
|
2057
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
2058
|
+
url: string;
|
|
2059
|
+
}, object, object, "unnecessary", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
2060
|
+
readonly description: "Reports catch clauses that only rethrow the caught error without modification.";
|
|
2061
|
+
readonly id: "unnecessaryCatches";
|
|
2062
|
+
readonly presets: ["logical", "logicalStrict"];
|
|
2063
|
+
} & {
|
|
2064
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
2065
|
+
url: string;
|
|
2066
|
+
}, object, object, "unnecessaryCatch", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
2067
|
+
readonly description: "Reports comparisons that are always true, always false, or can be simplified.";
|
|
2068
|
+
readonly id: "unnecessaryComparisons";
|
|
2069
|
+
readonly presets: ["logical", "logicalStrict"];
|
|
2070
|
+
} & {
|
|
2071
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
2072
|
+
url: string;
|
|
2073
|
+
}, object, object, "impossibleRange" | "ineffectiveCheck" | "redundantComparison" | "selfComparison", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
2074
|
+
readonly description: "Reports string concatenation using the + operator when both operands are string literals.";
|
|
2075
|
+
readonly id: "unnecessaryConcatenation";
|
|
2076
|
+
readonly presets: ["stylistic", "stylisticStrict"];
|
|
2077
|
+
} & {
|
|
2078
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
2079
|
+
url: string;
|
|
2080
|
+
}, object, object, "unnecessaryConcatenation", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
2081
|
+
readonly description: "Reports unnecessary escape sequences in string literals and template strings.";
|
|
2082
|
+
readonly id: "unnecessaryEscapes";
|
|
2083
|
+
readonly presets: ["stylistic"];
|
|
2084
|
+
} & {
|
|
2085
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
2086
|
+
url: string;
|
|
2087
|
+
}, object, object, "unnecessary", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
2088
|
+
readonly description: "Reports unnecessary Math.min and Math.max calls with constant arguments or incorrect clamping patterns.";
|
|
2089
|
+
readonly id: "unnecessaryMathClamps";
|
|
2090
|
+
readonly presets: ["logical"];
|
|
2091
|
+
} & {
|
|
2092
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
2093
|
+
url: string;
|
|
2094
|
+
}, object, object, "constantArguments" | "incorrectClampOrder", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
2095
|
+
readonly description: "Reports numeric literals with unnecessary zero fractions or dangling dots.";
|
|
2096
|
+
readonly id: "unnecessaryNumericFractions";
|
|
2097
|
+
readonly presets: ["stylistic"];
|
|
2098
|
+
} & {
|
|
2099
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
2100
|
+
url: string;
|
|
2101
|
+
}, object, object, "danglingDot" | "zeroFraction", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
2102
|
+
readonly description: "Renames that don't change the identifier name are unnecessary.";
|
|
2103
|
+
readonly id: "unnecessaryRenames";
|
|
2104
|
+
readonly presets: ["stylistic"];
|
|
2105
|
+
} & {
|
|
2106
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
2107
|
+
url: string;
|
|
2108
|
+
}, object, object, "unnecessaryRename", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
2109
|
+
readonly description: "Reports ternary expressions that can be simplified to boolean expressions or logical operators";
|
|
2110
|
+
readonly id: "unnecessaryTernaries";
|
|
2111
|
+
readonly presets: ["stylistic", "stylisticStrict"];
|
|
2112
|
+
} & {
|
|
2113
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
2114
|
+
url: string;
|
|
2115
|
+
}, object, object, "unnecessaryBooleanTernary" | "unnecessaryLogicalTernary", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
2116
|
+
readonly description: "Reports unnecessary \"use strict\" directives in ES modules and classes.";
|
|
2117
|
+
readonly id: "unnecessaryUseStricts";
|
|
2118
|
+
readonly presets: ["logical"];
|
|
2119
|
+
} & {
|
|
2120
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
2121
|
+
url: string;
|
|
2122
|
+
}, object, object, "unnecessaryUseStrict", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
2123
|
+
readonly description: "Reports negating the left operand of `in` or `instanceof` relations.";
|
|
2124
|
+
readonly id: "unsafeNegations";
|
|
2125
|
+
readonly presets: ["javascript"];
|
|
2126
|
+
} & {
|
|
2127
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
2128
|
+
url: string;
|
|
2129
|
+
}, object, object, "preferNegatingRelation", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
2130
|
+
readonly description: "Reports attempting to delete variables with the delete operator.";
|
|
2131
|
+
readonly id: "variableDeletions";
|
|
2132
|
+
readonly presets: ["javascript"];
|
|
2133
|
+
} & {
|
|
2134
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
2135
|
+
url: string;
|
|
2136
|
+
}, object, object, "noDeleteVar", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
2137
|
+
readonly description: "Reports using the void operator.";
|
|
2138
|
+
readonly id: "voidOperator";
|
|
2139
|
+
readonly presets: ["stylistic", "stylisticStrict"];
|
|
2140
|
+
} & {
|
|
2141
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
2142
|
+
url: string;
|
|
2143
|
+
}, object, object, "noVoid", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
2144
|
+
readonly description: "Reports using with statements";
|
|
2145
|
+
readonly id: "withStatements";
|
|
2146
|
+
readonly presets: ["javascript"];
|
|
2147
|
+
} & {
|
|
2148
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
2149
|
+
url: string;
|
|
2150
|
+
}, object, object, "withStatement", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<{
|
|
2151
|
+
readonly description: "Flags using `new` with `Boolean`, `Number`, or `String`, which creates wrapper objects instead of primitives.";
|
|
2152
|
+
readonly id: "wrapperObjects";
|
|
2153
|
+
readonly presets: ["logical", "logicalStrict"];
|
|
2154
|
+
} & {
|
|
2155
|
+
presets?: ("javascript" | "logical" | "logicalStrict" | "stylistic" | "stylisticStrict")[];
|
|
2156
|
+
url: string;
|
|
2157
|
+
}, object, object, "wrapperObject", _flint_fyi_core0.AnyOptionalSchema>]>;
|
|
2158
|
+
//#endregion
|
|
2159
|
+
export { ts };
|
|
233
2160
|
//# sourceMappingURL=plugin.d.ts.map
|