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