📄 index.ts
¶
📊 Analysis Summary¶
Metric | Count |
---|---|
📦 Imports | 132 |
📊 Variables & Constants | 1 |
📚 Table of Contents¶
🛠️ File Location:¶
📂 packages/eslint-plugin/src/rules/index.ts
📦 Imports¶
Name | Source |
---|---|
Linter |
@typescript-eslint/utils/ts-eslint |
adjacentOverloadSignatures |
./adjacent-overload-signatures |
arrayType |
./array-type |
awaitThenable |
./await-thenable |
banTsComment |
./ban-ts-comment |
banTslintComment |
./ban-tslint-comment |
classLiteralPropertyStyle |
./class-literal-property-style |
classMethodsUseThis |
./class-methods-use-this |
consistentGenericConstructors |
./consistent-generic-constructors |
consistentIndexedObjectStyle |
./consistent-indexed-object-style |
consistentReturn |
./consistent-return |
consistentTypeAssertions |
./consistent-type-assertions |
consistentTypeDefinitions |
./consistent-type-definitions |
consistentTypeExports |
./consistent-type-exports |
consistentTypeImports |
./consistent-type-imports |
defaultParamLast |
./default-param-last |
dotNotation |
./dot-notation |
explicitFunctionReturnType |
./explicit-function-return-type |
explicitMemberAccessibility |
./explicit-member-accessibility |
explicitModuleBoundaryTypes |
./explicit-module-boundary-types |
initDeclarations |
./init-declarations |
maxParams |
./max-params |
memberOrdering |
./member-ordering |
methodSignatureStyle |
./method-signature-style |
namingConvention |
./naming-convention |
noArrayConstructor |
./no-array-constructor |
noArrayDelete |
./no-array-delete |
noBaseToString |
./no-base-to-string |
confusingNonNullAssertionLikeNotEqual |
./no-confusing-non-null-assertion |
noConfusingVoidExpression |
./no-confusing-void-expression |
noDeprecated |
./no-deprecated |
noDupeClassMembers |
./no-dupe-class-members |
noDuplicateEnumValues |
./no-duplicate-enum-values |
noDuplicateTypeConstituents |
./no-duplicate-type-constituents |
noDynamicDelete |
./no-dynamic-delete |
noEmptyFunction |
./no-empty-function |
noEmptyInterface |
./no-empty-interface |
noEmptyObjectType |
./no-empty-object-type |
noExplicitAny |
./no-explicit-any |
noExtraNonNullAssertion |
./no-extra-non-null-assertion |
noExtraneousClass |
./no-extraneous-class |
noFloatingPromises |
./no-floating-promises |
noForInArray |
./no-for-in-array |
noImpliedEval |
./no-implied-eval |
noImportTypeSideEffects |
./no-import-type-side-effects |
noInferrableTypes |
./no-inferrable-types |
noInvalidThis |
./no-invalid-this |
noInvalidVoidType |
./no-invalid-void-type |
noLoopFunc |
./no-loop-func |
noLossOfPrecision |
./no-loss-of-precision |
noMagicNumbers |
./no-magic-numbers |
noMeaninglessVoidOperator |
./no-meaningless-void-operator |
noMisusedNew |
./no-misused-new |
noMisusedPromises |
./no-misused-promises |
noMisusedSpread |
./no-misused-spread |
noMixedEnums |
./no-mixed-enums |
noNamespace |
./no-namespace |
noNonNullAssertedNullishCoalescing |
./no-non-null-asserted-nullish-coalescing |
noNonNullAssertedOptionalChain |
./no-non-null-asserted-optional-chain |
noNonNullAssertion |
./no-non-null-assertion |
noRedeclare |
./no-redeclare |
noRedundantTypeConstituents |
./no-redundant-type-constituents |
noRequireImports |
./no-require-imports |
noRestrictedImports |
./no-restricted-imports |
noRestrictedTypes |
./no-restricted-types |
noShadow |
./no-shadow |
noThisAlias |
./no-this-alias |
noTypeAlias |
./no-type-alias |
noUnnecessaryBooleanLiteralCompare |
./no-unnecessary-boolean-literal-compare |
noUnnecessaryCondition |
./no-unnecessary-condition |
noUnnecessaryParameterPropertyAssignment |
./no-unnecessary-parameter-property-assignment |
noUnnecessaryQualifier |
./no-unnecessary-qualifier |
noUnnecessaryTemplateExpression |
./no-unnecessary-template-expression |
noUnnecessaryTypeArguments |
./no-unnecessary-type-arguments |
noUnnecessaryTypeAssertion |
./no-unnecessary-type-assertion |
noUnnecessaryTypeConstraint |
./no-unnecessary-type-constraint |
noUnnecessaryTypeConversion |
./no-unnecessary-type-conversion |
noUnnecessaryTypeParameters |
./no-unnecessary-type-parameters |
noUnsafeArgument |
./no-unsafe-argument |
noUnsafeAssignment |
./no-unsafe-assignment |
noUnsafeCall |
./no-unsafe-call |
noUnsafeDeclarationMerging |
./no-unsafe-declaration-merging |
noUnsafeEnumComparison |
./no-unsafe-enum-comparison |
noUnsafeFunctionType |
./no-unsafe-function-type |
noUnsafeMemberAccess |
./no-unsafe-member-access |
noUnsafeReturn |
./no-unsafe-return |
noUnsafeTypeAssertion |
./no-unsafe-type-assertion |
noUnsafeUnaryMinus |
./no-unsafe-unary-minus |
noUnusedExpressions |
./no-unused-expressions |
noUnusedVars |
./no-unused-vars |
noUseBeforeDefine |
./no-use-before-define |
noUselessConstructor |
./no-useless-constructor |
noUselessEmptyExport |
./no-useless-empty-export |
noVarRequires |
./no-var-requires |
noWrapperObjectTypes |
./no-wrapper-object-types |
nonNullableTypeAssertionStyle |
./non-nullable-type-assertion-style |
onlyThrowError |
./only-throw-error |
parameterProperties |
./parameter-properties |
preferAsConst |
./prefer-as-const |
preferDestructuring |
./prefer-destructuring |
preferEnumInitializers |
./prefer-enum-initializers |
preferFind |
./prefer-find |
preferForOf |
./prefer-for-of |
preferFunctionType |
./prefer-function-type |
preferIncludes |
./prefer-includes |
preferLiteralEnumMember |
./prefer-literal-enum-member |
preferNamespaceKeyword |
./prefer-namespace-keyword |
preferNullishCoalescing |
./prefer-nullish-coalescing |
preferOptionalChain |
./prefer-optional-chain |
preferPromiseRejectErrors |
./prefer-promise-reject-errors |
preferReadonly |
./prefer-readonly |
preferReadonlyParameterTypes |
./prefer-readonly-parameter-types |
preferReduceTypeParameter |
./prefer-reduce-type-parameter |
preferRegexpExec |
./prefer-regexp-exec |
preferReturnThisType |
./prefer-return-this-type |
preferStringStartsEndsWith |
./prefer-string-starts-ends-with |
preferTsExpectError |
./prefer-ts-expect-error |
promiseFunctionAsync |
./promise-function-async |
relatedGetterSetterPairs |
./related-getter-setter-pairs |
requireArraySortCompare |
./require-array-sort-compare |
requireAwait |
./require-await |
restrictPlusOperands |
./restrict-plus-operands |
restrictTemplateExpressions |
./restrict-template-expressions |
returnAwait |
./return-await |
sortTypeConstituents |
./sort-type-constituents |
strictBooleanExpressions |
./strict-boolean-expressions |
switchExhaustivenessCheck |
./switch-exhaustiveness-check |
tripleSlashReference |
./triple-slash-reference |
typedef |
./typedef |
unboundMethod |
./unbound-method |
unifiedSignatures |
./unified-signatures |
useUnknownInCatchCallbackVariable |
./use-unknown-in-catch-callback-variable |
Variables & Constants¶
Name | Type | Kind | Value | Exported |
---|---|---|---|---|
rules |
Linter.PluginRules |
const | `{ | |
'adjacent-overload-signatures': adjacentOverloadSignatures, | ||||
'array-type': arrayType, | ||||
'await-thenable': awaitThenable, | ||||
'ban-ts-comment': banTsComment, | ||||
'ban-tslint-comment': banTslintComment, | ||||
'class-literal-property-style': classLiteralPropertyStyle, | ||||
'class-methods-use-this': classMethodsUseThis, | ||||
'consistent-generic-constructors': consistentGenericConstructors, | ||||
'consistent-indexed-object-style': consistentIndexedObjectStyle, | ||||
'consistent-return': consistentReturn, | ||||
'consistent-type-assertions': consistentTypeAssertions, | ||||
'consistent-type-definitions': consistentTypeDefinitions, | ||||
'consistent-type-exports': consistentTypeExports, | ||||
'consistent-type-imports': consistentTypeImports, | ||||
'default-param-last': defaultParamLast, | ||||
'dot-notation': dotNotation, | ||||
'explicit-function-return-type': explicitFunctionReturnType, | ||||
'explicit-member-accessibility': explicitMemberAccessibility, | ||||
'explicit-module-boundary-types': explicitModuleBoundaryTypes, | ||||
'init-declarations': initDeclarations, | ||||
'max-params': maxParams, | ||||
'member-ordering': memberOrdering, | ||||
'method-signature-style': methodSignatureStyle, | ||||
'naming-convention': namingConvention, | ||||
'no-array-constructor': noArrayConstructor, | ||||
'no-array-delete': noArrayDelete, | ||||
'no-base-to-string': noBaseToString, | ||||
'no-confusing-non-null-assertion': confusingNonNullAssertionLikeNotEqual, | ||||
'no-confusing-void-expression': noConfusingVoidExpression, | ||||
'no-deprecated': noDeprecated, | ||||
'no-dupe-class-members': noDupeClassMembers, | ||||
'no-duplicate-enum-values': noDuplicateEnumValues, | ||||
'no-duplicate-type-constituents': noDuplicateTypeConstituents, | ||||
'no-dynamic-delete': noDynamicDelete, | ||||
'no-empty-function': noEmptyFunction, | ||||
'no-empty-interface': noEmptyInterface, | ||||
'no-empty-object-type': noEmptyObjectType, | ||||
'no-explicit-any': noExplicitAny, | ||||
'no-extra-non-null-assertion': noExtraNonNullAssertion, | ||||
'no-extraneous-class': noExtraneousClass, | ||||
'no-floating-promises': noFloatingPromises, | ||||
'no-for-in-array': noForInArray, | ||||
'no-implied-eval': noImpliedEval, | ||||
'no-import-type-side-effects': noImportTypeSideEffects, | ||||
'no-inferrable-types': noInferrableTypes, | ||||
'no-invalid-this': noInvalidThis, | ||||
'no-invalid-void-type': noInvalidVoidType, | ||||
'no-loop-func': noLoopFunc, | ||||
'no-loss-of-precision': noLossOfPrecision, | ||||
'no-magic-numbers': noMagicNumbers, | ||||
'no-meaningless-void-operator': noMeaninglessVoidOperator, | ||||
'no-misused-new': noMisusedNew, | ||||
'no-misused-promises': noMisusedPromises, | ||||
'no-misused-spread': noMisusedSpread, | ||||
'no-mixed-enums': noMixedEnums, | ||||
'no-namespace': noNamespace, | ||||
'no-non-null-asserted-nullish-coalescing': noNonNullAssertedNullishCoalescing, | ||||
'no-non-null-asserted-optional-chain': noNonNullAssertedOptionalChain, | ||||
'no-non-null-assertion': noNonNullAssertion, | ||||
'no-redeclare': noRedeclare, | ||||
'no-redundant-type-constituents': noRedundantTypeConstituents, | ||||
'no-require-imports': noRequireImports, | ||||
'no-restricted-imports': noRestrictedImports, | ||||
'no-restricted-types': noRestrictedTypes, | ||||
'no-shadow': noShadow, | ||||
'no-this-alias': noThisAlias, | ||||
'no-type-alias': noTypeAlias, | ||||
'no-unnecessary-boolean-literal-compare': noUnnecessaryBooleanLiteralCompare, | ||||
'no-unnecessary-condition': noUnnecessaryCondition, | ||||
'no-unnecessary-parameter-property-assignment': | ||||
noUnnecessaryParameterPropertyAssignment, | ||||
'no-unnecessary-qualifier': noUnnecessaryQualifier, | ||||
'no-unnecessary-template-expression': noUnnecessaryTemplateExpression, | ||||
'no-unnecessary-type-arguments': noUnnecessaryTypeArguments, | ||||
'no-unnecessary-type-assertion': noUnnecessaryTypeAssertion, | ||||
'no-unnecessary-type-constraint': noUnnecessaryTypeConstraint, | ||||
'no-unnecessary-type-conversion': noUnnecessaryTypeConversion, | ||||
'no-unnecessary-type-parameters': noUnnecessaryTypeParameters, | ||||
'no-unsafe-argument': noUnsafeArgument, | ||||
'no-unsafe-assignment': noUnsafeAssignment, | ||||
'no-unsafe-call': noUnsafeCall, | ||||
'no-unsafe-declaration-merging': noUnsafeDeclarationMerging, | ||||
'no-unsafe-enum-comparison': noUnsafeEnumComparison, | ||||
'no-unsafe-function-type': noUnsafeFunctionType, | ||||
'no-unsafe-member-access': noUnsafeMemberAccess, | ||||
'no-unsafe-return': noUnsafeReturn, | ||||
'no-unsafe-type-assertion': noUnsafeTypeAssertion, | ||||
'no-unsafe-unary-minus': noUnsafeUnaryMinus, | ||||
'no-unused-expressions': noUnusedExpressions, | ||||
'no-unused-vars': noUnusedVars, | ||||
'no-use-before-define': noUseBeforeDefine, | ||||
'no-useless-constructor': noUselessConstructor, | ||||
'no-useless-empty-export': noUselessEmptyExport, | ||||
'no-var-requires': noVarRequires, | ||||
'no-wrapper-object-types': noWrapperObjectTypes, | ||||
'non-nullable-type-assertion-style': nonNullableTypeAssertionStyle, | ||||
'only-throw-error': onlyThrowError, | ||||
'parameter-properties': parameterProperties, | ||||
'prefer-as-const': preferAsConst, | ||||
'prefer-destructuring': preferDestructuring, | ||||
'prefer-enum-initializers': preferEnumInitializers, | ||||
'prefer-find': preferFind, | ||||
'prefer-for-of': preferForOf, | ||||
'prefer-function-type': preferFunctionType, | ||||
'prefer-includes': preferIncludes, | ||||
'prefer-literal-enum-member': preferLiteralEnumMember, | ||||
'prefer-namespace-keyword': preferNamespaceKeyword, | ||||
'prefer-nullish-coalescing': preferNullishCoalescing, | ||||
'prefer-optional-chain': preferOptionalChain, | ||||
'prefer-promise-reject-errors': preferPromiseRejectErrors, | ||||
'prefer-readonly': preferReadonly, | ||||
'prefer-readonly-parameter-types': preferReadonlyParameterTypes, | ||||
'prefer-reduce-type-parameter': preferReduceTypeParameter, | ||||
'prefer-regexp-exec': preferRegexpExec, | ||||
'prefer-return-this-type': preferReturnThisType, | ||||
'prefer-string-starts-ends-with': preferStringStartsEndsWith, | ||||
'prefer-ts-expect-error': preferTsExpectError, | ||||
'promise-function-async': promiseFunctionAsync, | ||||
'related-getter-setter-pairs': relatedGetterSetterPairs, | ||||
'require-array-sort-compare': requireArraySortCompare, | ||||
'require-await': requireAwait, | ||||
'restrict-plus-operands': restrictPlusOperands, | ||||
'restrict-template-expressions': restrictTemplateExpressions, | ||||
'return-await': returnAwait, | ||||
'sort-type-constituents': sortTypeConstituents, | ||||
'strict-boolean-expressions': strictBooleanExpressions, | ||||
'switch-exhaustiveness-check': switchExhaustivenessCheck, | ||||
'triple-slash-reference': tripleSlashReference, | ||||
typedef, | ||||
'unbound-method': unboundMethod, | ||||
'unified-signatures': unifiedSignatures, | ||||
'use-unknown-in-catch-callback-variable': useUnknownInCatchCallbackVariable, | ||||
} satisfies Linter.PluginRules` | ✗ |