@flint.fyi/ts 0.18.0 → 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/anyAssignments.js +8 -9
- 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 +6 -6
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";
|
|
@@ -554,6 +555,8 @@ const ts = createPlugin({
|
|
|
554
555
|
regexValidity_default,
|
|
555
556
|
regexWordMatchers_default,
|
|
556
557
|
regexZeroQuantifiers_default,
|
|
558
|
+
requireImports_default,
|
|
559
|
+
requireImports_default,
|
|
557
560
|
responseJsonMethods_default,
|
|
558
561
|
restrictedIdentifiers_default,
|
|
559
562
|
returnAssignments_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
|
|
@@ -7,7 +7,7 @@ import * as ts$1 from "typescript";
|
|
|
7
7
|
import * as tsutils from "ts-api-utils";
|
|
8
8
|
//#region src/rules/anyAssignments.ts
|
|
9
9
|
function isTypeAny(type) {
|
|
10
|
-
return tsutils.isTypeFlagSet(type, ts$1.TypeFlags.Any);
|
|
10
|
+
return tsutils.isTypeFlagSet(type, ts$1.TypeFlags.Any) && !tsutils.isIntrinsicErrorType(type);
|
|
11
11
|
}
|
|
12
12
|
function isTypeAnyArray(type, checker) {
|
|
13
13
|
if (!checker.isArrayType(type)) return false;
|
|
@@ -99,11 +99,11 @@ var anyAssignments_default = ruleCreator.createRule(typescriptLanguage, {
|
|
|
99
99
|
if (element.dotDotDotToken) continue;
|
|
100
100
|
let key;
|
|
101
101
|
const propertyName = element.propertyName ?? element.name;
|
|
102
|
-
if (ts$1.isIdentifier(propertyName)) key = propertyName.text;
|
|
103
|
-
else if (ts$1.
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
102
|
+
if (ts$1.isIdentifier(propertyName) || ts$1.isStringLiteral(propertyName) || ts$1.isNumericLiteral(propertyName)) key = propertyName.text;
|
|
103
|
+
else if (ts$1.isComputedPropertyName(propertyName)) {
|
|
104
|
+
const expression = propertyName.expression;
|
|
105
|
+
if (ts$1.isStringLiteral(expression) || ts$1.isNoSubstitutionTemplateLiteral(expression)) key = expression.text;
|
|
106
|
+
}
|
|
107
107
|
if (key === void 0) continue;
|
|
108
108
|
const propertySymbol = senderType.getProperty(key);
|
|
109
109
|
if (!propertySymbol) continue;
|
|
@@ -131,6 +131,7 @@ var anyAssignments_default = ruleCreator.createRule(typescriptLanguage, {
|
|
|
131
131
|
return checkObjectDestructureWorker(pattern, senderType, sourceFile, typeChecker);
|
|
132
132
|
}
|
|
133
133
|
function checkAssignment(initializerType, declaredType, initializer, reportNode, sourceFile, typeChecker) {
|
|
134
|
+
if (tsutils.isIntrinsicErrorType(initializerType)) return false;
|
|
134
135
|
const anyType = discriminateAnyType(initializerType, typeChecker, initializer);
|
|
135
136
|
if (declaredType === void 0) {
|
|
136
137
|
if (anyType !== AnyType.Safe) {
|
|
@@ -206,9 +207,7 @@ var anyAssignments_default = ruleCreator.createRule(typescriptLanguage, {
|
|
|
206
207
|
const contextualType = typeChecker.getContextualType(node.parent);
|
|
207
208
|
if (!contextualType) return;
|
|
208
209
|
let key;
|
|
209
|
-
if (ts$1.isIdentifier(node.name)) key = node.name.text;
|
|
210
|
-
else if (ts$1.isStringLiteral(node.name)) key = node.name.text;
|
|
211
|
-
else if (ts$1.isNumericLiteral(node.name)) key = node.name.text;
|
|
210
|
+
if (ts$1.isIdentifier(node.name) || ts$1.isStringLiteral(node.name) || ts$1.isNumericLiteral(node.name)) key = node.name.text;
|
|
212
211
|
if (key === void 0) return;
|
|
213
212
|
const propertySymbol = contextualType.getProperty(key);
|
|
214
213
|
if (!propertySymbol) return;
|
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
|