@flint.fyi/ts 0.18.1 → 0.19.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/plugin.d.ts +1237 -1207
- package/lib/plugin.js +5 -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/typeImports.d.ts +20 -0
- package/lib/rules/typeImports.js +284 -0
- 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/utils/forEachChild.d.ts +4 -0
- package/lib/rules/utils/forEachChild.js +7 -0
- 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.js
CHANGED
|
@@ -245,6 +245,7 @@ import regexUnusedQuantifiers_default from "./rules/regexUnusedQuantifiers.js";
|
|
|
245
245
|
import regexValidity_default from "./rules/regexValidity.js";
|
|
246
246
|
import regexWordMatchers_default from "./rules/regexWordMatchers.js";
|
|
247
247
|
import regexZeroQuantifiers_default from "./rules/regexZeroQuantifiers.js";
|
|
248
|
+
import requireImports_default from "./rules/requireImports.js";
|
|
248
249
|
import responseJsonMethods_default from "./rules/responseJsonMethods.js";
|
|
249
250
|
import restrictedIdentifiers_default from "./rules/restrictedIdentifiers.js";
|
|
250
251
|
import returnAssignments_default from "./rules/returnAssignments.js";
|
|
@@ -273,6 +274,7 @@ import tripleSlashReferenceValidity_default from "./rules/tripleSlashReferenceVa
|
|
|
273
274
|
import tsComments_default from "./rules/tsComments.js";
|
|
274
275
|
import tslintComments_default from "./rules/tslintComments.js";
|
|
275
276
|
import typeAssertionStyles_default from "./rules/typeAssertionStyles.js";
|
|
277
|
+
import typeImports_default from "./rules/typeImports.js";
|
|
276
278
|
import typeofComparisons_default from "./rules/typeofComparisons.js";
|
|
277
279
|
import unassignedVariables_default from "./rules/unassignedVariables.js";
|
|
278
280
|
import undefinedTypeofChecks_default from "./rules/undefinedTypeofChecks.js";
|
|
@@ -554,6 +556,8 @@ const ts = createPlugin({
|
|
|
554
556
|
regexValidity_default,
|
|
555
557
|
regexWordMatchers_default,
|
|
556
558
|
regexZeroQuantifiers_default,
|
|
559
|
+
requireImports_default,
|
|
560
|
+
requireImports_default,
|
|
557
561
|
responseJsonMethods_default,
|
|
558
562
|
restrictedIdentifiers_default,
|
|
559
563
|
returnAssignments_default,
|
|
@@ -582,6 +586,7 @@ const ts = createPlugin({
|
|
|
582
586
|
tsComments_default,
|
|
583
587
|
tslintComments_default,
|
|
584
588
|
typeAssertionStyles_default,
|
|
589
|
+
typeImports_default,
|
|
585
590
|
typeofComparisons_default,
|
|
586
591
|
unassignedVariables_default,
|
|
587
592
|
undefinedTypeofChecks_default,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
declare const _default: import("@flint.fyi/core").Rule<{
|
|
2
2
|
readonly description: "Reports getter and setter accessors for the same property that are not adjacent.";
|
|
3
3
|
readonly id: "accessorPairGroups";
|
|
4
|
-
readonly presets: ["stylistic", "stylisticStrict"];
|
|
4
|
+
readonly presets: readonly ["stylistic", "stylisticStrict"];
|
|
5
5
|
} & {
|
|
6
|
-
|
|
7
|
-
url: string;
|
|
8
|
-
},
|
|
6
|
+
readonly pluginId: string;
|
|
7
|
+
readonly url: string;
|
|
8
|
+
}, "notGrouped", undefined>;
|
|
9
9
|
export default _default;
|
|
10
10
|
//# sourceMappingURL=accessorPairGroups.d.ts.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
declare const _default: import("@flint.fyi/core").Rule<{
|
|
2
2
|
readonly description: "Reports mismatched types between getter and setter accessor pairs.";
|
|
3
3
|
readonly id: "accessorPairTypes";
|
|
4
|
-
readonly presets: ["logical", "logicalStrict"];
|
|
4
|
+
readonly presets: readonly ["logical", "logicalStrict"];
|
|
5
5
|
} & {
|
|
6
|
-
|
|
7
|
-
url: string;
|
|
8
|
-
},
|
|
6
|
+
readonly pluginId: string;
|
|
7
|
+
readonly url: string;
|
|
8
|
+
}, "mismatchedTypes", undefined>;
|
|
9
9
|
export default _default;
|
|
10
10
|
//# sourceMappingURL=accessorPairTypes.d.ts.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
declare const _default: import("@flint.fyi/core").Rule<{
|
|
2
2
|
readonly description: "Reports recursive access to this within getters and setters.";
|
|
3
3
|
readonly id: "accessorThisRecursion";
|
|
4
|
-
readonly presets: ["logical", "logicalStrict"];
|
|
4
|
+
readonly presets: readonly ["logical", "logicalStrict"];
|
|
5
5
|
} & {
|
|
6
|
-
|
|
7
|
-
url: string;
|
|
8
|
-
},
|
|
6
|
+
readonly pluginId: string;
|
|
7
|
+
readonly url: string;
|
|
8
|
+
}, "noGetterRecursion" | "noSetterRecursion", undefined>;
|
|
9
9
|
export default _default;
|
|
10
10
|
//# sourceMappingURL=accessorThisRecursion.d.ts.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
declare const _default: import("@flint.fyi/core").Rule<{
|
|
2
2
|
readonly description: "Reports calling a function with a value typed as `any` as an argument.";
|
|
3
3
|
readonly id: "anyArguments";
|
|
4
|
-
readonly presets: ["logical", "logicalStrict"];
|
|
4
|
+
readonly presets: readonly ["logical", "logicalStrict"];
|
|
5
5
|
} & {
|
|
6
|
-
|
|
7
|
-
url: string;
|
|
8
|
-
},
|
|
6
|
+
readonly pluginId: string;
|
|
7
|
+
readonly url: string;
|
|
8
|
+
}, "unsafeArgument" | "unsafeSpread" | "unsafeTupleSpread", undefined>;
|
|
9
9
|
export default _default;
|
|
10
10
|
//# sourceMappingURL=anyArguments.d.ts.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
declare const _default: import("@flint.fyi/core").Rule<{
|
|
2
2
|
readonly description: "Reports assigning a value with type `any` to variables and properties.";
|
|
3
3
|
readonly id: "anyAssignments";
|
|
4
|
-
readonly presets: ["logical", "logicalStrict"];
|
|
4
|
+
readonly presets: readonly ["logical", "logicalStrict"];
|
|
5
5
|
} & {
|
|
6
|
-
|
|
7
|
-
url: string;
|
|
8
|
-
},
|
|
6
|
+
readonly pluginId: string;
|
|
7
|
+
readonly url: string;
|
|
8
|
+
}, "unsafeArrayDestructure" | "unsafeArrayPatternFromTuple" | "unsafeArraySpread" | "unsafeAssignment" | "unsafeAssignmentToVariable" | "unsafeObjectPattern", undefined>;
|
|
9
9
|
export default _default;
|
|
10
10
|
//# sourceMappingURL=anyAssignments.d.ts.map
|
package/lib/rules/anyCalls.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
declare const _default: import("@flint.fyi/core").Rule<{
|
|
2
2
|
readonly description: "Reports calling a value with type `any`.";
|
|
3
3
|
readonly id: "anyCalls";
|
|
4
|
-
readonly presets: ["logical", "logicalStrict"];
|
|
4
|
+
readonly presets: readonly ["logical", "logicalStrict"];
|
|
5
5
|
} & {
|
|
6
|
-
|
|
7
|
-
url: string;
|
|
8
|
-
},
|
|
6
|
+
readonly pluginId: string;
|
|
7
|
+
readonly url: string;
|
|
8
|
+
}, "unsafeCall" | "unsafeNew" | "unsafeTemplateTag", undefined>;
|
|
9
9
|
export default _default;
|
|
10
10
|
//# sourceMappingURL=anyCalls.d.ts.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
declare const _default: import("@flint.fyi/core").Rule<{
|
|
2
2
|
readonly description: "Reports member access on a value with type `any`.";
|
|
3
3
|
readonly id: "anyMemberAccess";
|
|
4
|
-
readonly presets: ["logical", "logicalStrict"];
|
|
4
|
+
readonly presets: readonly ["logical", "logicalStrict"];
|
|
5
5
|
} & {
|
|
6
|
-
|
|
7
|
-
url: string;
|
|
8
|
-
},
|
|
6
|
+
readonly pluginId: string;
|
|
7
|
+
readonly url: string;
|
|
8
|
+
}, "unsafeComputedMemberAccess" | "unsafeMemberAccess", undefined>;
|
|
9
9
|
export default _default;
|
|
10
10
|
//# sourceMappingURL=anyMemberAccess.d.ts.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
declare const _default: import("@flint.fyi/core").Rule<{
|
|
2
2
|
readonly description: "Reports returning a value with type `any` from a function.";
|
|
3
3
|
readonly id: "anyReturns";
|
|
4
|
-
readonly presets: ["logical", "logicalStrict"];
|
|
4
|
+
readonly presets: readonly ["logical", "logicalStrict"];
|
|
5
5
|
} & {
|
|
6
|
-
|
|
7
|
-
url: string;
|
|
8
|
-
},
|
|
6
|
+
readonly pluginId: string;
|
|
7
|
+
readonly url: string;
|
|
8
|
+
}, "unsafeReturn" | "unsafeReturnAssignment" | "unsafeReturnThis", undefined>;
|
|
9
9
|
export default _default;
|
|
10
10
|
//# sourceMappingURL=anyReturns.d.ts.map
|
package/lib/rules/arguments.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
declare const _default: import("@flint.fyi/core").Rule<{
|
|
2
2
|
readonly description: "Reports using the arguments object instead of rest parameters.";
|
|
3
3
|
readonly id: "arguments";
|
|
4
|
-
readonly presets: ["logical", "logicalStrict"];
|
|
4
|
+
readonly presets: readonly ["logical", "logicalStrict"];
|
|
5
5
|
} & {
|
|
6
|
-
|
|
7
|
-
url: string;
|
|
8
|
-
},
|
|
6
|
+
readonly pluginId: string;
|
|
7
|
+
readonly url: string;
|
|
8
|
+
}, "preferRestParameters", undefined>;
|
|
9
9
|
export default _default;
|
|
10
10
|
//# sourceMappingURL=arguments.d.ts.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
declare const _default: import("@flint.fyi/core").Rule<{
|
|
2
2
|
readonly description: "Reports missing return statements in callbacks of array methods.";
|
|
3
3
|
readonly id: "arrayCallbackReturns";
|
|
4
|
-
readonly presets: ["javascript"];
|
|
4
|
+
readonly presets: readonly ["javascript"];
|
|
5
5
|
} & {
|
|
6
|
-
|
|
7
|
-
url: string;
|
|
8
|
-
},
|
|
6
|
+
readonly pluginId: string;
|
|
7
|
+
readonly url: string;
|
|
8
|
+
}, "missingReturn", undefined>;
|
|
9
9
|
export default _default;
|
|
10
10
|
//# sourceMappingURL=arrayCallbackReturns.d.ts.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
declare const _default: import("@flint.fyi/core").Rule<{
|
|
2
2
|
readonly description: "Reports using the `Array` constructor to create arrays instead of array literal syntax.";
|
|
3
3
|
readonly id: "arrayConstructors";
|
|
4
|
-
readonly presets: ["logical", "logicalStrict"];
|
|
4
|
+
readonly presets: readonly ["logical", "logicalStrict"];
|
|
5
5
|
} & {
|
|
6
|
-
|
|
7
|
-
url: string;
|
|
8
|
-
},
|
|
6
|
+
readonly pluginId: string;
|
|
7
|
+
readonly url: string;
|
|
8
|
+
}, "preferLiteral", undefined>;
|
|
9
9
|
export default _default;
|
|
10
10
|
//# sourceMappingURL=arrayConstructors.d.ts.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
declare const _default: import("@flint.fyi/core").Rule<{
|
|
2
2
|
readonly description: "Reports using `.length` or `Infinity` as the `deleteCount` or `skipCount` argument of `Array#splice()` or `Array#toSpliced()`.";
|
|
3
3
|
readonly id: "arrayDeleteUnnecessaryCounts";
|
|
4
|
-
readonly presets: ["stylistic", "stylisticStrict"];
|
|
4
|
+
readonly presets: readonly ["stylistic", "stylisticStrict"];
|
|
5
5
|
} & {
|
|
6
|
-
|
|
7
|
-
url: string;
|
|
8
|
-
},
|
|
6
|
+
readonly pluginId: string;
|
|
7
|
+
readonly url: string;
|
|
8
|
+
}, "unnecessaryCount", undefined>;
|
|
9
9
|
export default _default;
|
|
10
10
|
//# sourceMappingURL=arrayDeleteUnnecessaryCounts.d.ts.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
declare const _default: import("@flint.fyi/core").Rule<{
|
|
2
2
|
readonly description: "Reports using the `delete` operator on array values.";
|
|
3
3
|
readonly id: "arrayElementDeletions";
|
|
4
|
-
readonly presets: ["logical", "logicalStrict"];
|
|
4
|
+
readonly presets: readonly ["logical", "logicalStrict"];
|
|
5
5
|
} & {
|
|
6
|
-
|
|
7
|
-
url: string;
|
|
8
|
-
},
|
|
6
|
+
readonly pluginId: string;
|
|
7
|
+
readonly url: string;
|
|
8
|
+
}, "noArrayDelete", undefined>;
|
|
9
9
|
export default _default;
|
|
10
10
|
//# sourceMappingURL=arrayElementDeletions.d.ts.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
declare const _default: import("@flint.fyi/core").Rule<{
|
|
2
2
|
readonly description: "Reports array methods with callbacks that will never be invoked on arrays with empty slots.";
|
|
3
3
|
readonly id: "arrayEmptyCallbackSlots";
|
|
4
|
-
readonly presets: ["logical", "logicalStrict"];
|
|
4
|
+
readonly presets: readonly ["logical", "logicalStrict"];
|
|
5
5
|
} & {
|
|
6
|
-
|
|
7
|
-
url: string;
|
|
8
|
-
},
|
|
6
|
+
readonly pluginId: string;
|
|
7
|
+
readonly url: string;
|
|
8
|
+
}, "neverInvoked", undefined>;
|
|
9
9
|
export default _default;
|
|
10
10
|
//# sourceMappingURL=arrayEmptyCallbackSlots.d.ts.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
declare const _default: import("@flint.fyi/core").Rule<{
|
|
2
2
|
readonly description: "Reports inconsistent styles for checking element existence using index methods.";
|
|
3
3
|
readonly id: "arrayExistenceChecksConsistency";
|
|
4
|
-
readonly presets: ["stylistic", "stylisticStrict"];
|
|
4
|
+
readonly presets: readonly ["stylistic", "stylisticStrict"];
|
|
5
5
|
} & {
|
|
6
|
-
|
|
7
|
-
url: string;
|
|
8
|
-
},
|
|
6
|
+
readonly pluginId: string;
|
|
7
|
+
readonly url: string;
|
|
8
|
+
}, "preferEqualsMinusOne" | "preferNotEqualsMinusOne", undefined>;
|
|
9
9
|
export default _default;
|
|
10
10
|
//# sourceMappingURL=arrayExistenceChecksConsistency.d.ts.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
declare const _default: import("@flint.fyi/core").Rule<{
|
|
2
2
|
readonly description: "Reports using `.filter()` when only the first or last matching element is needed.";
|
|
3
3
|
readonly id: "arrayFilteredFinds";
|
|
4
|
-
readonly presets: ["logical", "logicalStrict"];
|
|
4
|
+
readonly presets: readonly ["logical", "logicalStrict"];
|
|
5
5
|
} & {
|
|
6
|
-
|
|
7
|
-
url: string;
|
|
8
|
-
},
|
|
6
|
+
readonly pluginId: string;
|
|
7
|
+
readonly url: string;
|
|
8
|
+
}, "preferFind" | "preferFindLast", undefined>;
|
|
9
9
|
export default _default;
|
|
10
10
|
//# sourceMappingURL=arrayFilteredFinds.d.ts.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
declare const _default: import("@flint.fyi/core").Rule<{
|
|
2
2
|
readonly description: "Reports using `.filter()[0]` instead of `.find()` when looking for a single element.";
|
|
3
3
|
readonly id: "arrayFinds";
|
|
4
|
-
readonly presets: ["stylistic", "stylisticStrict"];
|
|
4
|
+
readonly presets: readonly ["stylistic", "stylisticStrict"];
|
|
5
5
|
} & {
|
|
6
|
-
|
|
7
|
-
url: string;
|
|
8
|
-
},
|
|
6
|
+
readonly pluginId: string;
|
|
7
|
+
readonly url: string;
|
|
8
|
+
}, "preferFind", undefined>;
|
|
9
9
|
export default _default;
|
|
10
10
|
//# sourceMappingURL=arrayFinds.d.ts.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
declare const _default: import("@flint.fyi/core").Rule<{
|
|
2
2
|
readonly description: "Reports using `.map().flat()` when `.flatMap()` can be used.";
|
|
3
3
|
readonly id: "arrayFlatMapMethods";
|
|
4
|
-
readonly presets: ["stylistic", "stylisticStrict"];
|
|
4
|
+
readonly presets: readonly ["stylistic", "stylisticStrict"];
|
|
5
5
|
} & {
|
|
6
|
-
|
|
7
|
-
url: string;
|
|
8
|
-
},
|
|
6
|
+
readonly pluginId: string;
|
|
7
|
+
readonly url: string;
|
|
8
|
+
}, "preferFlatMap", undefined>;
|
|
9
9
|
export default _default;
|
|
10
10
|
//# sourceMappingURL=arrayFlatMapMethods.d.ts.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
declare const _default: import("@flint.fyi/core").Rule<{
|
|
2
2
|
readonly description: "Reports legacy techniques to flatten arrays instead of using `.flat()`.";
|
|
3
3
|
readonly id: "arrayFlatMethods";
|
|
4
|
-
readonly presets: ["stylistic", "stylisticStrict"];
|
|
4
|
+
readonly presets: readonly ["stylistic", "stylisticStrict"];
|
|
5
5
|
} & {
|
|
6
|
-
|
|
7
|
-
url: string;
|
|
8
|
-
},
|
|
6
|
+
readonly pluginId: string;
|
|
7
|
+
readonly url: string;
|
|
8
|
+
}, "preferFlat", undefined>;
|
|
9
9
|
export default _default;
|
|
10
10
|
//# sourceMappingURL=arrayFlatMethods.d.ts.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
declare const _default: import("@flint.fyi/core").Rule<{
|
|
2
2
|
readonly description: "Reports using `1` as the depth argument of `.flat()` since it is the default.";
|
|
3
3
|
readonly id: "arrayFlatUnnecessaryDepths";
|
|
4
|
-
readonly presets: ["stylistic", "stylisticStrict"];
|
|
4
|
+
readonly presets: readonly ["stylistic", "stylisticStrict"];
|
|
5
5
|
} & {
|
|
6
|
-
|
|
7
|
-
url: string;
|
|
8
|
-
},
|
|
6
|
+
readonly pluginId: string;
|
|
7
|
+
readonly url: string;
|
|
8
|
+
}, "unnecessaryDepth", undefined>;
|
|
9
9
|
export default _default;
|
|
10
10
|
//# sourceMappingURL=arrayFlatUnnecessaryDepths.d.ts.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
declare const _default: import("@flint.fyi/core").Rule<{
|
|
2
2
|
readonly description: "Reports using `.indexOf()` comparisons that can be replaced with `.includes()`.";
|
|
3
3
|
readonly id: "arrayIncludes";
|
|
4
|
-
readonly presets: ["stylistic", "stylisticStrict"];
|
|
4
|
+
readonly presets: readonly ["stylistic", "stylisticStrict"];
|
|
5
5
|
} & {
|
|
6
|
-
|
|
7
|
-
url: string;
|
|
8
|
-
},
|
|
6
|
+
readonly pluginId: string;
|
|
7
|
+
readonly url: string;
|
|
8
|
+
}, "preferIncludes", undefined>;
|
|
9
9
|
export default _default;
|
|
10
10
|
//# sourceMappingURL=arrayIncludes.d.ts.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
declare const _default: import("@flint.fyi/core").Rule<{
|
|
2
2
|
readonly description: "Reports using `Array#some()` with simple equality checks that can be replaced with `.includes()`.";
|
|
3
3
|
readonly id: "arrayIncludesMethods";
|
|
4
|
-
readonly presets: ["stylistic", "stylisticStrict"];
|
|
4
|
+
readonly presets: readonly ["stylistic", "stylisticStrict"];
|
|
5
5
|
} & {
|
|
6
|
-
|
|
7
|
-
url: string;
|
|
8
|
-
},
|
|
6
|
+
readonly pluginId: string;
|
|
7
|
+
readonly url: string;
|
|
8
|
+
}, "preferIncludes", undefined>;
|
|
9
9
|
export default _default;
|
|
10
10
|
//# sourceMappingURL=arrayIncludesMethods.d.ts.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
declare const _default: import("@flint.fyi/core").Rule<{
|
|
2
2
|
readonly description: "Reports using `.findIndex()` or `.findLastIndex()` with simple equality checks that can be replaced with `.indexOf()` or `.lastIndexOf()`.";
|
|
3
3
|
readonly id: "arrayIndexOfMethods";
|
|
4
|
-
readonly presets: ["stylistic", "stylisticStrict"];
|
|
4
|
+
readonly presets: readonly ["stylistic", "stylisticStrict"];
|
|
5
5
|
} & {
|
|
6
|
-
|
|
7
|
-
url: string;
|
|
8
|
-
},
|
|
6
|
+
readonly pluginId: string;
|
|
7
|
+
readonly url: string;
|
|
8
|
+
}, "preferIndexOf" | "preferLastIndexOf", undefined>;
|
|
9
9
|
export default _default;
|
|
10
10
|
//# sourceMappingURL=arrayIndexOfMethods.d.ts.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
declare const _default: import("@flint.fyi/core").Rule<{
|
|
2
2
|
readonly description: "Reports using `.forEach()` when a for-of loop can be used.";
|
|
3
3
|
readonly id: "arrayLoops";
|
|
4
|
-
readonly presets: ["stylistic", "stylisticStrict"];
|
|
4
|
+
readonly presets: readonly ["stylistic", "stylisticStrict"];
|
|
5
5
|
} & {
|
|
6
|
-
|
|
7
|
-
url: string;
|
|
8
|
-
},
|
|
6
|
+
readonly pluginId: string;
|
|
7
|
+
readonly url: string;
|
|
8
|
+
}, "preferForOf", undefined>;
|
|
9
9
|
export default _default;
|
|
10
10
|
//# sourceMappingURL=arrayLoops.d.ts.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
declare const _default: import("@flint.fyi/core").Rule<{
|
|
2
2
|
readonly description: "Reports using `.flatMap()` with an identity function that returns its argument unchanged.";
|
|
3
3
|
readonly id: "arrayMapIdentities";
|
|
4
|
-
readonly presets: ["logical", "logicalStrict"];
|
|
4
|
+
readonly presets: readonly ["logical", "logicalStrict"];
|
|
5
5
|
} & {
|
|
6
|
-
|
|
7
|
-
url: string;
|
|
8
|
-
},
|
|
6
|
+
readonly pluginId: string;
|
|
7
|
+
readonly url: string;
|
|
8
|
+
}, "identityFlatMap", undefined>;
|
|
9
9
|
export default _default;
|
|
10
10
|
//# sourceMappingURL=arrayMapIdentities.d.ts.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
declare const _default: import("@flint.fyi/core").Rule<{
|
|
2
2
|
readonly description: "Reports `.reverse()` calls on arrays that mutate the original array.";
|
|
3
3
|
readonly id: "arrayMutableReverses";
|
|
4
|
-
readonly presets: ["stylistic", "stylisticStrict"];
|
|
4
|
+
readonly presets: readonly ["stylistic", "stylisticStrict"];
|
|
5
5
|
} & {
|
|
6
|
-
|
|
7
|
-
url: string;
|
|
8
|
-
},
|
|
6
|
+
readonly pluginId: string;
|
|
7
|
+
readonly url: string;
|
|
8
|
+
}, "preferToReversed", undefined>;
|
|
9
9
|
export default _default;
|
|
10
10
|
//# sourceMappingURL=arrayMutableReverses.d.ts.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
declare const _default: import("@flint.fyi/core").Rule<{
|
|
2
2
|
readonly description: "Reports `.sort()` calls on arrays that mutate the original array.";
|
|
3
3
|
readonly id: "arrayMutableSorts";
|
|
4
|
-
readonly presets: ["stylistic", "stylisticStrict"];
|
|
4
|
+
readonly presets: readonly ["stylistic", "stylisticStrict"];
|
|
5
5
|
} & {
|
|
6
|
-
|
|
7
|
-
url: string;
|
|
8
|
-
},
|
|
6
|
+
readonly pluginId: string;
|
|
7
|
+
readonly url: string;
|
|
8
|
+
}, "preferToSorted", undefined>;
|
|
9
9
|
export default _default;
|
|
10
10
|
//# sourceMappingURL=arrayMutableSorts.d.ts.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
declare const _default: import("@flint.fyi/core").Rule<{
|
|
2
2
|
readonly description: "Reports `Array#reduce` calls using type assertions on initial values instead of type arguments.";
|
|
3
3
|
readonly id: "arrayReduceTypeArguments";
|
|
4
|
-
readonly presets: ["logicalStrict"];
|
|
4
|
+
readonly presets: readonly ["logicalStrict"];
|
|
5
5
|
} & {
|
|
6
|
-
|
|
7
|
-
url: string;
|
|
8
|
-
},
|
|
6
|
+
readonly pluginId: string;
|
|
7
|
+
readonly url: string;
|
|
8
|
+
}, "preferTypeParameter", undefined>;
|
|
9
9
|
export default _default;
|
|
10
10
|
//# sourceMappingURL=arrayReduceTypeArguments.d.ts.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
declare const _default: import("@flint.fyi/core").Rule<{
|
|
2
2
|
readonly description: "Reports unnecessary `end` argument in `.slice()` calls when it equals the length or is `Infinity`.";
|
|
3
3
|
readonly id: "arraySliceUnnecessaryEnd";
|
|
4
|
-
readonly presets: ["stylistic", "stylisticStrict"];
|
|
4
|
+
readonly presets: readonly ["stylistic", "stylisticStrict"];
|
|
5
5
|
} & {
|
|
6
|
-
|
|
7
|
-
url: string;
|
|
8
|
-
},
|
|
6
|
+
readonly pluginId: string;
|
|
7
|
+
readonly url: string;
|
|
8
|
+
}, "unnecessaryEnd", undefined>;
|
|
9
9
|
export default _default;
|
|
10
10
|
//# sourceMappingURL=arraySliceUnnecessaryEnd.d.ts.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
declare const _default: import("@flint.fyi/core").Rule<{
|
|
2
2
|
readonly description: "Reports patterns that can be replaced with `.some()` for checking array element existence.";
|
|
3
3
|
readonly id: "arraySomeMethods";
|
|
4
|
-
readonly presets: ["stylistic", "stylisticStrict"];
|
|
4
|
+
readonly presets: readonly ["stylistic", "stylisticStrict"];
|
|
5
5
|
} & {
|
|
6
|
-
|
|
7
|
-
url: string;
|
|
8
|
-
},
|
|
6
|
+
readonly pluginId: string;
|
|
7
|
+
readonly url: string;
|
|
8
|
+
}, "preferSome", undefined>;
|
|
9
9
|
export default _default;
|
|
10
10
|
//# sourceMappingURL=arraySomeMethods.d.ts.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
declare const _default: import("@flint.fyi/core").Rule<{
|
|
2
2
|
readonly description: "Reports inconsistent types when spreading a ternary in an array literal.";
|
|
3
3
|
readonly id: "arrayTernarySpreadingConsistency";
|
|
4
|
-
readonly presets: ["stylistic", "stylisticStrict"];
|
|
4
|
+
readonly presets: readonly ["stylistic", "stylisticStrict"];
|
|
5
5
|
} & {
|
|
6
|
-
|
|
7
|
-
url: string;
|
|
8
|
-
},
|
|
6
|
+
readonly pluginId: string;
|
|
7
|
+
readonly url: string;
|
|
8
|
+
}, "inconsistentTypes", undefined>;
|
|
9
9
|
export default _default;
|
|
10
10
|
//# sourceMappingURL=arrayTernarySpreadingConsistency.d.ts.map
|
|
@@ -2,12 +2,12 @@ import { z } from "zod/v4";
|
|
|
2
2
|
declare const _default: import("@flint.fyi/core").Rule<{
|
|
3
3
|
readonly description: "Reports array type syntax that doesn't match the configured style.";
|
|
4
4
|
readonly id: "arrayTypes";
|
|
5
|
-
readonly presets: ["stylistic", "stylisticStrict"];
|
|
5
|
+
readonly presets: readonly ["stylistic", "stylisticStrict"];
|
|
6
6
|
} & {
|
|
7
|
-
|
|
8
|
-
url: string;
|
|
9
|
-
},
|
|
10
|
-
|
|
7
|
+
readonly pluginId: string;
|
|
8
|
+
readonly url: string;
|
|
9
|
+
}, "preferArraySyntax" | "preferGenericSyntax" | "preferReadonlyArraySyntax" | "preferReadonlyGenericSyntax", {
|
|
10
|
+
style: z.ZodDefault<z.ZodEnum<{
|
|
11
11
|
array: "array";
|
|
12
12
|
"array-simple": "array-simple";
|
|
13
13
|
generic: "generic";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
declare const _default: import("@flint.fyi/core").Rule<{
|
|
2
2
|
readonly description: "Reports unnecessary array length checks before `.some()` or `.every()` calls.";
|
|
3
3
|
readonly id: "arrayUnnecessaryLengthChecks";
|
|
4
|
-
readonly presets: ["logical"];
|
|
4
|
+
readonly presets: readonly ["logical"];
|
|
5
5
|
} & {
|
|
6
|
-
|
|
7
|
-
url: string;
|
|
8
|
-
},
|
|
6
|
+
readonly pluginId: string;
|
|
7
|
+
readonly url: string;
|
|
8
|
+
}, "unnecessaryLengthCheckEvery" | "unnecessaryLengthCheckSome", undefined>;
|
|
9
9
|
export default _default;
|
|
10
10
|
//# sourceMappingURL=arrayUnnecessaryLengthChecks.d.ts.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
declare const _default: import("@flint.fyi/core").Rule<{
|
|
2
2
|
readonly description: "Reports using explicit literal types when `as const` can be used.";
|
|
3
3
|
readonly id: "asConstAssertions";
|
|
4
|
-
readonly presets: ["stylistic", "stylisticStrict"];
|
|
4
|
+
readonly presets: readonly ["stylistic", "stylisticStrict"];
|
|
5
5
|
} & {
|
|
6
|
-
|
|
7
|
-
url: string;
|
|
8
|
-
},
|
|
6
|
+
readonly pluginId: string;
|
|
7
|
+
readonly url: string;
|
|
8
|
+
}, "preferAsConst" | "preferAsConstAnnotation", undefined>;
|
|
9
9
|
export default _default;
|
|
10
10
|
//# sourceMappingURL=asConstAssertions.d.ts.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
declare const _default: import("@flint.fyi/core").Rule<{
|
|
2
2
|
readonly description: "Prefer logical assignment operator shorthand expressions.";
|
|
3
3
|
readonly id: "assignmentOperatorShorthands";
|
|
4
|
-
readonly presets: ["stylistic", "stylisticStrict"];
|
|
4
|
+
readonly presets: readonly ["stylistic", "stylisticStrict"];
|
|
5
5
|
} & {
|
|
6
|
-
|
|
7
|
-
url: string;
|
|
8
|
-
},
|
|
6
|
+
readonly pluginId: string;
|
|
7
|
+
readonly url: string;
|
|
8
|
+
}, "preferShorthand", undefined>;
|
|
9
9
|
export default _default;
|
|
10
10
|
//# sourceMappingURL=assignmentOperatorShorthands.d.ts.map
|