Update checked-in dependencies
This commit is contained in:
parent
aab34601c1
commit
d853bec339
3889 changed files with 146268 additions and 299 deletions
5
node_modules/@typescript-eslint/eslint-plugin/dist/rules/dot-notation.js
generated
vendored
5
node_modules/@typescript-eslint/eslint-plugin/dist/rules/dot-notation.js
generated
vendored
|
|
@ -125,13 +125,12 @@ exports.default = (0, util_1.createRule)({
|
|||
modifierKind === ts.SyntaxKind.ProtectedKeyword)) {
|
||||
return;
|
||||
}
|
||||
if (propertySymbol === undefined &&
|
||||
allowIndexSignaturePropertyAccess) {
|
||||
if (propertySymbol == null && allowIndexSignaturePropertyAccess) {
|
||||
const objectType = services.getTypeAtLocation(node.object);
|
||||
const indexType = objectType
|
||||
.getNonNullableType()
|
||||
.getStringIndexType();
|
||||
if (indexType !== undefined) {
|
||||
if (indexType != null) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
2
node_modules/@typescript-eslint/eslint-plugin/dist/rules/dot-notation.js.map
generated
vendored
2
node_modules/@typescript-eslint/eslint-plugin/dist/rules/dot-notation.js.map
generated
vendored
|
|
@ -1 +1 @@
|
|||
{"version":3,"file":"dot-notation.js","sourceRoot":"","sources":["../../src/rules/dot-notation.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,oDAA0D;AAC1D,sDAAwC;AACxC,+CAAiC;AAOjC,kCAAsE;AACtE,iEAA8D;AAE9D,MAAM,QAAQ,GAAG,IAAA,qCAAiB,EAAC,cAAc,CAAC,CAAC;AAKnD,MAAM,cAAc,GAAY;IAC9B;QACE,iCAAiC,EAAE,KAAK;QACxC,aAAa,EAAE,IAAI;QACnB,YAAY,EAAE,EAAE;QAChB,+BAA+B,EAAE,KAAK;QACtC,iCAAiC,EAAE,KAAK;KACzC;CACF,CAAC;AAEF,kBAAe,IAAA,iBAAU,EAAsB;IAC7C,IAAI,EAAE,cAAc;IACpB,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,cAAc;QACd,I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AE,CACf,IAAI,CAAC,QAAQ,CAAC,IAAI,KAAK,sBAAc,CAAC,OAAO;4BAC7C,cAAc,CAAC,WAAW,KAAK,IAAI,CAAC,QAAQ,CAAC,KAAK,CACrD,CAAC;oBACN,MAAM,YAAY,GAAG,IAAA,mBAAY,EAC/B,cAAc,EAAE,eAAe,EAAE,EAAE,CAAC,CAAC,CAAC,CACvC,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;oBACZ,IACE,CAAC,+BAA+B;wBAC9B,YAAY,KAAK,EAAE,CAAC,UAAU,CAAC,cAAc,CAAC;wBAChD,CAAC,iCAAiC;4BAChC,YAAY,KAAK,EAAE,CAAC,UAAU,CAAC,gBAAgB,CAAC,EAClD,CAAC;wBACD,OAAO;oBACT,CAAC;oBACD,IAAI,cAAc,IAAI,IAAI,IAAI,iCAAiC,EAAE,CAAC;wBAChE,MAAM,UAAU,GAAG,QAAQ,CAAC,iBAAiB,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;wBAC3D,MAAM,SAAS,GAAG,UAAU;6BACzB,kBAAkB,EAAE;6BACpB,kBAAkB,EAAE,CAAC;wBACxB,IAAI,SAAS,IAAI,IAAI,EAAE,CAAC;4BACtB,OAAO;wBACT,CAAC;oBACH,CAAC;gBACH,CAAC;gBACD,KAAK,CAAC,gBAAgB,CAAC,IAAI,CAAC,CAAC;YAC/B,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
|
||||
|
|
@ -25,7 +25,7 @@ function normalizeOption(option) {
|
|||
regex: new RegExp(option.custom.regex, 'u'),
|
||||
}
|
||||
: null,
|
||||
filter: option.filter !== undefined
|
||||
filter: option.filter != null
|
||||
? typeof option.filter === 'string'
|
||||
? {
|
||||
match: true,
|
||||
|
|
@ -37,13 +37,13 @@ function normalizeOption(option) {
|
|||
}
|
||||
: null,
|
||||
format: option.format ? option.format.map(f => enums_1.PredefinedFormats[f]) : null,
|
||||
leadingUnderscore: option.leadingUnderscore !== undefined
|
||||
leadingUnderscore: option.leadingUnderscore != null
|
||||
? enums_1.UnderscoreOptions[option.leadingUnderscore]
|
||||
: null,
|
||||
modifiers: option.modifiers?.map(m => enums_1.Modifiers[m]) ?? null,
|
||||
prefix: option.prefix && option.prefix.length > 0 ? option.prefix : null,
|
||||
suffix: option.suffix && option.suffix.length > 0 ? option.suffix : null,
|
||||
trailingUnderscore: option.trailingUnderscore !== undefined
|
||||
trailingUnderscore: option.trailingUnderscore != null
|
||||
? enums_1.UnderscoreOptions[option.trailingUnderscore]
|
||||
: null,
|
||||
types: option.types?.map(m => enums_1.TypeModifiers[m]) ?? null,
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
{"version":3,"file":"parse-options.js","sourceRoot":"","sources":["../../../src/rules/naming-convention-utils/parse-options.ts"],"names":[],"mappings":";;AA6FS,oCAAY;AAtFrB,qCAA0C;AAC1C,mCAOiB;AACjB,qCAA0C;AAC1C,2CAA8C;AAE9C,SAAS,eAAe,CAAC,MAAgB;IACvC,IAAI,MAAM,GAAG,CAAC,CAAC;IACf,MAAM,CAAC,SAAS,EAAE,OAAO,CAAC,GAAG,CAAC,EAAE;QAC9B,MAAM,IAAI,iBAAS,CAAC,GAAG,CAAC,CAAC;IAC3B,CAAC,CAAC,CAAC;IACH,MAAM,CAAC,KAAK,EAAE,OAAO,CAAC,GAAG,CAAC,EAAE;QAC1B,MAAM,IAAI,qBAAa,CAAC,GAAG,CAAC,CAAC;IAC/B,CAAC,CAAC,CAAC;IAEH,sDAAsD;IACtD,IAAI,MAAM,CAAC,MAAM,EAAE,CAAC;QAClB,MAAM,IAAI,CAAC,IAAI,EAAE,CAAC;IACpB,CAAC;IAED,MAAM,gBAAgB,GAAG;QACvB,iBAAiB;QACjB,MAAM,EAAE,MAAM,CAAC,MAAM;YACnB,CAAC,CAAC;gBACE,KAAK,EAAE,MAAM,CAAC,MAAM,CAAC,KAAK;gBAC1B,KAAK,EAAE,IAAI,MAAM,CAAC,MAAM,CAAC,MAAM,C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CAAC,QAAQ,CAAC;QACvB,GAAG,gBAAgB;KACpB,CAAC,CAAC,CAAC;AACN,CAAC;AAED,SAAS,YAAY,CAAC,OAAgB;IACpC,MAAM,iBAAiB,GAAG,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,eAAe,CAAC,CAAC;IAEnE,OAAO,MAAM,CAAC,WAAW,CACvB,IAAA,mBAAY,EAAC,iBAAS,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC;QAC/B,CAAC;QACD,IAAA,2BAAe,EAAC,CAAC,EAAE,OAAO,EAAE,iBAAiB,CAAC;KAC/C,CAAC,CACc,CAAC;AACrB,CAAC"}
|
||||
45
node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-base-to-string.js
generated
vendored
45
node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-base-to-string.js
generated
vendored
|
|
@ -156,13 +156,16 @@ exports.default = (0, util_1.createRule)({
|
|||
return Usefulness.Always;
|
||||
}
|
||||
function collectToStringCertainty(type) {
|
||||
const toString = checker.getPropertyOfType(type, 'toString') ??
|
||||
checker.getPropertyOfType(type, 'toLocaleString');
|
||||
const declarations = toString?.getDeclarations();
|
||||
if (!toString || !declarations || declarations.length === 0) {
|
||||
// https://github.com/JoshuaKGoldberg/ts-api-utils/issues/382
|
||||
if (tsutils.isTypeParameter(type)) {
|
||||
const constraint = type.getConstraint();
|
||||
if (constraint) {
|
||||
return collectToStringCertainty(constraint);
|
||||
}
|
||||
// unconstrained generic means `unknown`
|
||||
return Usefulness.Always;
|
||||
}
|
||||
// Patch for old version TypeScript, the Boolean type definition missing toString()
|
||||
// the Boolean type definition missing toString()
|
||||
if (type.flags & ts.TypeFlags.Boolean ||
|
||||
type.flags & ts.TypeFlags.BooleanLiteral) {
|
||||
return Usefulness.Always;
|
||||
|
|
@ -170,22 +173,39 @@ exports.default = (0, util_1.createRule)({
|
|||
if (ignoredTypeNames.includes((0, util_1.getTypeName)(checker, type))) {
|
||||
return Usefulness.Always;
|
||||
}
|
||||
if (declarations.every(({ parent }) => !ts.isInterfaceDeclaration(parent) || parent.name.text !== 'Object')) {
|
||||
return Usefulness.Always;
|
||||
}
|
||||
if (type.isIntersection()) {
|
||||
return collectIntersectionTypeCertainty(type, collectToStringCertainty);
|
||||
}
|
||||
if (!type.isUnion()) {
|
||||
return Usefulness.Never;
|
||||
if (type.isUnion()) {
|
||||
return collectUnionTypeCertainty(type, collectToStringCertainty);
|
||||
}
|
||||
return collectUnionTypeCertainty(type, collectToStringCertainty);
|
||||
const toString = checker.getPropertyOfType(type, 'toString') ??
|
||||
checker.getPropertyOfType(type, 'toLocaleString');
|
||||
if (!toString) {
|
||||
// e.g. any/unknown
|
||||
return Usefulness.Always;
|
||||
}
|
||||
const declarations = toString.getDeclarations();
|
||||
if (declarations == null || declarations.length !== 1) {
|
||||
// If there are multiple declarations, at least one of them must not be
|
||||
// the default object toString.
|
||||
//
|
||||
// This may only matter for older versions of TS
|
||||
// see https://github.com/typescript-eslint/typescript-eslint/issues/8585
|
||||
return Usefulness.Always;
|
||||
}
|
||||
const declaration = declarations[0];
|
||||
const isBaseToString = ts.isInterfaceDeclaration(declaration.parent) &&
|
||||
declaration.parent.name.text === 'Object';
|
||||
return isBaseToString ? Usefulness.Never : Usefulness.Always;
|
||||
}
|
||||
function isBuiltInStringCall(node) {
|
||||
if (node.callee.type === utils_1.AST_NODE_TYPES.Identifier &&
|
||||
// eslint-disable-next-line @typescript-eslint/internal/prefer-ast-types-enum
|
||||
node.callee.name === 'String' &&
|
||||
node.arguments[0]) {
|
||||
const scope = context.sourceCode.getScope(node);
|
||||
// eslint-disable-next-line @typescript-eslint/internal/prefer-ast-types-enum
|
||||
const variable = scope.set.get('String');
|
||||
return !variable?.defs.length;
|
||||
}
|
||||
|
|
@ -204,7 +224,8 @@ exports.default = (0, util_1.createRule)({
|
|||
}
|
||||
},
|
||||
CallExpression(node) {
|
||||
if (isBuiltInStringCall(node)) {
|
||||
if (isBuiltInStringCall(node) &&
|
||||
node.arguments[0].type !== utils_1.AST_NODE_TYPES.SpreadElement) {
|
||||
checkExpression(node.arguments[0]);
|
||||
}
|
||||
},
|
||||
|
|
|
|||
2
node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-base-to-string.js.map
generated
vendored
2
node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-base-to-string.js.map
generated
vendored
File diff suppressed because one or more lines are too long
26
node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-deprecated.js
generated
vendored
26
node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-deprecated.js
generated
vendored
|
|
@ -77,7 +77,7 @@ exports.default = (0, util_1.createRule)({
|
|||
const targetSymbol = checker.getAliasedSymbol(symbol);
|
||||
while (tsutils.isSymbolFlagSet(symbol, ts.SymbolFlags.Alias)) {
|
||||
const reason = getJsDocDeprecation(symbol);
|
||||
if (reason !== undefined) {
|
||||
if (reason != null) {
|
||||
return reason;
|
||||
}
|
||||
const immediateAliasedSymbol = symbol.getDeclarations() && checker.getImmediateAliasedSymbol(symbol);
|
||||
|
|
@ -196,8 +196,7 @@ exports.default = (0, util_1.createRule)({
|
|||
// If the node is a direct function call, we look for its signature.
|
||||
const signature = (0, util_1.nullThrows)(checker.getResolvedSignature(tsNode), 'Expected call like node to have signature');
|
||||
const symbol = services.getSymbolAtLocation(node);
|
||||
const aliasedSymbol = symbol !== undefined &&
|
||||
tsutils.isSymbolFlagSet(symbol, ts.SymbolFlags.Alias)
|
||||
const aliasedSymbol = symbol != null && tsutils.isSymbolFlagSet(symbol, ts.SymbolFlags.Alias)
|
||||
? checker.getAliasedSymbol(symbol)
|
||||
: symbol;
|
||||
const symbolDeclarationKind = aliasedSymbol?.declarations?.[0].kind;
|
||||
|
|
@ -242,12 +241,23 @@ exports.default = (0, util_1.createRule)({
|
|||
// aliased symbol, but rely on the getJsDocDeprecation(signature) call below.
|
||||
false) ?? getJsDocDeprecation(signature));
|
||||
}
|
||||
function getJSXAttributeDeprecation(openingElement, propertyName) {
|
||||
const tsNode = services.esTreeNodeToTSNodeMap.get(openingElement.name);
|
||||
const contextualType = (0, util_1.nullThrows)(checker.getContextualType(tsNode), 'Expected JSX opening element name to have contextualType');
|
||||
const symbol = contextualType.getProperty(propertyName);
|
||||
return getJsDocDeprecation(symbol);
|
||||
}
|
||||
function getDeprecationReason(node) {
|
||||
const callLikeNode = getCallLikeNode(node);
|
||||
if (callLikeNode) {
|
||||
return getCallLikeDeprecation(callLikeNode);
|
||||
}
|
||||
if (node.parent.type === utils_1.AST_NODE_TYPES.Property) {
|
||||
if (node.parent.type === utils_1.AST_NODE_TYPES.JSXAttribute &&
|
||||
node.type !== utils_1.AST_NODE_TYPES.Super) {
|
||||
return getJSXAttributeDeprecation(node.parent.parent, node.name);
|
||||
}
|
||||
if (node.parent.type === utils_1.AST_NODE_TYPES.Property &&
|
||||
node.type !== utils_1.AST_NODE_TYPES.Super) {
|
||||
return getJsDocDeprecation(services.getTypeAtLocation(node.parent.parent).getProperty(node.name));
|
||||
}
|
||||
return searchForDeprecationInAliasesChain(services.getSymbolAtLocation(node), true);
|
||||
|
|
@ -257,18 +267,19 @@ exports.default = (0, util_1.createRule)({
|
|||
return;
|
||||
}
|
||||
const reason = getDeprecationReason(node);
|
||||
if (reason === undefined) {
|
||||
if (reason == null) {
|
||||
return;
|
||||
}
|
||||
const name = node.type === utils_1.AST_NODE_TYPES.Super ? 'super' : node.name;
|
||||
context.report({
|
||||
...(reason
|
||||
? {
|
||||
messageId: 'deprecatedWithReason',
|
||||
data: { name: node.name, reason },
|
||||
data: { name, reason },
|
||||
}
|
||||
: {
|
||||
messageId: 'deprecated',
|
||||
data: { name: node.name },
|
||||
data: { name },
|
||||
}),
|
||||
node,
|
||||
});
|
||||
|
|
@ -280,6 +291,7 @@ exports.default = (0, util_1.createRule)({
|
|||
checkIdentifier(node);
|
||||
}
|
||||
},
|
||||
Super: checkIdentifier,
|
||||
};
|
||||
},
|
||||
});
|
||||
|
|
|
|||
2
node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-deprecated.js.map
generated
vendored
2
node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-deprecated.js.map
generated
vendored
File diff suppressed because one or more lines are too long
4
node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-duplicate-enum-values.js
generated
vendored
4
node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-duplicate-enum-values.js
generated
vendored
|
|
@ -29,7 +29,7 @@ exports.default = (0, util_1.createRule)({
|
|||
const enumMembers = node.body.members;
|
||||
const seenValues = new Set();
|
||||
enumMembers.forEach(member => {
|
||||
if (member.initializer === undefined) {
|
||||
if (member.initializer == null) {
|
||||
return;
|
||||
}
|
||||
let value;
|
||||
|
|
@ -39,7 +39,7 @@ exports.default = (0, util_1.createRule)({
|
|||
else if (isNumberLiteral(member.initializer)) {
|
||||
value = Number(member.initializer.value);
|
||||
}
|
||||
if (value === undefined) {
|
||||
if (value == null) {
|
||||
return;
|
||||
}
|
||||
if (seenValues.has(value)) {
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
{"version":3,"file":"no-duplicate-enum-values.js","sourceRoot":"","sources":["../../src/rules/no-duplicate-enum-values.ts"],"names":[],"mappings":";;AAEA,oDAA0D;AAE1D,kCAAqC;AAErC,kBAAe,IAAA,iBAAU,EAAC;IACxB,IAAI,EAAE,0BAA0B;IAChC,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EAAE,uCAAuC;YACpD,WAAW,EAAE,aAAa;SAC3B;QACD,cAAc,EAAE,KAAK;QACrB,QAAQ,EAAE;YACR,cAAc,EAAE,wCAAwC;SACzD;QACD,MAAM,EAAE,EAAE;KACX;IACD,cAAc,EAAE,EAAE;IAClB,MAAM,CAAC,OAAO;QACZ,SAAS,eAAe,CACtB,IAAyB;YAEzB,OAAO,CACL,IAAI,CAAC,IAAI,KAAK,sBAAc,CAAC,OAAO,IAAI,OAAO,IAAI,CAAC,KAAK,KAAK,QAAQ,CACvE,CAAC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,CAAC,WAAW,CAAC,EAAE,CAAC;wBAC/C,KAAK,GAAG,MAAM,CAAC,MAAM,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;oBAC3C,CAAC;oBAED,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;wBAClB,OAAO;oBACT,CAAC;oBAED,IAAI,UAAU,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC;wBAC1B,OAAO,CAAC,MAAM,CAAC;4BACb,IAAI,EAAE,MAAM;4BACZ,SAAS,EAAE,gBAAgB;4BAC3B,IAAI,EAAE;gCACJ,KAAK;6BACN;yBACF,CAAC,CAAC;oBACL,CAAC;yBAAM,CAAC;wBACN,UAAU,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;oBACxB,CAAC;gBACH,CAAC,CAAC,CAAC;YACL,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
|
||||
2
node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-floating-promises.js
generated
vendored
2
node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-floating-promises.js
generated
vendored
|
|
@ -351,7 +351,7 @@ exports.default = (0, util_1.createRule)({
|
|||
// https://github.com/ajafff/tsutils/blob/49d0d31050b44b81e918eae4fbaf1dfe7b7286af/util/type.ts#L95-L125
|
||||
for (const ty of typeParts) {
|
||||
const then = ty.getProperty('then');
|
||||
if (then === undefined) {
|
||||
if (then == null) {
|
||||
continue;
|
||||
}
|
||||
const thenType = checker.getTypeOfSymbolAtLocation(then, node);
|
||||
|
|
|
|||
2
node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-floating-promises.js.map
generated
vendored
2
node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-floating-promises.js.map
generated
vendored
File diff suppressed because one or more lines are too long
22
node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-misused-promises.js
generated
vendored
22
node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-misused-promises.js
generated
vendored
|
|
@ -335,7 +335,7 @@ exports.default = (0, util_1.createRule)({
|
|||
}
|
||||
function checkVariableDeclaration(node) {
|
||||
const tsNode = services.esTreeNodeToTSNodeMap.get(node);
|
||||
if (tsNode.initializer === undefined ||
|
||||
if (tsNode.initializer == null ||
|
||||
node.init == null ||
|
||||
node.id.typeAnnotation == null) {
|
||||
return;
|
||||
|
|
@ -359,7 +359,7 @@ exports.default = (0, util_1.createRule)({
|
|||
const tsNode = services.esTreeNodeToTSNodeMap.get(node);
|
||||
if (ts.isPropertyAssignment(tsNode)) {
|
||||
const contextualType = checker.getContextualType(tsNode.initializer);
|
||||
if (contextualType !== undefined &&
|
||||
if (contextualType != null &&
|
||||
isVoidReturningFunctionType(checker, tsNode.initializer, contextualType) &&
|
||||
returnsThenable(checker, tsNode.initializer)) {
|
||||
if ((0, util_1.isFunction)(node.value)) {
|
||||
|
|
@ -387,7 +387,7 @@ exports.default = (0, util_1.createRule)({
|
|||
}
|
||||
else if (ts.isShorthandPropertyAssignment(tsNode)) {
|
||||
const contextualType = checker.getContextualType(tsNode.name);
|
||||
if (contextualType !== undefined &&
|
||||
if (contextualType != null &&
|
||||
isVoidReturningFunctionType(checker, tsNode.name, contextualType) &&
|
||||
returnsThenable(checker, tsNode.name)) {
|
||||
context.report({
|
||||
|
|
@ -414,11 +414,11 @@ exports.default = (0, util_1.createRule)({
|
|||
return;
|
||||
}
|
||||
const objType = checker.getContextualType(obj);
|
||||
if (objType === undefined) {
|
||||
if (objType == null) {
|
||||
return;
|
||||
}
|
||||
const propertySymbol = checker.getPropertyOfType(objType, tsNode.name.text);
|
||||
if (propertySymbol === undefined) {
|
||||
if (propertySymbol == null) {
|
||||
return;
|
||||
}
|
||||
const contextualType = checker.getTypeOfSymbolAtLocation(propertySymbol, tsNode.name);
|
||||
|
|
@ -442,7 +442,7 @@ exports.default = (0, util_1.createRule)({
|
|||
}
|
||||
function checkReturnStatement(node) {
|
||||
const tsNode = services.esTreeNodeToTSNodeMap.get(node);
|
||||
if (tsNode.expression === undefined || node.argument == null) {
|
||||
if (tsNode.expression == null || node.argument == null) {
|
||||
return;
|
||||
}
|
||||
// syntactically ignore some known-good cases to avoid touching type info
|
||||
|
|
@ -458,7 +458,7 @@ exports.default = (0, util_1.createRule)({
|
|||
return;
|
||||
}
|
||||
const contextualType = checker.getContextualType(tsNode.expression);
|
||||
if (contextualType !== undefined &&
|
||||
if (contextualType != null &&
|
||||
isVoidReturningFunctionType(checker, tsNode.expression, contextualType) &&
|
||||
returnsThenable(checker, tsNode.expression)) {
|
||||
context.report({
|
||||
|
|
@ -475,7 +475,7 @@ exports.default = (0, util_1.createRule)({
|
|||
}
|
||||
for (const nodeMember of tsNode.members) {
|
||||
const memberName = nodeMember.name?.getText();
|
||||
if (memberName === undefined) {
|
||||
if (memberName == null) {
|
||||
// Call/construct/index signatures don't have names. TS allows call signatures to mismatch,
|
||||
// and construct signatures can't be async.
|
||||
// TODO - Once we're able to use `checker.isTypeAssignableTo` (v8), we can check an index
|
||||
|
|
@ -503,7 +503,7 @@ exports.default = (0, util_1.createRule)({
|
|||
*/
|
||||
function checkHeritageTypeForMemberReturningVoid(nodeMember, heritageType, memberName) {
|
||||
const heritageMember = getMemberIfExists(heritageType, memberName);
|
||||
if (heritageMember === undefined) {
|
||||
if (heritageMember == null) {
|
||||
return;
|
||||
}
|
||||
const memberType = checker.getTypeOfSymbolAtLocation(heritageMember, nodeMember);
|
||||
|
|
@ -524,7 +524,7 @@ exports.default = (0, util_1.createRule)({
|
|||
const expressionContainer = services.esTreeNodeToTSNodeMap.get(node.value);
|
||||
const expression = services.esTreeNodeToTSNodeMap.get(node.value.expression);
|
||||
const contextualType = checker.getContextualType(expressionContainer);
|
||||
if (contextualType !== undefined &&
|
||||
if (contextualType != null &&
|
||||
isVoidReturningFunctionType(checker, expressionContainer, contextualType) &&
|
||||
returnsThenable(checker, expression)) {
|
||||
context.report({
|
||||
|
|
@ -568,7 +568,7 @@ function isAlwaysThenable(checker, node) {
|
|||
const thenProp = subType.getProperty('then');
|
||||
// If one of the alternates has no then property, it is not thenable in all
|
||||
// cases.
|
||||
if (thenProp === undefined) {
|
||||
if (thenProp == null) {
|
||||
return false;
|
||||
}
|
||||
// We walk through each variation of the then property. Since we know it
|
||||
|
|
|
|||
2
node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-misused-promises.js.map
generated
vendored
2
node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-misused-promises.js.map
generated
vendored
File diff suppressed because one or more lines are too long
2
node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-mixed-enums.js
generated
vendored
2
node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-mixed-enums.js
generated
vendored
|
|
@ -131,7 +131,7 @@ exports.default = (0, util_1.createRule)({
|
|||
// }
|
||||
for (const imported of imports) {
|
||||
const typeFromImported = getTypeFromImported(imported);
|
||||
if (typeFromImported !== undefined) {
|
||||
if (typeFromImported != null) {
|
||||
return typeFromImported;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
2
node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-mixed-enums.js.map
generated
vendored
2
node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-mixed-enums.js.map
generated
vendored
|
|
@ -1 +1 @@
|
|||
{"version":3,"file":"no-mixed-enums.js","sourceRoot":"","sources":["../../src/rules/no-mixed-enums.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,oEAAkE;AAClE,oDAA0D;AAC1D,sDAAwC;AACxC,+CAAiC;AAEjC,kCAAwD;AAExD,IAAK,WAIJ;AAJD,WAAK,WAAW;IACd,iDAAM,CAAA;IACN,iDAAM,CAAA;IACN,mDAAO,CAAA;AACT,CAAC,EAJI,WAAW,KAAX,WAAW,QAIf;AAED,kBAAe,IAAA,iBAAU,EAAC;IACxB,IAAI,EAAE,gBAAgB;IACtB,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EAAE,2DAA2D;YACxE,WAAW,EAAE,QA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WAAW,CAAC,MAAM,CAAC;YACzB,CAAC;YAED,2DAA2D;YAC3D,OAAO,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC;QAC7C,CAAC;QAED,OAAO;YACL,iBAAiB,CAAC,IAAI;gBACpB,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE,CAAC;oBAC9B,OAAO;gBACT,CAAC;gBAED,IAAI,WAAW,GAAG,2BAA2B,CAAC,IAAI,CAAC,CAAC;gBACpD,IAAI,WAAW,KAAK,EAAE,CAAC,SAAS,CAAC,OAAO,EAAE,CAAC;oBACzC,OAAO;gBACT,CAAC;gBAED,KAAK,MAAM,MAAM,IAAI,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC;oBACvC,MAAM,WAAW,GAAG,aAAa,CAAC,MAAM,CAAC,CAAC;oBAC1C,IAAI,WAAW,KAAK,WAAW,CAAC,OAAO,EAAE,CAAC;wBACxC,OAAO;oBACT,CAAC;oBAED,IAAI,WAAW,KAAK,WAAW,CAAC,MAAM,EAAE,CAAC;wBACvC,WAAW,KAAK,WAAW,CAAC;oBAC9B,CAAC;oBAED,IAAI,WAAW,KAAK,WAAW,EAAE,CAAC;wBAChC,OAAO,CAAC,MAAM,CAAC;4BACb,IAAI,EAAE,MAAM,CAAC,WAAW,IAAI,MAAM;4BAClC,SAAS,EAAE,OAAO;yBACnB,CAAC,CAAC;wBACH,OAAO;oBACT,CAAC;gBACH,CAAC;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
|
||||
2
node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-restricted-types.js
generated
vendored
2
node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-restricted-types.js
generated
vendored
|
|
@ -102,7 +102,7 @@ exports.default = (0, util_1.createRule)({
|
|||
const bannedTypes = new Map(Object.entries(types).map(([type, data]) => [removeSpaces(type), data]));
|
||||
function checkBannedTypes(typeNode, name = stringifyNode(typeNode, context.sourceCode)) {
|
||||
const bannedType = bannedTypes.get(name);
|
||||
if (bannedType === undefined || bannedType === false) {
|
||||
if (bannedType == null || bannedType === false) {
|
||||
return;
|
||||
}
|
||||
const customMessage = getCustomMessage(bannedType);
|
||||
|
|
|
|||
2
node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-restricted-types.js.map
generated
vendored
2
node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-restricted-types.js.map
generated
vendored
|
|
@ -1 +1 @@
|
|||
{"version":3,"file":"no-restricted-types.js","sourceRoot":"","sources":["../../src/rules/no-restricted-types.ts"],"names":[],"mappings":";;AAEA,oDAA0D;AAE1D,kCAAsD;AAsBtD,SAAS,YAAY,CAAC,GAAW;IAC/B,OAAO,GAAG,CAAC,UAAU,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;AACnC,CAAC;AAED,SAAS,aAAa,CACpB,IAAmB,EACnB,UAA+B;IAE/B,OAAO,YAAY,CAAC,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC;AAChD,CAAC;AAED,SAAS,gBAAgB,CACvB,UAAyE;IAEzE,IAAI,CAAC,UAAU,IAAI,UAAU,KAAK,IAAI,EAAE,CAAC;QACvC,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,IAAI,OAAO,UAAU,KAAK,QAAQ,EAAE,CAAC;QACnC,OAAO,IAAI,UAAU,EAAE,CAAC;IAC1B,CAAC;IAED,IAAI,UAAU,CAAC,OAAO,EAAE,CAAC;QACvB,OAAO,IAAI,UAAU,CAAC,OAAO,EAAE,CAAC;IAClC,CAAC;IAED,OAAO,EAAE,CAAC;AACZ,CAAC;AAED,MAAM,aAAa,GAAG;IACpB,MAAM,EAAE,sBAAc,CAAC,eAAe;IACtC,OAAO,EAAE,sBAAc,CAAC,gBAAgB;IACxC,KAAK,EAAE,sBAAc,CAAC,cAAc;IACpC,IAAI,EAAE,sBAAc,CAAC,aAAa;IAClC,MAAM,E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,CAAC;YACH,CAAC;YACD,eAAe,CAAC,IAAI;gBAClB,gBAAgB,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;gBAEhC,IAAI,IAAI,CAAC,aAAa,EAAE,CAAC;oBACvB,gBAAgB,CAAC,IAAI,CAAC,CAAC;gBACzB,CAAC;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
|
||||
{"version":3,"file":"no-restricted-types.js","sourceRoot":"","sources":["../../src/rules/no-restricted-types.ts"],"names":[],"mappings":";;AAEA,oDAA0D;AAE1D,kCAAsD;AAsBtD,SAAS,YAAY,CAAC,GAAW;IAC/B,OAAO,GAAG,CAAC,UAAU,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;AACnC,CAAC;AAED,SAAS,aAAa,CACpB,IAAmB,EACnB,UAA+B;IAE/B,OAAO,YAAY,CAAC,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC;AAChD,CAAC;AAED,SAAS,gBAAgB,CACvB,UAAyE;IAEzE,IAAI,CAAC,UAAU,IAAI,UAAU,KAAK,IAAI,EAAE,CAAC;QACvC,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,IAAI,OAAO,UAAU,KAAK,QAAQ,EAAE,CAAC;QACnC,OAAO,IAAI,UAAU,EAAE,CAAC;IAC1B,CAAC;IAED,IAAI,UAAU,CAAC,OAAO,EAAE,CAAC;QACvB,OAAO,IAAI,UAAU,CAAC,OAAO,EAAE,CAAC;IAClC,CAAC;IAED,OAAO,EAAE,CAAC;AACZ,CAAC;AAED,MAAM,aAAa,GAAG;IACpB,MAAM,EAAE,sBAAc,CAAC,eAAe;IACtC,OAAO,EAAE,sBAAc,CAAC,gBAAgB;IACxC,KAAK,EAAE,sBAAc,CAAC,cAAc;IACpC,IAAI,EAAE,sBAAc,CAAC,aAAa;IAClC,MAAM,EAAE,sBAAc,CAAC,eAAe;IACtC,MAAM,EAAE,sBAAc,CAAC,eAAe;IACtC,MAAM,EAAE,sBA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CAAC,CAAC;gBAEhC,IAAI,IAAI,CAAC,aAAa,EAAE,CAAC;oBACvB,gBAAgB,CAAC,IAAI,CAAC,CAAC;gBACzB,CAAC;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
|
||||
2
node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-type-alias.js
generated
vendored
2
node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-type-alias.js
generated
vendored
|
|
@ -162,7 +162,7 @@ exports.default = (0, util_1.createRule)({
|
|||
};
|
||||
const isValidGeneric = (type) => {
|
||||
return (type.node.type === utils_1.AST_NODE_TYPES.TSTypeReference &&
|
||||
type.node.typeArguments !== undefined);
|
||||
type.node.typeArguments != null);
|
||||
};
|
||||
const checkAndReport = (optionValue, isTopLevel, type, label) => {
|
||||
if (optionValue === 'never' ||
|
||||
|
|
|
|||
2
node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-type-alias.js.map
generated
vendored
2
node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-type-alias.js.map
generated
vendored
File diff suppressed because one or more lines are too long
|
|
@ -159,7 +159,7 @@ exports.default = (0, util_1.createRule)({
|
|||
return {
|
||||
BinaryExpression(node) {
|
||||
const comparison = getBooleanComparison(node);
|
||||
if (comparison === undefined) {
|
||||
if (comparison == null) {
|
||||
return;
|
||||
}
|
||||
if (comparison.expressionIsNullableBoolean) {
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
4
node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-qualifier.js
generated
vendored
4
node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-qualifier.js
generated
vendored
|
|
@ -80,12 +80,12 @@ exports.default = (0, util_1.createRule)({
|
|||
}
|
||||
function qualifierIsUnnecessary(qualifier, name) {
|
||||
const namespaceSymbol = services.getSymbolAtLocation(qualifier);
|
||||
if (namespaceSymbol === undefined ||
|
||||
if (namespaceSymbol == null ||
|
||||
!symbolIsNamespaceInScope(namespaceSymbol)) {
|
||||
return false;
|
||||
}
|
||||
const accessedSymbol = services.getSymbolAtLocation(name);
|
||||
if (accessedSymbol === undefined) {
|
||||
if (accessedSymbol == null) {
|
||||
return false;
|
||||
}
|
||||
// If the symbol in scope is different, the qualifier is necessary.
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
{"version":3,"file":"no-unnecessary-qualifier.js","sourceRoot":"","sources":["../../src/rules/no-unnecessary-qualifier.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,oDAA0D;AAC1D,sDAAwC;AACxC,+CAAiC;AAEjC,kCAAwD;AAExD,kBAAe,IAAA,iBAAU,EAAC;IACxB,IAAI,EAAE,0BAA0B;IAChC,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EAAE,2CAA2C;YACxD,oBAAoB,EAAE,IAAI;SAC3B;QACD,OAAO,EAAE,MAAM;QACf,QAAQ,EAAE;YACR,oBAAoB,EAClB,0DAA0D;SAC7D;QACD,MAAM,EAAE,EAAE;KACX;IACD,cAAc,EAAE,EAAE;IAClB,MAAM,CAAC,OAAO;QACZ,MAAM,iBAAiB,GAAc,EAAE,CAAC;QACxC,IAAI,gCAAgC,GAAyB,IAAI,CAAC;QAClE,MAAM,QAAQ,GAAG,IAAA,wBAAiB,EAAC,OAAO,CAAC,CAAC;QAC5C,MAAM,qBAAqB,GAAG,QAAQ,CAAC,qBAAqB,CAAC;QAC7D,MAAM,OAAO,GAAG,QAAQ,CAAC,OAAO,CAAC,cAAc,EAAE,CAAC;QAElD,SAAS,mBAAmB,CAC1B,MAAiB,EACjB,OAAuB;YAEvB,OAAO,OAAO,CAAC,eAAe,CAAC,MAAM,EAAE,EAAE,CAAC,WAAW,CAAC,KAAK,CAAC;gBAC1D,CAAC,CAAC,OAAO,CAAC,gBAAgB,CAAC,MAAM,CAAC;gBAClC,CAAC,CAAC,IAAI,CAAC;QACX,CAAC;QAED,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AEnB,OAAO,IAAI,CAAC,IAAI,KAAK,sBAAc,CAAC,gBAAgB,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC;QACzE,CAAC;QAED,SAAS,sBAAsB,CAC7B,IAAmB;YAEnB,OAAO,CACL,IAAI,CAAC,IAAI,KAAK,sBAAc,CAAC,UAAU;gBACvC,CAAC,0BAA0B,CAAC,IAAI,CAAC;oBAC/B,sBAAsB,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CACvC,CAAC;QACJ,CAAC;QAED,OAAO;YACL,8DAA8D,EAC5D,gBAAgB;YAClB,mEAAmE,EACjE,eAAe;YACjB,gEAAgE,EAC9D,gBAAgB;YAClB,qEAAqE,EACnE,eAAe;YACjB,uBAAuB,EAAE,+BAA+B;YACxD,kCAAkC,CAChC,IAA+B;gBAE/B,MAAM,QAAQ,GAAG,IAAI,CAAC,QAA+B,CAAC;gBACtD,IAAI,sBAAsB,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC;oBACxC,oBAAoB,CAAC,IAAI,EAAE,IAAI,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;gBACpD,CAAC;YACH,CAAC;YACD,iBAAiB,EAAE,gBAAgB;YACnC,wBAAwB,EAAE,eAAe;YACzC,0BAA0B,EAAE,eAAe;YAC3C,qCAAqC,CACnC,IAA4B;gBAE5B,gBAAgB,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;YAChC,CAAC;YACD,eAAe,CAAC,IAA8B;gBAC5C,oBAAoB,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC;YACpD,CAAC;YACD,sBAAsB,EAAE,+BAA+B;SACxD,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
|
||||
{"version":3,"file":"no-unnecessary-qualifier.js","sourceRoot":"","sources":["../../src/rules/no-unnecessary-qualifier.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,oDAA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D,gBAAgB;YAClB,mEAAmE,EACjE,eAAe;YACjB,gEAAgE,EAC9D,gBAAgB;YAClB,qEAAqE,EACnE,eAAe;YACjB,uBAAuB,EAAE,+BAA+B;YACxD,kCAAkC,CAChC,IAA+B;gBAE/B,MAAM,QAAQ,GAAG,IAAI,CAAC,QAA+B,CAAC;gBACtD,IAAI,sBAAsB,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC;oBACxC,oBAAoB,CAAC,IAAI,EAAE,IAAI,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;gBACpD,CAAC;YACH,CAAC;YACD,iBAAiB,EAAE,gBAAgB;YACnC,wBAAwB,EAAE,eAAe;YACzC,0BAA0B,EAAE,eAAe;YAC3C,qCAAqC,CACnC,IAA4B;gBAE5B,gBAAgB,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;YAChC,CAAC;YACD,eAAe,CAAC,IAA8B;gBAC5C,oBAAoB,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC;YACpD,CAAC;YACD,sBAAsB,EAAE,+BAA+B;SACxD,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
|
||||
|
|
@ -114,9 +114,9 @@ exports.default = (0, util_1.createRule)({
|
|||
}
|
||||
if (
|
||||
// is it `const x!: number`
|
||||
declaration.initializer === undefined &&
|
||||
declaration.exclamationToken === undefined &&
|
||||
declaration.type !== undefined) {
|
||||
declaration.initializer == null &&
|
||||
declaration.exclamationToken == null &&
|
||||
declaration.type != null) {
|
||||
// check if the defined variable type has changed since assignment
|
||||
const declarationType = checker.getTypeFromTypeNode(declaration.type);
|
||||
const type = (0, util_1.getConstrainedTypeAtLocation)(services, node);
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
6
node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-destructuring.js
generated
vendored
6
node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-destructuring.js
generated
vendored
|
|
@ -125,13 +125,13 @@ exports.default = (0, util_1.createRule)({
|
|||
};
|
||||
function performCheck(leftNode, rightNode, reportNode) {
|
||||
const rules = leftNode.type === utils_1.AST_NODE_TYPES.Identifier &&
|
||||
leftNode.typeAnnotation === undefined
|
||||
leftNode.typeAnnotation == null
|
||||
? baseRules
|
||||
: baseRulesWithoutFix();
|
||||
if ((leftNode.type === utils_1.AST_NODE_TYPES.ArrayPattern ||
|
||||
leftNode.type === utils_1.AST_NODE_TYPES.Identifier ||
|
||||
leftNode.type === utils_1.AST_NODE_TYPES.ObjectPattern) &&
|
||||
leftNode.typeAnnotation !== undefined &&
|
||||
leftNode.typeAnnotation != null &&
|
||||
!enforceForDeclarationWithTypeAnnotation) {
|
||||
return;
|
||||
}
|
||||
|
|
@ -199,7 +199,7 @@ function isTypeAnyOrIterableType(type, typeChecker) {
|
|||
}
|
||||
if (!type.isUnion()) {
|
||||
const iterator = tsutils.getWellKnownSymbolPropertyOfType(type, 'iterator', typeChecker);
|
||||
return iterator !== undefined;
|
||||
return iterator != null;
|
||||
}
|
||||
return type.types.every(t => isTypeAnyOrIterableType(t, typeChecker));
|
||||
}
|
||||
|
|
|
|||
2
node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-destructuring.js.map
generated
vendored
2
node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-destructuring.js.map
generated
vendored
|
|
@ -1 +1 @@
|
|||
{"version":3,"file":"prefer-destructuring.js","sourceRoot":"","sources":["../../src/rules/prefer-destructuring.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,oDAA0D;AAC1D,sDAAwC;AAOxC,kCAAuE;AACvE,iEAA8D;AAE9D,MAAM,QAAQ,GAAG,IAAA,qCAAiB,EAAC,sBAAsB,CAAC,CAAC;AAU3D,MAAM,uBAAuB,GAAgB;IAC3C,IAAI,EAAE,QAAQ;IACd,oBAAoB,EAAE,KAAK;IAC3B,UAAU,EAAE;QACV,KAAK,EAAE;YAC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,sBAAc,CAAC,OAAO,EAAE,CAAC;QAClD,OAAO,KAAK,CAAC;IACf,CAAC;IACD,OAAO,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;AAC/C,CAAC"}
|
||||
{"version":3,"file":"prefer-destructuring.js","sourceRoot":"","sources":["../../src/rules/prefer-destructuring.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,oDAA0D;AAC1D,sDAAwC;AAOxC,kCAAuE;AACvE,iEAA8D;AAE9D,MAAM,QAAQ,GAAG,IAAA,qCAAiB,EAAC,sBAAsB,CAAC,CAAC;AAU3D,MAAM,uBAAuB,GAAgB;IAC3C,IAAI,EAAE,QAAQ;IACd,oBAAoB,EAAE,KAAK;IAC3B,UAAU,EAAE;QACV,KAAK,EAAE;YACL,IAAI,EAAE,SAAS;SAChB;QACD,MAAM,EAAE;YACN,IAAI,EAAE,SAAS;SAChB;KACF;CACF,CAAC;AAEF,MAAM,MAAM,GAA2B;IACrC;QACE,KAAK,EAAE;YACL;gBACE,IAAI,EAAE,QAAQ;gBACd,oBAAoB,EAAE,KAAK;gBAC3B,UAAU,EAAE;oBACV,oBAAoB,EAAE,uBAAuB;oBAC7C,kBAAkB,EAAE,uBAAuB;iBAC5C;aACF;YACD,uBAAuB;SACxB;KACF;IACD;QACE,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,uCAAuC,EAAE;gBACvC,IAAI,EAAE,SAAS;gBACf,WAAW,EACT,kFAAkF;aACrF;YACD,2BAA2B,EAAE;gBAC3B,IAAI,EAAE,SAAS;gBACf,WAAW,EACT,6FAA6F;aAChG;SACF;KACF;CACF,CAAC;AAEF,kBAAe,IAAA,iBAAU,EAAsB;IAC7C,IAAI,EAAE,sBAAsB;IAC5B,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,2DAA2D;QAC3D,IAAI,EAAE;YACJ,WAAW,EAAE,kDAAkD;YAC/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IAAI,CAAC;IACd,CAAC;IACD,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE,CAAC;QACpB,MAAM,QAAQ,GAAG,OAAO,CAAC,gCAAgC,CACvD,IAAI,EACJ,UAAU,EACV,WAAW,CACZ,CAAC;QACF,OAAO,QAAQ,IAAI,IAAI,CAAC;IAC1B,CAAC;IACD,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,uBAAuB,CAAC,CAAC,EAAE,WAAW,CAAC,CAAC,CAAC;AACxE,CAAC;AAED,SAAS,gCAAgC,CACvC,IAAyB;IAEzB,IAAI,IAAI,CAAC,IAAI,KAAK,sBAAc,CAAC,gBAAgB,EAAE,CAAC;QAClD,OAAO,KAAK,CAAC;IACf,CAAC;IACD,IAAI,IAAI,CAAC,QAAQ,CAAC,IAAI,KAAK,sBAAc,CAAC,OAAO,EAAE,CAAC;QAClD,OAAO,KAAK,CAAC;IACf,CAAC;IACD,OAAO,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;AAC/C,CAAC"}
|
||||
4
node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-function-type.js
generated
vendored
4
node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-function-type.js
generated
vendored
|
|
@ -61,7 +61,7 @@ exports.default = (0, util_1.createRule)({
|
|||
function checkMember(member, node, tsThisTypes = null) {
|
||||
if ((member.type === utils_1.AST_NODE_TYPES.TSCallSignatureDeclaration ||
|
||||
member.type === utils_1.AST_NODE_TYPES.TSConstructSignatureDeclaration) &&
|
||||
member.returnType !== undefined) {
|
||||
member.returnType != null) {
|
||||
if (tsThisTypes?.length &&
|
||||
node.type === utils_1.AST_NODE_TYPES.TSInterfaceDeclaration) {
|
||||
// the message can be confusing if we don't point directly to the `this` node instead of the whole member
|
||||
|
|
@ -100,7 +100,7 @@ exports.default = (0, util_1.createRule)({
|
|||
suggestion = `(${suggestion})`;
|
||||
}
|
||||
if (node.type === utils_1.AST_NODE_TYPES.TSInterfaceDeclaration) {
|
||||
if (node.typeParameters !== undefined) {
|
||||
if (node.typeParameters != null) {
|
||||
suggestion = `type ${context.sourceCode
|
||||
.getText()
|
||||
.slice(node.id.range[0], node.typeParameters.range[1])} = ${suggestion}${lastChar}`;
|
||||
|
|
|
|||
2
node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-function-type.js.map
generated
vendored
2
node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-function-type.js.map
generated
vendored
File diff suppressed because one or more lines are too long
|
|
@ -269,7 +269,7 @@ function gatherLogicalOperands(node, parserServices, sourceCode, options) {
|
|||
function getComparisonValueType(node) {
|
||||
switch (node.type) {
|
||||
case utils_1.AST_NODE_TYPES.Literal:
|
||||
// eslint-disable-next-line eqeqeq -- intentional exact comparison against null
|
||||
// eslint-disable-next-line eqeqeq, @typescript-eslint/internal/eqeq-nullish -- intentional exact comparison against null
|
||||
if (node.value === null && node.raw === 'null') {
|
||||
return "Null" /* ComparisonValueType.Null */;
|
||||
}
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
2
node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-readonly.js
generated
vendored
2
node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-readonly.js
generated
vendored
|
|
@ -237,7 +237,7 @@ class ClassScope {
|
|||
return;
|
||||
}
|
||||
if (this.onlyInlineLambdas &&
|
||||
node.initializer !== undefined &&
|
||||
node.initializer != null &&
|
||||
!ts.isArrowFunction(node.initializer)) {
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
2
node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-readonly.js.map
generated
vendored
2
node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-readonly.js.map
generated
vendored
File diff suppressed because one or more lines are too long
4
node_modules/@typescript-eslint/eslint-plugin/dist/rules/require-await.js
generated
vendored
4
node_modules/@typescript-eslint/eslint-plugin/dist/rules/require-await.js
generated
vendored
|
|
@ -159,7 +159,7 @@ exports.default = (0, util_1.createRule)({
|
|||
suggest: [
|
||||
{
|
||||
messageId: 'removeAsync',
|
||||
fix: (fixer) => changes.map(change => change.replacement !== undefined
|
||||
fix: (fixer) => changes.map(change => change.replacement != null
|
||||
? fixer.replaceTextRange(change.range, change.replacement)
|
||||
: fixer.removeRange(change.range)),
|
||||
},
|
||||
|
|
@ -209,7 +209,7 @@ exports.default = (0, util_1.createRule)({
|
|||
const typesToCheck = expandUnionOrIntersectionType(type);
|
||||
for (const type of typesToCheck) {
|
||||
const asyncIterator = tsutils.getWellKnownSymbolPropertyOfType(type, 'asyncIterator', checker);
|
||||
if (asyncIterator !== undefined) {
|
||||
if (asyncIterator != null) {
|
||||
scopeInfo.isAsyncYield = true;
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
2
node_modules/@typescript-eslint/eslint-plugin/dist/rules/require-await.js.map
generated
vendored
2
node_modules/@typescript-eslint/eslint-plugin/dist/rules/require-await.js.map
generated
vendored
File diff suppressed because one or more lines are too long
34
node_modules/@typescript-eslint/eslint-plugin/dist/rules/switch-exhaustiveness-check.js
generated
vendored
34
node_modules/@typescript-eslint/eslint-plugin/dist/rules/switch-exhaustiveness-check.js
generated
vendored
|
|
@ -36,6 +36,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|||
const tsutils = __importStar(require("ts-api-utils"));
|
||||
const ts = __importStar(require("typescript"));
|
||||
const util_1 = require("../util");
|
||||
const DEFAULT_COMMENT_PATTERN = /^no default$/iu;
|
||||
exports.default = (0, util_1.createRule)({
|
||||
name: 'switch-exhaustiveness-check',
|
||||
meta: {
|
||||
|
|
@ -63,6 +64,10 @@ exports.default = (0, util_1.createRule)({
|
|||
type: 'boolean',
|
||||
description: `If 'true', the 'default' clause is used to determine whether the switch statement is exhaustive for union type`,
|
||||
},
|
||||
defaultCaseCommentPattern: {
|
||||
type: 'string',
|
||||
description: `Regular expression for a comment that can indicate an intentionally omitted default case.`,
|
||||
},
|
||||
requireDefaultForNonUnion: {
|
||||
type: 'boolean',
|
||||
description: `If 'true', require a 'default' clause for switches on non-union types.`,
|
||||
|
|
@ -78,10 +83,24 @@ exports.default = (0, util_1.createRule)({
|
|||
requireDefaultForNonUnion: false,
|
||||
},
|
||||
],
|
||||
create(context, [{ allowDefaultCaseForExhaustiveSwitch, considerDefaultExhaustiveForUnions, requireDefaultForNonUnion, },]) {
|
||||
create(context, [{ allowDefaultCaseForExhaustiveSwitch, considerDefaultExhaustiveForUnions, defaultCaseCommentPattern, requireDefaultForNonUnion, },]) {
|
||||
const services = (0, util_1.getParserServices)(context);
|
||||
const checker = services.program.getTypeChecker();
|
||||
const compilerOptions = services.program.getCompilerOptions();
|
||||
const commentRegExp = defaultCaseCommentPattern != null
|
||||
? new RegExp(defaultCaseCommentPattern, 'u')
|
||||
: DEFAULT_COMMENT_PATTERN;
|
||||
function getCommentDefaultCase(node) {
|
||||
const lastCase = node.cases.at(-1);
|
||||
const commentsAfterLastCase = lastCase
|
||||
? context.sourceCode.getCommentsAfter(lastCase)
|
||||
: [];
|
||||
const defaultCaseComment = commentsAfterLastCase.at(-1);
|
||||
if (commentRegExp.test(defaultCaseComment?.value.trim() || '')) {
|
||||
return defaultCaseComment;
|
||||
}
|
||||
return;
|
||||
}
|
||||
function getSwitchMetadata(node) {
|
||||
const defaultCase = node.cases.find(switchCase => switchCase.test == null);
|
||||
const discriminantType = (0, util_1.getConstrainedTypeAtLocation)(services, node.discriminant);
|
||||
|
|
@ -115,7 +134,7 @@ exports.default = (0, util_1.createRule)({
|
|||
}
|
||||
return {
|
||||
containsNonLiteralType,
|
||||
defaultCase,
|
||||
defaultCase: defaultCase ?? getCommentDefaultCase(node),
|
||||
missingLiteralBranchTypes,
|
||||
symbolName,
|
||||
};
|
||||
|
|
@ -142,7 +161,7 @@ exports.default = (0, util_1.createRule)({
|
|||
{
|
||||
messageId: 'addMissingCases',
|
||||
fix(fixer) {
|
||||
return fixSwitch(fixer, node, missingLiteralBranchTypes, symbolName?.toString());
|
||||
return fixSwitch(fixer, node, missingLiteralBranchTypes, defaultCase, symbolName?.toString());
|
||||
},
|
||||
},
|
||||
],
|
||||
|
|
@ -150,9 +169,8 @@ exports.default = (0, util_1.createRule)({
|
|||
}
|
||||
}
|
||||
function fixSwitch(fixer, node, missingBranchTypes, // null means default branch
|
||||
symbolName) {
|
||||
defaultCase, symbolName) {
|
||||
const lastCase = node.cases.length > 0 ? node.cases[node.cases.length - 1] : null;
|
||||
const defaultCase = node.cases.find(caseEl => caseEl.test == null);
|
||||
const caseIndent = lastCase
|
||||
? ' '.repeat(lastCase.loc.start.column)
|
||||
: // If there are no cases, use indentation of the switch statement and
|
||||
|
|
@ -205,7 +223,7 @@ exports.default = (0, util_1.createRule)({
|
|||
}
|
||||
const { containsNonLiteralType, defaultCase, missingLiteralBranchTypes } = switchMetadata;
|
||||
if (missingLiteralBranchTypes.length === 0 &&
|
||||
defaultCase !== undefined &&
|
||||
defaultCase != null &&
|
||||
!containsNonLiteralType) {
|
||||
context.report({
|
||||
node: defaultCase,
|
||||
|
|
@ -218,7 +236,7 @@ exports.default = (0, util_1.createRule)({
|
|||
return;
|
||||
}
|
||||
const { containsNonLiteralType, defaultCase } = switchMetadata;
|
||||
if (containsNonLiteralType && defaultCase === undefined) {
|
||||
if (containsNonLiteralType && defaultCase == null) {
|
||||
context.report({
|
||||
node: node.discriminant,
|
||||
messageId: 'switchIsNotExhaustive',
|
||||
|
|
@ -227,7 +245,7 @@ exports.default = (0, util_1.createRule)({
|
|||
{
|
||||
messageId: 'addMissingCases',
|
||||
fix(fixer) {
|
||||
return fixSwitch(fixer, node, [null]);
|
||||
return fixSwitch(fixer, node, [null], defaultCase);
|
||||
},
|
||||
},
|
||||
],
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
20
node_modules/@typescript-eslint/eslint-plugin/dist/rules/unified-signatures.js
generated
vendored
20
node_modules/@typescript-eslint/eslint-plugin/dist/rules/unified-signatures.js
generated
vendored
|
|
@ -40,7 +40,7 @@ exports.default = (0, util_1.createRule)({
|
|||
//----------------------------------------------------------------------
|
||||
function failureStringStart(otherLine) {
|
||||
// For only 2 overloads we don't need to specify which is the other one.
|
||||
const overloads = otherLine === undefined
|
||||
const overloads = otherLine == null
|
||||
? 'These overloads'
|
||||
: `This overload and the one on line ${otherLine}`;
|
||||
return `${overloads} can be combined into one signature`;
|
||||
|
|
@ -97,7 +97,7 @@ exports.default = (0, util_1.createRule)({
|
|||
const signature0 = a.value ?? a;
|
||||
const signature1 = b.value ?? b;
|
||||
const unify = compareSignatures(signature0, signature1, isTypeParameter);
|
||||
if (unify !== undefined) {
|
||||
if (unify != null) {
|
||||
result.push({ only2: overloads.length === 2, unify });
|
||||
}
|
||||
});
|
||||
|
|
@ -114,8 +114,8 @@ exports.default = (0, util_1.createRule)({
|
|||
}
|
||||
function signaturesCanBeUnified(a, b, isTypeParameter) {
|
||||
// Must return the same type.
|
||||
const aTypeParams = a.typeParameters !== undefined ? a.typeParameters.params : undefined;
|
||||
const bTypeParams = b.typeParameters !== undefined ? b.typeParameters.params : undefined;
|
||||
const aTypeParams = a.typeParameters != null ? a.typeParameters.params : undefined;
|
||||
const bTypeParams = b.typeParameters != null ? b.typeParameters.params : undefined;
|
||||
if (ignoreDifferentlyNamedParameters) {
|
||||
const commonParamsLength = Math.min(a.params.length, b.params.length);
|
||||
for (let i = 0; i < commonParamsLength; i += 1) {
|
||||
|
|
@ -136,7 +136,7 @@ exports.default = (0, util_1.createRule)({
|
|||
/** Detect `a(x: number, y: number, z: number)` and `a(x: number, y: string, z: number)`. */
|
||||
function signaturesDifferBySingleParameter(types1, types2) {
|
||||
const index = getIndexOfFirstDifference(types1, types2, parametersAreEqual);
|
||||
if (index === undefined) {
|
||||
if (index == null) {
|
||||
return undefined;
|
||||
}
|
||||
// If remaining arrays are equal, the signatures differ by just one parameter type
|
||||
|
|
@ -196,7 +196,7 @@ exports.default = (0, util_1.createRule)({
|
|||
}
|
||||
/** Given type parameters, returns a function to test whether a type is one of those parameters. */
|
||||
function getIsTypeParameter(typeParameters) {
|
||||
if (typeParameters === undefined) {
|
||||
if (typeParameters == null) {
|
||||
return (() => false);
|
||||
}
|
||||
const set = new Set();
|
||||
|
|
@ -261,13 +261,13 @@ exports.default = (0, util_1.createRule)({
|
|||
}
|
||||
function typesAreEqual(a, b) {
|
||||
return (a === b ||
|
||||
(a !== undefined &&
|
||||
b !== undefined &&
|
||||
(a != null &&
|
||||
b != null &&
|
||||
context.sourceCode.getText(a.typeAnnotation) ===
|
||||
context.sourceCode.getText(b.typeAnnotation)));
|
||||
}
|
||||
function constraintsAreEqual(a, b) {
|
||||
return (a === b || (a !== undefined && b !== undefined && a.type === b.type));
|
||||
return a === b || (a != null && b != null && a.type === b.type);
|
||||
}
|
||||
/* Returns the first index where `a` and `b` differ. */
|
||||
function getIndexOfFirstDifference(a, b, equal) {
|
||||
|
|
@ -311,7 +311,7 @@ exports.default = (0, util_1.createRule)({
|
|||
if (currentScope &&
|
||||
(containingNode ?? signature).parent === currentScope.parent) {
|
||||
const overloads = currentScope.overloads.get(key);
|
||||
if (overloads !== undefined) {
|
||||
if (overloads != null) {
|
||||
overloads.push(signature);
|
||||
}
|
||||
else {
|
||||
|
|
|
|||
2
node_modules/@typescript-eslint/eslint-plugin/dist/rules/unified-signatures.js.map
generated
vendored
2
node_modules/@typescript-eslint/eslint-plugin/dist/rules/unified-signatures.js.map
generated
vendored
File diff suppressed because one or more lines are too long
|
|
@ -97,10 +97,34 @@ exports.default = (0, util_1.createRule)({
|
|||
}
|
||||
return false;
|
||||
}
|
||||
function shouldFlagArgument(node) {
|
||||
const argument = esTreeNodeToTSNodeMap.get(node);
|
||||
const typeOfArgument = checker.getTypeAtLocation(argument);
|
||||
return isFlaggableHandlerType(typeOfArgument);
|
||||
function collectFlaggedNodes(node) {
|
||||
switch (node.type) {
|
||||
case utils_1.AST_NODE_TYPES.LogicalExpression:
|
||||
return [
|
||||
...collectFlaggedNodes(node.left),
|
||||
...collectFlaggedNodes(node.right),
|
||||
];
|
||||
case utils_1.AST_NODE_TYPES.SequenceExpression:
|
||||
return collectFlaggedNodes((0, util_1.nullThrows)(node.expressions.at(-1), 'sequence expression must have multiple expressions'));
|
||||
case utils_1.AST_NODE_TYPES.ConditionalExpression:
|
||||
return [
|
||||
...collectFlaggedNodes(node.consequent),
|
||||
...collectFlaggedNodes(node.alternate),
|
||||
];
|
||||
case utils_1.AST_NODE_TYPES.ArrowFunctionExpression:
|
||||
case utils_1.AST_NODE_TYPES.FunctionExpression:
|
||||
{
|
||||
const argument = esTreeNodeToTSNodeMap.get(node);
|
||||
const typeOfArgument = checker.getTypeAtLocation(argument);
|
||||
if (isFlaggableHandlerType(typeOfArgument)) {
|
||||
return [node];
|
||||
}
|
||||
}
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
return [];
|
||||
}
|
||||
/**
|
||||
* Analyzes the syntax of the catch argument and makes a best effort to pinpoint
|
||||
|
|
@ -110,11 +134,6 @@ exports.default = (0, util_1.createRule)({
|
|||
* rule _is reporting_, so it is not guaranteed to be sound to call otherwise.
|
||||
*/
|
||||
function refineReportIfPossible(argument) {
|
||||
// Only know how to be helpful if a function literal has been provided.
|
||||
if (!(argument.type === utils_1.AST_NODE_TYPES.ArrowFunctionExpression ||
|
||||
argument.type === utils_1.AST_NODE_TYPES.FunctionExpression)) {
|
||||
return undefined;
|
||||
}
|
||||
const catchVariableOuterWithIncorrectTypes = (0, util_1.nullThrows)(argument.params.at(0), 'There should have been at least one parameter for the rule to have flagged.');
|
||||
// Function expressions can't have parameter properties; those only exist in constructors.
|
||||
const catchVariableOuter = catchVariableOuterWithIncorrectTypes;
|
||||
|
|
@ -225,8 +244,8 @@ exports.default = (0, util_1.createRule)({
|
|||
return;
|
||||
}
|
||||
// the `some` check above has already excluded `SpreadElement`, so we are safe to assert the same
|
||||
const node = argsToCheck[argIndexToCheck];
|
||||
if (shouldFlagArgument(node)) {
|
||||
const argToCheck = argsToCheck[argIndexToCheck];
|
||||
for (const node of collectFlaggedNodes(argToCheck)) {
|
||||
// We are now guaranteed to report, but we have a bit of work to do
|
||||
// to determine exactly where, and whether we can fix it.
|
||||
const overrides = refineReportIfPossible(node);
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
2
node_modules/@typescript-eslint/eslint-plugin/dist/util/getStaticStringValue.js
generated
vendored
2
node_modules/@typescript-eslint/eslint-plugin/dist/util/getStaticStringValue.js
generated
vendored
|
|
@ -16,7 +16,7 @@ const isNullLiteral_1 = require("./isNullLiteral");
|
|||
function getStaticStringValue(node) {
|
||||
switch (node.type) {
|
||||
case utils_1.AST_NODE_TYPES.Literal:
|
||||
// eslint-disable-next-line eqeqeq -- intentional strict comparison for literal value
|
||||
// eslint-disable-next-line eqeqeq, @typescript-eslint/internal/eqeq-nullish -- intentional strict comparison for literal value
|
||||
if (node.value === null) {
|
||||
if ((0, isNullLiteral_1.isNullLiteral)(node)) {
|
||||
return String(node.value); // "null"
|
||||
|
|
|
|||
2
node_modules/@typescript-eslint/eslint-plugin/dist/util/getStaticStringValue.js.map
generated
vendored
2
node_modules/@typescript-eslint/eslint-plugin/dist/util/getStaticStringValue.js.map
generated
vendored
|
|
@ -1 +1 @@
|
|||
{"version":3,"file":"getStaticStringValue.js","sourceRoot":"","sources":["../../src/util/getStaticStringValue.ts"],"names":[],"mappings":";AAAA,qIAAqI;;AAiBrI,oDAgCC;AA7CD,oDAA0D;AAE1D,mDAAgD;AAEhD;;;;;;;;GAQG;AACH,SAAgB,oBAAoB,CAAC,IAAmB;IACtD,QAAQ,IAAI,CAAC,IAAI,EAAE,CAAC;QAClB,KAAK,sBAAc,CAAC,OAAO;YACzB,qFAAqF;YACrF,IAAI,IAAI,CAAC,KAAK,KAAK,IAAI,EAAE,CAAC;gBACxB,IAAI,IAAA,6BAAa,EAAC,IAAI,CAAC,EAAE,CAAC;oBACxB,OAAO,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS;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AI,CAAC,KAAK,CAAC,OAAO,IAAI,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,CAAC;gBACtD,CAAC;gBAED,IAAI,QAAQ,IAAI,IAAI,EAAE,CAAC;oBACrB,OAAO,IAAI,CAAC,MAAM,CAAC;gBACrB,CAAC;gBAED,wEAAwE;YAC1E,CAAC;iBAAM,CAAC;gBACN,OAAO,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;YAC5B,CAAC;YACD,MAAM;QAER,KAAK,sBAAc,CAAC,eAAe;YACjC,IAAI,IAAI,CAAC,WAAW,CAAC,MAAM,KAAK,CAAC,IAAI,IAAI,CAAC,MAAM,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;gBAC9D,OAAO,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC;YACrC,CAAC;YACD,MAAM;QAER,aAAa;IACf,CAAC;IAED,OAAO,IAAI,CAAC;AACd,CAAC"}
|
||||
5
node_modules/@typescript-eslint/eslint-plugin/dist/util/misc.js
generated
vendored
5
node_modules/@typescript-eslint/eslint-plugin/dist/util/misc.js
generated
vendored
|
|
@ -91,8 +91,8 @@ function arrayGroupByToMap(array, getKey) {
|
|||
}
|
||||
function arraysAreEqual(a, b, eq) {
|
||||
return (a === b ||
|
||||
(a !== undefined &&
|
||||
b !== undefined &&
|
||||
(a != null &&
|
||||
b != null &&
|
||||
a.length === b.length &&
|
||||
a.every((x, idx) => eq(x, b[idx]))));
|
||||
}
|
||||
|
|
@ -100,6 +100,7 @@ function arraysAreEqual(a, b, eq) {
|
|||
function findFirstResult(inputs, getResult) {
|
||||
for (const element of inputs) {
|
||||
const result = getResult(element);
|
||||
// eslint-disable-next-line @typescript-eslint/internal/eqeq-nullish
|
||||
if (result !== undefined) {
|
||||
return result;
|
||||
}
|
||||
|
|
|
|||
2
node_modules/@typescript-eslint/eslint-plugin/dist/util/misc.js.map
generated
vendored
2
node_modules/@typescript-eslint/eslint-plugin/dist/util/misc.js.map
generated
vendored
File diff suppressed because one or more lines are too long
21
node_modules/@typescript-eslint/eslint-plugin/docs/rules/switch-exhaustiveness-check.mdx
generated
vendored
21
node_modules/@typescript-eslint/eslint-plugin/docs/rules/switch-exhaustiveness-check.mdx
generated
vendored
|
|
@ -78,6 +78,27 @@ switch (literal) {
|
|||
}
|
||||
```
|
||||
|
||||
### `defaultCaseCommentPattern`
|
||||
|
||||
{/* insert option description */}
|
||||
|
||||
Default: `/^no default$/iu`.
|
||||
|
||||
It can sometimes be preferable to omit the default case for only some switch statements.
|
||||
For those situations, this rule can be given a pattern for a comment that's allowed to take the place of a `default:`.
|
||||
|
||||
Examples of additional **correct** code with `{ defaultCaseCommentPattern: "^skip\\sdefault" }`:
|
||||
|
||||
```ts option='{ "defaultCaseCommentPattern": "^skip default" }' showPlaygroundButton
|
||||
declare const value: 'a' | 'b';
|
||||
|
||||
switch (value) {
|
||||
case 'a':
|
||||
break;
|
||||
// skip default
|
||||
}
|
||||
```
|
||||
|
||||
## Examples
|
||||
|
||||
When the switch doesn't have exhaustive cases, either filling them all out or adding a default (if you have `considerDefaultExhaustiveForUnions` enabled) will address the rule's complaint.
|
||||
|
|
|
|||
21
node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/LICENSE
generated
vendored
Normal file
21
node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/LICENSE
generated
vendored
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
MIT License
|
||||
|
||||
Copyright (c) 2019 typescript-eslint and other contributors
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
10
node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/README.md
generated
vendored
Normal file
10
node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/README.md
generated
vendored
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
# `@typescript-eslint/scope-manager`
|
||||
|
||||
[](https://www.npmjs.com/package/@typescript-eslint/scope-manager)
|
||||
[](https://www.npmjs.com/package/@typescript-eslint/scope-manager)
|
||||
|
||||
👉 See **https://typescript-eslint.io/packages/scope-manager** for documentation on this package.
|
||||
|
||||
> See https://typescript-eslint.io for general documentation on typescript-eslint, the tooling that allows you to run ESLint and Prettier on TypeScript code.
|
||||
|
||||
<!-- Local path for docs: docs/packages/Scope_Manager.mdx -->
|
||||
4
node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/ID.d.ts
generated
vendored
Normal file
4
node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/ID.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
declare function createIdGenerator(): () => number;
|
||||
declare function resetIds(): void;
|
||||
export { createIdGenerator, resetIds };
|
||||
//# sourceMappingURL=ID.d.ts.map
|
||||
1
node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/ID.d.ts.map
generated
vendored
Normal file
1
node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/ID.d.ts.map
generated
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"ID.d.ts","sourceRoot":"","sources":["../src/ID.ts"],"names":[],"mappings":"AAGA,iBAAS,iBAAiB,IAAI,MAAM,MAAM,CAUzC;AAED,iBAAS,QAAQ,IAAI,IAAI,CAExB;AAED,OAAO,EAAE,iBAAiB,EAAE,QAAQ,EAAE,CAAC"}
|
||||
20
node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/ID.js
generated
vendored
Normal file
20
node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/ID.js
generated
vendored
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.createIdGenerator = createIdGenerator;
|
||||
exports.resetIds = resetIds;
|
||||
const ID_CACHE = new Map();
|
||||
let NEXT_KEY = 0;
|
||||
function createIdGenerator() {
|
||||
const key = (NEXT_KEY += 1);
|
||||
ID_CACHE.set(key, 0);
|
||||
return () => {
|
||||
const current = ID_CACHE.get(key) ?? 0;
|
||||
const next = current + 1;
|
||||
ID_CACHE.set(key, next);
|
||||
return next;
|
||||
};
|
||||
}
|
||||
function resetIds() {
|
||||
ID_CACHE.clear();
|
||||
}
|
||||
//# sourceMappingURL=ID.js.map
|
||||
1
node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/ID.js.map
generated
vendored
Normal file
1
node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/ID.js.map
generated
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"ID.js","sourceRoot":"","sources":["../src/ID.ts"],"names":[],"mappings":";;AAmBS,8CAAiB;AAAE,4BAAQ;AAnBpC,MAAM,QAAQ,GAAG,IAAI,GAAG,EAAkB,CAAC;AAC3C,IAAI,QAAQ,GAAG,CAAC,CAAC;AAEjB,SAAS,iBAAiB;IACxB,MAAM,GAAG,GAAG,CAAC,QAAQ,IAAI,CAAC,CAAC,CAAC;IAC5B,QAAQ,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC;IAErB,OAAO,GAAW,EAAE;QAClB,MAAM,OAAO,GAAG,QAAQ,CAAC,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;QACvC,MAAM,IAAI,GAAG,OAAO,GAAG,CAAC,CAAC;QACzB,QAAQ,CAAC,GAAG,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC;QACxB,OAAO,IAAI,CAAC;IACd,CAAC,CAAC;AACJ,CAAC;AAED,SAAS,QAAQ;IACf,QAAQ,CAAC,KAAK,EAAE,CAAC;AACnB,CAAC"}
|
||||
72
node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/ScopeManager.d.ts
generated
vendored
Normal file
72
node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/ScopeManager.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,72 @@
|
|||
import type { SourceType, TSESTree } from '@typescript-eslint/types';
|
||||
import type { Scope } from './scope';
|
||||
import type { Variable } from './variable';
|
||||
import { BlockScope, CatchScope, ClassScope, ConditionalTypeScope, ForScope, FunctionExpressionNameScope, FunctionScope, FunctionTypeScope, GlobalScope, MappedTypeScope, ModuleScope, SwitchScope, TSEnumScope, TSModuleScope, TypeScope, WithScope } from './scope';
|
||||
import { ClassFieldInitializerScope } from './scope/ClassFieldInitializerScope';
|
||||
import { ClassStaticBlockScope } from './scope/ClassStaticBlockScope';
|
||||
interface ScopeManagerOptions {
|
||||
globalReturn?: boolean;
|
||||
impliedStrict?: boolean;
|
||||
sourceType?: SourceType;
|
||||
}
|
||||
/**
|
||||
* @see https://eslint.org/docs/latest/developer-guide/scope-manager-interface#scopemanager-interface
|
||||
*/
|
||||
declare class ScopeManager {
|
||||
#private;
|
||||
currentScope: Scope | null;
|
||||
readonly declaredVariables: WeakMap<TSESTree.Node, Variable[]>;
|
||||
/**
|
||||
* The root scope
|
||||
*/
|
||||
globalScope: GlobalScope | null;
|
||||
readonly nodeToScope: WeakMap<TSESTree.Node, Scope[]>;
|
||||
/**
|
||||
* All scopes
|
||||
* @public
|
||||
*/
|
||||
readonly scopes: Scope[];
|
||||
constructor(options: ScopeManagerOptions);
|
||||
isES6(): boolean;
|
||||
isGlobalReturn(): boolean;
|
||||
isImpliedStrict(): boolean;
|
||||
isModule(): boolean;
|
||||
isStrictModeSupported(): boolean;
|
||||
get variables(): Variable[];
|
||||
/**
|
||||
* Get the variables that a given AST node defines. The gotten variables' `def[].node`/`def[].parent` property is the node.
|
||||
* If the node does not define any variable, this returns an empty array.
|
||||
* @param node An AST node to get their variables.
|
||||
*/
|
||||
getDeclaredVariables(node: TSESTree.Node): Variable[];
|
||||
/**
|
||||
* Get the scope of a given AST node. The gotten scope's `block` property is the node.
|
||||
* This method never returns `function-expression-name` scope. If the node does not have their scope, this returns `null`.
|
||||
*
|
||||
* @param node An AST node to get their scope.
|
||||
* @param inner If the node has multiple scopes, this returns the outermost scope normally.
|
||||
* If `inner` is `true` then this returns the innermost scope.
|
||||
*/
|
||||
acquire(node: TSESTree.Node, inner?: boolean): Scope | null;
|
||||
nestBlockScope(node: BlockScope['block']): BlockScope;
|
||||
nestCatchScope(node: CatchScope['block']): CatchScope;
|
||||
nestClassFieldInitializerScope(node: ClassFieldInitializerScope['block']): ClassFieldInitializerScope;
|
||||
nestClassScope(node: ClassScope['block']): ClassScope;
|
||||
nestClassStaticBlockScope(node: ClassStaticBlockScope['block']): ClassStaticBlockScope;
|
||||
nestConditionalTypeScope(node: ConditionalTypeScope['block']): ConditionalTypeScope;
|
||||
nestForScope(node: ForScope['block']): ForScope;
|
||||
nestFunctionExpressionNameScope(node: FunctionExpressionNameScope['block']): FunctionExpressionNameScope;
|
||||
nestFunctionScope(node: FunctionScope['block'], isMethodDefinition: boolean): FunctionScope;
|
||||
nestFunctionTypeScope(node: FunctionTypeScope['block']): FunctionTypeScope;
|
||||
nestGlobalScope(node: GlobalScope['block']): GlobalScope;
|
||||
nestMappedTypeScope(node: MappedTypeScope['block']): MappedTypeScope;
|
||||
nestModuleScope(node: ModuleScope['block']): ModuleScope;
|
||||
nestSwitchScope(node: SwitchScope['block']): SwitchScope;
|
||||
nestTSEnumScope(node: TSEnumScope['block']): TSEnumScope;
|
||||
nestTSModuleScope(node: TSModuleScope['block']): TSModuleScope;
|
||||
nestTypeScope(node: TypeScope['block']): TypeScope;
|
||||
nestWithScope(node: WithScope['block']): WithScope;
|
||||
protected nestScope<T extends Scope>(scope: T): T;
|
||||
}
|
||||
export { ScopeManager };
|
||||
//# sourceMappingURL=ScopeManager.d.ts.map
|
||||
1
node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/ScopeManager.d.ts.map
generated
vendored
Normal file
1
node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/ScopeManager.d.ts.map
generated
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"ScopeManager.d.ts","sourceRoot":"","sources":["../src/ScopeManager.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAErE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAG3C,OAAO,EACL,UAAU,EACV,UAAU,EACV,UAAU,EACV,oBAAoB,EACpB,QAAQ,EACR,2BAA2B,EAC3B,aAAa,EACb,iBAAiB,EACjB,WAAW,EACX,eAAe,EACf,WAAW,EAEX,WAAW,EACX,WAAW,EACX,aAAa,EACb,SAAS,EACT,SAAS,EACV,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slint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/ScopeManager.js
generated
vendored
Normal file
182
node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/ScopeManager.js
generated
vendored
Normal file
|
|
@ -0,0 +1,182 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.ScopeManager = void 0;
|
||||
const assert_1 = require("./assert");
|
||||
const scope_1 = require("./scope");
|
||||
const ClassFieldInitializerScope_1 = require("./scope/ClassFieldInitializerScope");
|
||||
const ClassStaticBlockScope_1 = require("./scope/ClassStaticBlockScope");
|
||||
/**
|
||||
* @see https://eslint.org/docs/latest/developer-guide/scope-manager-interface#scopemanager-interface
|
||||
*/
|
||||
class ScopeManager {
|
||||
#options;
|
||||
currentScope;
|
||||
declaredVariables;
|
||||
/**
|
||||
* The root scope
|
||||
*/
|
||||
globalScope;
|
||||
nodeToScope;
|
||||
/**
|
||||
* All scopes
|
||||
* @public
|
||||
*/
|
||||
scopes;
|
||||
constructor(options) {
|
||||
this.scopes = [];
|
||||
this.globalScope = null;
|
||||
this.nodeToScope = new WeakMap();
|
||||
this.currentScope = null;
|
||||
this.#options = options;
|
||||
this.declaredVariables = new WeakMap();
|
||||
}
|
||||
isES6() {
|
||||
return true;
|
||||
}
|
||||
isGlobalReturn() {
|
||||
return this.#options.globalReturn === true;
|
||||
}
|
||||
isImpliedStrict() {
|
||||
return this.#options.impliedStrict === true;
|
||||
}
|
||||
isModule() {
|
||||
return this.#options.sourceType === 'module';
|
||||
}
|
||||
isStrictModeSupported() {
|
||||
return true;
|
||||
}
|
||||
get variables() {
|
||||
const variables = new Set();
|
||||
function recurse(scope) {
|
||||
scope.variables.forEach(v => variables.add(v));
|
||||
scope.childScopes.forEach(recurse);
|
||||
}
|
||||
this.scopes.forEach(recurse);
|
||||
return [...variables].sort((a, b) => a.$id - b.$id);
|
||||
}
|
||||
/**
|
||||
* Get the variables that a given AST node defines. The gotten variables' `def[].node`/`def[].parent` property is the node.
|
||||
* If the node does not define any variable, this returns an empty array.
|
||||
* @param node An AST node to get their variables.
|
||||
*/
|
||||
getDeclaredVariables(node) {
|
||||
return this.declaredVariables.get(node) ?? [];
|
||||
}
|
||||
/**
|
||||
* Get the scope of a given AST node. The gotten scope's `block` property is the node.
|
||||
* This method never returns `function-expression-name` scope. If the node does not have their scope, this returns `null`.
|
||||
*
|
||||
* @param node An AST node to get their scope.
|
||||
* @param inner If the node has multiple scopes, this returns the outermost scope normally.
|
||||
* If `inner` is `true` then this returns the innermost scope.
|
||||
*/
|
||||
acquire(node, inner = false) {
|
||||
function predicate(testScope) {
|
||||
if (testScope.type === scope_1.ScopeType.function &&
|
||||
testScope.functionExpressionScope) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
const scopes = this.nodeToScope.get(node);
|
||||
if (!scopes || scopes.length === 0) {
|
||||
return null;
|
||||
}
|
||||
// Heuristic selection from all scopes.
|
||||
// If you would like to get all scopes, please use ScopeManager#acquireAll.
|
||||
if (scopes.length === 1) {
|
||||
return scopes[0];
|
||||
}
|
||||
if (inner) {
|
||||
for (let i = scopes.length - 1; i >= 0; --i) {
|
||||
const scope = scopes[i];
|
||||
if (predicate(scope)) {
|
||||
return scope;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
return scopes.find(predicate) ?? null;
|
||||
}
|
||||
nestBlockScope(node) {
|
||||
(0, assert_1.assert)(this.currentScope);
|
||||
return this.nestScope(new scope_1.BlockScope(this, this.currentScope, node));
|
||||
}
|
||||
nestCatchScope(node) {
|
||||
(0, assert_1.assert)(this.currentScope);
|
||||
return this.nestScope(new scope_1.CatchScope(this, this.currentScope, node));
|
||||
}
|
||||
nestClassFieldInitializerScope(node) {
|
||||
(0, assert_1.assert)(this.currentScope);
|
||||
return this.nestScope(new ClassFieldInitializerScope_1.ClassFieldInitializerScope(this, this.currentScope, node));
|
||||
}
|
||||
nestClassScope(node) {
|
||||
(0, assert_1.assert)(this.currentScope);
|
||||
return this.nestScope(new scope_1.ClassScope(this, this.currentScope, node));
|
||||
}
|
||||
nestClassStaticBlockScope(node) {
|
||||
(0, assert_1.assert)(this.currentScope);
|
||||
return this.nestScope(new ClassStaticBlockScope_1.ClassStaticBlockScope(this, this.currentScope, node));
|
||||
}
|
||||
nestConditionalTypeScope(node) {
|
||||
(0, assert_1.assert)(this.currentScope);
|
||||
return this.nestScope(new scope_1.ConditionalTypeScope(this, this.currentScope, node));
|
||||
}
|
||||
nestForScope(node) {
|
||||
(0, assert_1.assert)(this.currentScope);
|
||||
return this.nestScope(new scope_1.ForScope(this, this.currentScope, node));
|
||||
}
|
||||
nestFunctionExpressionNameScope(node) {
|
||||
(0, assert_1.assert)(this.currentScope);
|
||||
return this.nestScope(new scope_1.FunctionExpressionNameScope(this, this.currentScope, node));
|
||||
}
|
||||
nestFunctionScope(node, isMethodDefinition) {
|
||||
(0, assert_1.assert)(this.currentScope);
|
||||
return this.nestScope(new scope_1.FunctionScope(this, this.currentScope, node, isMethodDefinition));
|
||||
}
|
||||
nestFunctionTypeScope(node) {
|
||||
(0, assert_1.assert)(this.currentScope);
|
||||
return this.nestScope(new scope_1.FunctionTypeScope(this, this.currentScope, node));
|
||||
}
|
||||
nestGlobalScope(node) {
|
||||
return this.nestScope(new scope_1.GlobalScope(this, node));
|
||||
}
|
||||
nestMappedTypeScope(node) {
|
||||
(0, assert_1.assert)(this.currentScope);
|
||||
return this.nestScope(new scope_1.MappedTypeScope(this, this.currentScope, node));
|
||||
}
|
||||
nestModuleScope(node) {
|
||||
(0, assert_1.assert)(this.currentScope);
|
||||
return this.nestScope(new scope_1.ModuleScope(this, this.currentScope, node));
|
||||
}
|
||||
nestSwitchScope(node) {
|
||||
(0, assert_1.assert)(this.currentScope);
|
||||
return this.nestScope(new scope_1.SwitchScope(this, this.currentScope, node));
|
||||
}
|
||||
nestTSEnumScope(node) {
|
||||
(0, assert_1.assert)(this.currentScope);
|
||||
return this.nestScope(new scope_1.TSEnumScope(this, this.currentScope, node));
|
||||
}
|
||||
nestTSModuleScope(node) {
|
||||
(0, assert_1.assert)(this.currentScope);
|
||||
return this.nestScope(new scope_1.TSModuleScope(this, this.currentScope, node));
|
||||
}
|
||||
nestTypeScope(node) {
|
||||
(0, assert_1.assert)(this.currentScope);
|
||||
return this.nestScope(new scope_1.TypeScope(this, this.currentScope, node));
|
||||
}
|
||||
nestWithScope(node) {
|
||||
(0, assert_1.assert)(this.currentScope);
|
||||
return this.nestScope(new scope_1.WithScope(this, this.currentScope, node));
|
||||
}
|
||||
nestScope(scope) {
|
||||
if (scope instanceof scope_1.GlobalScope) {
|
||||
(0, assert_1.assert)(this.currentScope == null);
|
||||
this.globalScope = scope;
|
||||
}
|
||||
this.currentScope = scope;
|
||||
return scope;
|
||||
}
|
||||
}
|
||||
exports.ScopeManager = ScopeManager;
|
||||
//# sourceMappingURL=ScopeManager.js.map
|
||||
1
node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/ScopeManager.js.map
generated
vendored
Normal file
1
node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/ScopeManager.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
55
node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/analyze.d.ts
generated
vendored
Normal file
55
node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/analyze.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,55 @@
|
|||
import type { Lib, SourceType, TSESTree } from '@typescript-eslint/types';
|
||||
import type { ReferencerOptions } from './referencer';
|
||||
import { ScopeManager } from './ScopeManager';
|
||||
interface AnalyzeOptions {
|
||||
/**
|
||||
* Known visitor keys.
|
||||
*/
|
||||
childVisitorKeys?: ReferencerOptions['childVisitorKeys'];
|
||||
/**
|
||||
* Whether the whole script is executed under node.js environment.
|
||||
* When enabled, the scope manager adds a function scope immediately following the global scope.
|
||||
* Defaults to `false`.
|
||||
*/
|
||||
globalReturn?: boolean;
|
||||
/**
|
||||
* Implied strict mode.
|
||||
* Defaults to `false`.
|
||||
*/
|
||||
impliedStrict?: boolean;
|
||||
/**
|
||||
* The identifier that's used for JSX Element creation (after transpilation).
|
||||
* This should not be a member expression - just the root identifier (i.e. use "React" instead of "React.createElement").
|
||||
* Defaults to `"React"`.
|
||||
*/
|
||||
jsxPragma?: string | null;
|
||||
/**
|
||||
* The identifier that's used for JSX fragment elements (after transpilation).
|
||||
* If `null`, assumes transpilation will always use a member on `jsxFactory` (i.e. React.Fragment).
|
||||
* This should not be a member expression - just the root identifier (i.e. use "h" instead of "h.Fragment").
|
||||
* Defaults to `null`.
|
||||
*/
|
||||
jsxFragmentName?: string | null;
|
||||
/**
|
||||
* The lib used by the project.
|
||||
* This automatically defines a type variable for any types provided by the configured TS libs.
|
||||
* Defaults to ['esnext'].
|
||||
*
|
||||
* https://www.typescriptlang.org/tsconfig#lib
|
||||
*/
|
||||
lib?: Lib[];
|
||||
/**
|
||||
* The source type of the script.
|
||||
*/
|
||||
sourceType?: SourceType;
|
||||
/**
|
||||
* @deprecated This option never did what it was intended for and will be removed in a future major release.
|
||||
*/
|
||||
emitDecoratorMetadata?: boolean;
|
||||
}
|
||||
/**
|
||||
* Takes an AST and returns the analyzed scopes.
|
||||
*/
|
||||
declare function analyze(tree: TSESTree.Node, providedOptions?: AnalyzeOptions): ScopeManager;
|
||||
export { analyze, type AnalyzeOptions };
|
||||
//# sourceMappingURL=analyze.d.ts.map
|
||||
1
node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/analyze.d.ts.map
generated
vendored
Normal file
1
node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/analyze.d.ts.map
generated
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"analyze.d.ts","sourceRoot":"","sources":["../src/analyze.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAI1E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAGtD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAM9C,UAAU,cAAc;IACtB;;OAEG;IACH,gBAAgB,CAAC,EAAE,iBAAiB,CAAC,kBAAkB,CAAC,CAAC;IAEzD;;;;OAIG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IAEvB;;;OAGG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IAExB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE1B;;;;;OAKG;IACH,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEhC;;;;;;OAMG;IACH,GAAG,CAAC,EAAE,GAAG,EAAE,CAAC;IAEZ;;OAEG;IACH,UAAU,CAAC,EAAE,UAAU,CAAC;IAGxB;;OAEG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;CACjC;AAaD;;GAEG;AACH,iBAAS,OAAO,CACd,IAAI,EAAE,QAAQ,CAAC,IAAI,EACnB,eAAe,CAAC,EAAE,cAAc,GAC/B,YAAY,CA4Bd;AAED,OAAO,EAAE,OAAO,EAAE,KAAK,cAAc,EAAE,CAAC"}
|
||||
42
node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/analyze.js
generated
vendored
Normal file
42
node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/analyze.js
generated
vendored
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.analyze = analyze;
|
||||
const visitor_keys_1 = require("@typescript-eslint/visitor-keys");
|
||||
const referencer_1 = require("./referencer");
|
||||
const ScopeManager_1 = require("./ScopeManager");
|
||||
const DEFAULT_OPTIONS = {
|
||||
childVisitorKeys: visitor_keys_1.visitorKeys,
|
||||
emitDecoratorMetadata: false,
|
||||
globalReturn: false,
|
||||
impliedStrict: false,
|
||||
jsxFragmentName: null,
|
||||
jsxPragma: 'React',
|
||||
lib: ['es2018'],
|
||||
sourceType: 'script',
|
||||
};
|
||||
/**
|
||||
* Takes an AST and returns the analyzed scopes.
|
||||
*/
|
||||
function analyze(tree, providedOptions) {
|
||||
const options = {
|
||||
childVisitorKeys: providedOptions?.childVisitorKeys ?? DEFAULT_OPTIONS.childVisitorKeys,
|
||||
emitDecoratorMetadata: false,
|
||||
globalReturn: providedOptions?.globalReturn ?? DEFAULT_OPTIONS.globalReturn,
|
||||
impliedStrict: providedOptions?.impliedStrict ?? DEFAULT_OPTIONS.impliedStrict,
|
||||
jsxFragmentName: providedOptions?.jsxFragmentName ?? DEFAULT_OPTIONS.jsxFragmentName,
|
||||
jsxPragma:
|
||||
// eslint-disable-next-line @typescript-eslint/internal/eqeq-nullish
|
||||
providedOptions?.jsxPragma === undefined
|
||||
? DEFAULT_OPTIONS.jsxPragma
|
||||
: providedOptions.jsxPragma,
|
||||
lib: providedOptions?.lib ?? ['esnext'],
|
||||
sourceType: providedOptions?.sourceType ?? DEFAULT_OPTIONS.sourceType,
|
||||
};
|
||||
// ensure the option is lower cased
|
||||
options.lib = options.lib.map(l => l.toLowerCase());
|
||||
const scopeManager = new ScopeManager_1.ScopeManager(options);
|
||||
const referencer = new referencer_1.Referencer(options, scopeManager);
|
||||
referencer.visit(tree);
|
||||
return scopeManager;
|
||||
}
|
||||
//# sourceMappingURL=analyze.js.map
|
||||
1
node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/analyze.js.map
generated
vendored
Normal file
1
node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/analyze.js.map
generated
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"analyze.js","sourceRoot":"","sources":["../src/analyze.ts"],"names":[],"mappings":";;AA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AC,KAAK,CAAC,IAAI,CAAC,CAAC;IAEvB,OAAO,YAAY,CAAC;AACtB,CAAC"}
|
||||
3
node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/assert.d.ts
generated
vendored
Normal file
3
node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/assert.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
declare function assert(value: unknown, message?: string): asserts value;
|
||||
export { assert };
|
||||
//# sourceMappingURL=assert.d.ts.map
|
||||
1
node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/assert.d.ts.map
generated
vendored
Normal file
1
node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/assert.d.ts.map
generated
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"assert.d.ts","sourceRoot":"","sources":["../src/assert.ts"],"names":[],"mappings":"AACA,iBAAS,MAAM,CAAC,KAAK,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,KAAK,CAI/D;AAED,OAAO,EAAE,MAAM,EAAE,CAAC"}
|
||||
10
node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/assert.js
generated
vendored
Normal file
10
node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/assert.js
generated
vendored
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.assert = assert;
|
||||
// the base assert module doesn't use ts assertion syntax
|
||||
function assert(value, message) {
|
||||
if (value == null) {
|
||||
throw new Error(message);
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=assert.js.map
|
||||
1
node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/assert.js.map
generated
vendored
Normal file
1
node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/assert.js.map
generated
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"assert.js","sourceRoot":"","sources":["../src/assert.ts"],"names":[],"mappings":";;AAOS,wBAAM;AAPf,yDAAyD;AACzD,SAAS,MAAM,CAAC,KAAc,EAAE,OAAgB;IAC9C,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAClB,MAAM,IAAI,KAAK,CAAC,OAAO,CAAC,CAAC;IAC3B,CAAC;AACH,CAAC"}
|
||||
10
node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/CatchClauseDefinition.d.ts
generated
vendored
Normal file
10
node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/CatchClauseDefinition.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
import type { TSESTree } from '@typescript-eslint/types';
|
||||
import { DefinitionBase } from './DefinitionBase';
|
||||
import { DefinitionType } from './DefinitionType';
|
||||
declare class CatchClauseDefinition extends DefinitionBase<DefinitionType.CatchClause, TSESTree.CatchClause, null, TSESTree.BindingName> {
|
||||
readonly isTypeDefinition = false;
|
||||
readonly isVariableDefinition = true;
|
||||
constructor(name: TSESTree.BindingName, node: CatchClauseDefinition['node']);
|
||||
}
|
||||
export { CatchClauseDefinition };
|
||||
//# sourceMappingURL=CatchClauseDefinition.d.ts.map
|
||||
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"CatchClauseDefinition.d.ts","sourceRoot":"","sources":["../../src/definition/CatchClauseDefinition.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,cAAM,qBAAsB,SAAQ,cAAc,CAChD,cAAc,CAAC,WAAW,EAC1B,QAAQ,CAAC,WAAW,EACpB,IAAI,EACJ,QAAQ,CAAC,WAAW,CACrB;IACC,SAAgB,gBAAgB,SAAS;IACzC,SAAgB,oBAAoB,QAAQ;gBAEhC,IAAI,EAAE,QAAQ,CAAC,WAAW,EAAE,IAAI,EAAE,qBAAqB,CAAC,MAAM,CAAC;CAG5E;AAED,OAAO,EAAE,qBAAqB,EAAE,CAAC"}
|
||||
14
node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/CatchClauseDefinition.js
generated
vendored
Normal file
14
node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/CatchClauseDefinition.js
generated
vendored
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.CatchClauseDefinition = void 0;
|
||||
const DefinitionBase_1 = require("./DefinitionBase");
|
||||
const DefinitionType_1 = require("./DefinitionType");
|
||||
class CatchClauseDefinition extends DefinitionBase_1.DefinitionBase {
|
||||
isTypeDefinition = false;
|
||||
isVariableDefinition = true;
|
||||
constructor(name, node) {
|
||||
super(DefinitionType_1.DefinitionType.CatchClause, name, node, null);
|
||||
}
|
||||
}
|
||||
exports.CatchClauseDefinition = CatchClauseDefinition;
|
||||
//# sourceMappingURL=CatchClauseDefinition.js.map
|
||||
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"CatchClauseDefinition.js","sourceRoot":"","sources":["../../src/definition/CatchClauseDefinition.ts"],"names":[],"mappings":";;;AAEA,qDAAkD;AAClD,qDAAkD;AAElD,MAAM,qBAAsB,SAAQ,+BAKnC;IACiB,gBAAgB,GAAG,KAAK,CAAC;IACzB,oBAAoB,GAAG,IAAI,CAAC;IAE5C,YAAY,IAA0B,EAAE,IAAmC;QACzE,KAAK,CAAC,+BAAc,CAAC,WAAW,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;IACtD,CAAC;CACF;AAEQ,sDAAqB"}
|
||||
10
node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/ClassNameDefinition.d.ts
generated
vendored
Normal file
10
node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/ClassNameDefinition.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
import type { TSESTree } from '@typescript-eslint/types';
|
||||
import { DefinitionBase } from './DefinitionBase';
|
||||
import { DefinitionType } from './DefinitionType';
|
||||
declare class ClassNameDefinition extends DefinitionBase<DefinitionType.ClassName, TSESTree.ClassDeclaration | TSESTree.ClassExpression, null, TSESTree.Identifier> {
|
||||
readonly isTypeDefinition = true;
|
||||
readonly isVariableDefinition = true;
|
||||
constructor(name: TSESTree.Identifier, node: ClassNameDefinition['node']);
|
||||
}
|
||||
export { ClassNameDefinition };
|
||||
//# sourceMappingURL=ClassNameDefinition.d.ts.map
|
||||
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"ClassNameDefinition.d.ts","sourceRoot":"","sources":["../../src/definition/ClassNameDefinition.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,cAAM,mBAAoB,SAAQ,cAAc,CAC9C,cAAc,CAAC,SAAS,EACxB,QAAQ,CAAC,gBAAgB,GAAG,QAAQ,CAAC,eAAe,EACpD,IAAI,EACJ,QAAQ,CAAC,UAAU,CACpB;IACC,SAAgB,gBAAgB,QAAQ;IACxC,SAAgB,oBAAoB,QAAQ;gBAEhC,IAAI,EAAE,QAAQ,CAAC,UAAU,EAAE,IAAI,EAAE,mBAAmB,CAAC,MAAM,CAAC;CAGzE;AAED,OAAO,EAAE,mBAAmB,EAAE,CAAC"}
|
||||
14
node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/ClassNameDefinition.js
generated
vendored
Normal file
14
node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/ClassNameDefinition.js
generated
vendored
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.ClassNameDefinition = void 0;
|
||||
const DefinitionBase_1 = require("./DefinitionBase");
|
||||
const DefinitionType_1 = require("./DefinitionType");
|
||||
class ClassNameDefinition extends DefinitionBase_1.DefinitionBase {
|
||||
isTypeDefinition = true;
|
||||
isVariableDefinition = true;
|
||||
constructor(name, node) {
|
||||
super(DefinitionType_1.DefinitionType.ClassName, name, node, null);
|
||||
}
|
||||
}
|
||||
exports.ClassNameDefinition = ClassNameDefinition;
|
||||
//# sourceMappingURL=ClassNameDefinition.js.map
|
||||
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"ClassNameDefinition.js","sourceRoot":"","sources":["../../src/definition/ClassNameDefinition.ts"],"names":[],"mappings":";;;AAEA,qDAAkD;AAClD,qDAAkD;AAElD,MAAM,mBAAoB,SAAQ,+BAKjC;IACiB,gBAAgB,GAAG,IAAI,CAAC;IACxB,oBAAoB,GAAG,IAAI,CAAC;IAE5C,YAAY,IAAyB,EAAE,IAAiC;QACtE,KAAK,CAAC,+BAAc,CAAC,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;IACpD,CAAC;CACF;AAEQ,kDAAmB"}
|
||||
14
node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/Definition.d.ts
generated
vendored
Normal file
14
node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/Definition.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
import type { CatchClauseDefinition } from './CatchClauseDefinition';
|
||||
import type { ClassNameDefinition } from './ClassNameDefinition';
|
||||
import type { FunctionNameDefinition } from './FunctionNameDefinition';
|
||||
import type { ImplicitGlobalVariableDefinition } from './ImplicitGlobalVariableDefinition';
|
||||
import type { ImportBindingDefinition } from './ImportBindingDefinition';
|
||||
import type { ParameterDefinition } from './ParameterDefinition';
|
||||
import type { TSEnumMemberDefinition } from './TSEnumMemberDefinition';
|
||||
import type { TSEnumNameDefinition } from './TSEnumNameDefinition';
|
||||
import type { TSModuleNameDefinition } from './TSModuleNameDefinition';
|
||||
import type { TypeDefinition } from './TypeDefinition';
|
||||
import type { VariableDefinition } from './VariableDefinition';
|
||||
type Definition = CatchClauseDefinition | ClassNameDefinition | FunctionNameDefinition | ImplicitGlobalVariableDefinition | ImportBindingDefinition | ParameterDefinition | TSEnumMemberDefinition | TSEnumNameDefinition | TSModuleNameDefinition | TypeDefinition | VariableDefinition;
|
||||
export type { Definition };
|
||||
//# sourceMappingURL=Definition.d.ts.map
|
||||
1
node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/Definition.d.ts.map
generated
vendored
Normal file
1
node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/Definition.d.ts.map
generated
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"Definition.d.ts","sourceRoot":"","sources":["../../src/definition/Definition.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AACvE,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,oCAAoC,CAAC;AAC3F,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACzE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AACvE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AACnE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AACvE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE/D,KAAK,UAAU,GACX,qBAAqB,GACrB,mBAAmB,GACnB,sBAAsB,GACtB,gCAAgC,GAChC,uBAAuB,GACvB,mBAAmB,GACnB,sBAAsB,GACtB,oBAAoB,GACpB,sBAAsB,GACtB,cAAc,GACd,kBAAkB,CAAC;AAEvB,YAAY,EAAE,UAAU,EAAE,CAAC"}
|
||||
3
node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/Definition.js
generated
vendored
Normal file
3
node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/Definition.js
generated
vendored
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
//# sourceMappingURL=Definition.js.map
|
||||
1
node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/Definition.js.map
generated
vendored
Normal file
1
node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/Definition.js.map
generated
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"Definition.js","sourceRoot":"","sources":["../../src/definition/Definition.ts"],"names":[],"mappings":""}
|
||||
35
node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionBase.d.ts
generated
vendored
Normal file
35
node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionBase.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
import type { TSESTree } from '@typescript-eslint/types';
|
||||
import type { DefinitionType } from './DefinitionType';
|
||||
declare abstract class DefinitionBase<Type extends DefinitionType, Node extends TSESTree.Node, Parent extends TSESTree.Node | null, Name extends TSESTree.Node> {
|
||||
/**
|
||||
* A unique ID for this instance - primarily used to help debugging and testing
|
||||
*/
|
||||
readonly $id: number;
|
||||
readonly type: Type;
|
||||
/**
|
||||
* The `Identifier` node of this definition
|
||||
* @public
|
||||
*/
|
||||
readonly name: Name;
|
||||
/**
|
||||
* The enclosing node of the name.
|
||||
* @public
|
||||
*/
|
||||
readonly node: Node;
|
||||
/**
|
||||
* the enclosing statement node of the identifier.
|
||||
* @public
|
||||
*/
|
||||
readonly parent: Parent;
|
||||
constructor(type: Type, name: Name, node: Node, parent: Parent);
|
||||
/**
|
||||
* `true` if the variable is valid in a type context, false otherwise
|
||||
*/
|
||||
abstract readonly isTypeDefinition: boolean;
|
||||
/**
|
||||
* `true` if the variable is valid in a value context, false otherwise
|
||||
*/
|
||||
abstract readonly isVariableDefinition: boolean;
|
||||
}
|
||||
export { DefinitionBase };
|
||||
//# sourceMappingURL=DefinitionBase.d.ts.map
|
||||
1
node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionBase.d.ts.map
generated
vendored
Normal file
1
node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionBase.d.ts.map
generated
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"DefinitionBase.d.ts","sourceRoot":"","sources":["../../src/definition/DefinitionBase.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAMvD,uBAAe,cAAc,CAC3B,IAAI,SAAS,cAAc,EAC3B,IAAI,SAAS,QAAQ,CAAC,IAAI,EAC1B,MAAM,SAAS,QAAQ,CAAC,IAAI,GAAG,IAAI,EACnC,IAAI,SAAS,QAAQ,CAAC,IAAI;IAE1B;;OAEG;IACH,SAAgB,GAAG,EAAE,MAAM,CAAe;IAE1C,SAAgB,IAAI,EAAE,IAAI,CAAC;IAE3B;;;OAGG;IACH,SAAgB,IAAI,EAAE,IAAI,CAAC;IAE3B;;;OAGG;IACH,SAAgB,IAAI,EAAE,IAAI,CAAC;IAE3B;;;OAGG;IACH,SAAgB,MAAM,EAAE,MAAM,CAAC;gBAEnB,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM;IAO9D;;OAEG;IACH,kBAAyB,gBAAgB,EAAE,OAAO,CAAC;IAEnD;;OAEG;IACH,kBAAyB,oBAAoB,EAAE,OAAO,CAAC;CACxD;AAED,OAAO,EAAE,cAAc,EAAE,CAAC"}
|
||||
35
node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionBase.js
generated
vendored
Normal file
35
node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionBase.js
generated
vendored
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.DefinitionBase = void 0;
|
||||
const ID_1 = require("../ID");
|
||||
const generator = (0, ID_1.createIdGenerator)();
|
||||
class DefinitionBase {
|
||||
/**
|
||||
* A unique ID for this instance - primarily used to help debugging and testing
|
||||
*/
|
||||
$id = generator();
|
||||
type;
|
||||
/**
|
||||
* The `Identifier` node of this definition
|
||||
* @public
|
||||
*/
|
||||
name;
|
||||
/**
|
||||
* The enclosing node of the name.
|
||||
* @public
|
||||
*/
|
||||
node;
|
||||
/**
|
||||
* the enclosing statement node of the identifier.
|
||||
* @public
|
||||
*/
|
||||
parent;
|
||||
constructor(type, name, node, parent) {
|
||||
this.type = type;
|
||||
this.name = name;
|
||||
this.node = node;
|
||||
this.parent = parent;
|
||||
}
|
||||
}
|
||||
exports.DefinitionBase = DefinitionBase;
|
||||
//# sourceMappingURL=DefinitionBase.js.map
|
||||
1
node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionBase.js.map
generated
vendored
Normal file
1
node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionBase.js.map
generated
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"DefinitionBase.js","sourceRoot":"","sources":["../../src/definition/DefinitionBase.ts"],"names":[],"mappings":";;;AAIA,8BAA0C;AAE1C,MAAM,SAAS,GAAG,IAAA,sBAAiB,GAAE,CAAC;AAEtC,MAAe,cAAc;IAM3B;;OAEG;IACa,GAAG,GAAW,SAAS,EAAE,CAAC;IAE1B,IAAI,CAAO;IAE3B;;;OAGG;IACa,IAAI,CAAO;IAE3B;;;OAGG;IACa,IAAI,CAAO;IAE3B;;;OAGG;IACa,MAAM,CAAS;IAE/B,YAAY,IAAU,EAAE,IAAU,EAAE,IAAU,EAAE,MAAc;QAC5D,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;CAWF;AAEQ,wCAAc"}
|
||||
15
node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionType.d.ts
generated
vendored
Normal file
15
node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionType.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
declare enum DefinitionType {
|
||||
CatchClause = "CatchClause",
|
||||
ClassName = "ClassName",
|
||||
FunctionName = "FunctionName",
|
||||
ImplicitGlobalVariable = "ImplicitGlobalVariable",
|
||||
ImportBinding = "ImportBinding",
|
||||
Parameter = "Parameter",
|
||||
TSEnumName = "TSEnumName",
|
||||
TSEnumMember = "TSEnumMemberName",
|
||||
TSModuleName = "TSModuleName",
|
||||
Type = "Type",
|
||||
Variable = "Variable"
|
||||
}
|
||||
export { DefinitionType };
|
||||
//# sourceMappingURL=DefinitionType.d.ts.map
|
||||
1
node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionType.d.ts.map
generated
vendored
Normal file
1
node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionType.d.ts.map
generated
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"DefinitionType.d.ts","sourceRoot":"","sources":["../../src/definition/DefinitionType.ts"],"names":[],"mappings":"AAAA,aAAK,cAAc;IACjB,WAAW,gBAAgB;IAC3B,SAAS,cAAc;IACvB,YAAY,iBAAiB;IAC7B,sBAAsB,2BAA2B;IACjD,aAAa,kBAAkB;IAC/B,SAAS,cAAc;IACvB,UAAU,eAAe;IACzB,YAAY,qBAAqB;IACjC,YAAY,iBAAiB;IAC7B,IAAI,SAAS;IACb,QAAQ,aAAa;CACtB;AAED,OAAO,EAAE,cAAc,EAAE,CAAC"}
|
||||
18
node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionType.js
generated
vendored
Normal file
18
node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionType.js
generated
vendored
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.DefinitionType = void 0;
|
||||
var DefinitionType;
|
||||
(function (DefinitionType) {
|
||||
DefinitionType["CatchClause"] = "CatchClause";
|
||||
DefinitionType["ClassName"] = "ClassName";
|
||||
DefinitionType["FunctionName"] = "FunctionName";
|
||||
DefinitionType["ImplicitGlobalVariable"] = "ImplicitGlobalVariable";
|
||||
DefinitionType["ImportBinding"] = "ImportBinding";
|
||||
DefinitionType["Parameter"] = "Parameter";
|
||||
DefinitionType["TSEnumName"] = "TSEnumName";
|
||||
DefinitionType["TSEnumMember"] = "TSEnumMemberName";
|
||||
DefinitionType["TSModuleName"] = "TSModuleName";
|
||||
DefinitionType["Type"] = "Type";
|
||||
DefinitionType["Variable"] = "Variable";
|
||||
})(DefinitionType || (exports.DefinitionType = DefinitionType = {}));
|
||||
//# sourceMappingURL=DefinitionType.js.map
|
||||
1
node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionType.js.map
generated
vendored
Normal file
1
node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionType.js.map
generated
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"DefinitionType.js","sourceRoot":"","sources":["../../src/definition/DefinitionType.ts"],"names":[],"mappings":";;;AAAA,IAAK,cAYJ;AAZD,WAAK,cAAc;IACjB,6CAA2B,CAAA;IAC3B,yCAAuB,CAAA;IACvB,+CAA6B,CAAA;IAC7B,mEAAiD,CAAA;IACjD,iDAA+B,CAAA;IAC/B,yCAAuB,CAAA;IACvB,2CAAyB,CAAA;IACzB,mDAAiC,CAAA;IACjC,+CAA6B,CAAA;IAC7B,+BAAa,CAAA;IACb,uCAAqB,CAAA;AACvB,CAAC,EAZI,cAAc,8BAAd,cAAc,QAYlB"}
|
||||
10
node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/FunctionNameDefinition.d.ts
generated
vendored
Normal file
10
node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/FunctionNameDefinition.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
import type { TSESTree } from '@typescript-eslint/types';
|
||||
import { DefinitionBase } from './DefinitionBase';
|
||||
import { DefinitionType } from './DefinitionType';
|
||||
declare class FunctionNameDefinition extends DefinitionBase<DefinitionType.FunctionName, TSESTree.FunctionDeclaration | TSESTree.FunctionExpression | TSESTree.TSDeclareFunction | TSESTree.TSEmptyBodyFunctionExpression, null, TSESTree.Identifier> {
|
||||
readonly isTypeDefinition = false;
|
||||
readonly isVariableDefinition = true;
|
||||
constructor(name: TSESTree.Identifier, node: FunctionNameDefinition['node']);
|
||||
}
|
||||
export { FunctionNameDefinition };
|
||||
//# sourceMappingURL=FunctionNameDefinition.d.ts.map
|
||||
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"FunctionNameDefinition.d.ts","sourceRoot":"","sources":["../../src/definition/FunctionNameDefinition.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,cAAM,sBAAuB,SAAQ,cAAc,CACjD,cAAc,CAAC,YAAY,EACzB,QAAQ,CAAC,mBAAmB,GAC5B,QAAQ,CAAC,kBAAkB,GAC3B,QAAQ,CAAC,iBAAiB,GAC1B,QAAQ,CAAC,6BAA6B,EACxC,IAAI,EACJ,QAAQ,CAAC,UAAU,CACpB;IACC,SAAgB,gBAAgB,SAAS;IACzC,SAAgB,oBAAoB,QAAQ;gBAEhC,IAAI,EAAE,QAAQ,CAAC,UAAU,EAAE,IAAI,EAAE,sBAAsB,CAAC,MAAM,CAAC;CAG5E;AAED,OAAO,EAAE,sBAAsB,EAAE,CAAC"}
|
||||
14
node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/FunctionNameDefinition.js
generated
vendored
Normal file
14
node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/FunctionNameDefinition.js
generated
vendored
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.FunctionNameDefinition = void 0;
|
||||
const DefinitionBase_1 = require("./DefinitionBase");
|
||||
const DefinitionType_1 = require("./DefinitionType");
|
||||
class FunctionNameDefinition extends DefinitionBase_1.DefinitionBase {
|
||||
isTypeDefinition = false;
|
||||
isVariableDefinition = true;
|
||||
constructor(name, node) {
|
||||
super(DefinitionType_1.DefinitionType.FunctionName, name, node, null);
|
||||
}
|
||||
}
|
||||
exports.FunctionNameDefinition = FunctionNameDefinition;
|
||||
//# sourceMappingURL=FunctionNameDefinition.js.map
|
||||
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"FunctionNameDefinition.js","sourceRoot":"","sources":["../../src/definition/FunctionNameDefinition.ts"],"names":[],"mappings":";;;AAEA,qDAAkD;AAClD,qDAAkD;AAElD,MAAM,sBAAuB,SAAQ,+BAQpC;IACiB,gBAAgB,GAAG,KAAK,CAAC;IACzB,oBAAoB,GAAG,IAAI,CAAC;IAE5C,YAAY,IAAyB,EAAE,IAAoC;QACzE,KAAK,CAAC,+BAAc,CAAC,YAAY,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;IACvD,CAAC;CACF;AAEQ,wDAAsB"}
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
import type { TSESTree } from '@typescript-eslint/types';
|
||||
import { DefinitionBase } from './DefinitionBase';
|
||||
import { DefinitionType } from './DefinitionType';
|
||||
declare class ImplicitGlobalVariableDefinition extends DefinitionBase<DefinitionType.ImplicitGlobalVariable, TSESTree.Node, null, TSESTree.BindingName> {
|
||||
readonly isTypeDefinition = false;
|
||||
readonly isVariableDefinition = true;
|
||||
constructor(name: TSESTree.BindingName, node: ImplicitGlobalVariableDefinition['node']);
|
||||
}
|
||||
export { ImplicitGlobalVariableDefinition };
|
||||
//# sourceMappingURL=ImplicitGlobalVariableDefinition.d.ts.map
|
||||
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"ImplicitGlobalVariableDefinition.d.ts","sourceRoot":"","sources":["../../src/definition/ImplicitGlobalVariableDefinition.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,cAAM,gCAAiC,SAAQ,cAAc,CAC3D,cAAc,CAAC,sBAAsB,EACrC,QAAQ,CAAC,IAAI,EACb,IAAI,EACJ,QAAQ,CAAC,WAAW,CACrB;IACC,SAAgB,gBAAgB,SAAS;IACzC,SAAgB,oBAAoB,QAAQ;gBAG1C,IAAI,EAAE,QAAQ,CAAC,WAAW,EAC1B,IAAI,EAAE,gCAAgC,CAAC,MAAM,CAAC;CAIjD;AAED,OAAO,EAAE,gCAAgC,EAAE,CAAC"}
|
||||
|
|
@ -0,0 +1,14 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.ImplicitGlobalVariableDefinition = void 0;
|
||||
const DefinitionBase_1 = require("./DefinitionBase");
|
||||
const DefinitionType_1 = require("./DefinitionType");
|
||||
class ImplicitGlobalVariableDefinition extends DefinitionBase_1.DefinitionBase {
|
||||
isTypeDefinition = false;
|
||||
isVariableDefinition = true;
|
||||
constructor(name, node) {
|
||||
super(DefinitionType_1.DefinitionType.ImplicitGlobalVariable, name, node, null);
|
||||
}
|
||||
}
|
||||
exports.ImplicitGlobalVariableDefinition = ImplicitGlobalVariableDefinition;
|
||||
//# sourceMappingURL=ImplicitGlobalVariableDefinition.js.map
|
||||
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"ImplicitGlobalVariableDefinition.js","sourceRoot":"","sources":["../../src/definition/ImplicitGlobalVariableDefinition.ts"],"names":[],"mappings":";;;AAEA,qDAAkD;AAClD,qDAAkD;AAElD,MAAM,gCAAiC,SAAQ,+BAK9C;IACiB,gBAAgB,GAAG,KAAK,CAAC;IACzB,oBAAoB,GAAG,IAAI,CAAC;IAE5C,YACE,IAA0B,EAC1B,IAA8C;QAE9C,KAAK,CAAC,+BAAc,CAAC,sBAAsB,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;IACjE,CAAC;CACF;AAEQ,4EAAgC"}
|
||||
11
node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/ImportBindingDefinition.d.ts
generated
vendored
Normal file
11
node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/ImportBindingDefinition.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
import type { TSESTree } from '@typescript-eslint/types';
|
||||
import { DefinitionBase } from './DefinitionBase';
|
||||
import { DefinitionType } from './DefinitionType';
|
||||
declare class ImportBindingDefinition extends DefinitionBase<DefinitionType.ImportBinding, TSESTree.ImportDefaultSpecifier | TSESTree.ImportNamespaceSpecifier | TSESTree.ImportSpecifier | TSESTree.TSImportEqualsDeclaration, TSESTree.ImportDeclaration | TSESTree.TSImportEqualsDeclaration, TSESTree.Identifier> {
|
||||
readonly isTypeDefinition = true;
|
||||
readonly isVariableDefinition = true;
|
||||
constructor(name: TSESTree.Identifier, node: TSESTree.TSImportEqualsDeclaration, decl: TSESTree.TSImportEqualsDeclaration);
|
||||
constructor(name: TSESTree.Identifier, node: Exclude<ImportBindingDefinition['node'], TSESTree.TSImportEqualsDeclaration>, decl: TSESTree.ImportDeclaration);
|
||||
}
|
||||
export { ImportBindingDefinition };
|
||||
//# sourceMappingURL=ImportBindingDefinition.d.ts.map
|
||||
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"ImportBindingDefinition.d.ts","sourceRoot":"","sources":["../../src/definition/ImportBindingDefinition.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,cAAM,uBAAwB,SAAQ,cAAc,CAClD,cAAc,CAAC,aAAa,EAC1B,QAAQ,CAAC,sBAAsB,GAC/B,QAAQ,CAAC,wBAAwB,GACjC,QAAQ,CAAC,eAAe,GACxB,QAAQ,CAAC,yBAAyB,EACpC,QAAQ,CAAC,iBAAiB,GAAG,QAAQ,CAAC,yBAAyB,EAC/D,QAAQ,CAAC,UAAU,CACpB;IACC,SAAgB,gBAAgB,QAAQ;IACxC,SAAgB,oBAAoB,QAAQ;gBAG1C,IAAI,EAAE,QAAQ,CAAC,UAAU,EACzB,IAAI,EAAE,QAAQ,CAAC,yBAAyB,EACxC,IAAI,EAAE,QAAQ,CAAC,yBAAyB;gBAGxC,IAAI,EAAE,QAAQ,CAAC,UAAU,EACzB,IAAI,EAAE,OAAO,CACX,uBAAuB,CAAC,MAAM,CAAC,EAC/B,QAAQ,CAAC,yBAAyB,CACnC,EACD,IAAI,EAAE,QAAQ,CAAC,iBAAiB;CASnC;AAED,OAAO,EAAE,uBAAuB,EAAE,CAAC"}
|
||||
14
node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/ImportBindingDefinition.js
generated
vendored
Normal file
14
node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/ImportBindingDefinition.js
generated
vendored
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.ImportBindingDefinition = void 0;
|
||||
const DefinitionBase_1 = require("./DefinitionBase");
|
||||
const DefinitionType_1 = require("./DefinitionType");
|
||||
class ImportBindingDefinition extends DefinitionBase_1.DefinitionBase {
|
||||
isTypeDefinition = true;
|
||||
isVariableDefinition = true;
|
||||
constructor(name, node, decl) {
|
||||
super(DefinitionType_1.DefinitionType.ImportBinding, name, node, decl);
|
||||
}
|
||||
}
|
||||
exports.ImportBindingDefinition = ImportBindingDefinition;
|
||||
//# sourceMappingURL=ImportBindingDefinition.js.map
|
||||
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"ImportBindingDefinition.js","sourceRoot":"","sources":["../../src/definition/ImportBindingDefinition.ts"],"names":[],"mappings":";;;AAEA,qDAAkD;AAClD,qDAAkD;AAElD,MAAM,uBAAwB,SAAQ,+BAQrC;IACiB,gBAAgB,GAAG,IAAI,CAAC;IACxB,oBAAoB,GAAG,IAAI,CAAC;IAe5C,YACE,IAAyB,EACzB,IAAqC,EACrC,IAAqE;QAErE,KAAK,CAAC,+BAAc,CAAC,aAAa,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;IACxD,CAAC;CACF;AAEQ,0DAAuB"}
|
||||
14
node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/ParameterDefinition.d.ts
generated
vendored
Normal file
14
node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/ParameterDefinition.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
import type { TSESTree } from '@typescript-eslint/types';
|
||||
import { DefinitionBase } from './DefinitionBase';
|
||||
import { DefinitionType } from './DefinitionType';
|
||||
declare class ParameterDefinition extends DefinitionBase<DefinitionType.Parameter, TSESTree.ArrowFunctionExpression | TSESTree.FunctionDeclaration | TSESTree.FunctionExpression | TSESTree.TSCallSignatureDeclaration | TSESTree.TSConstructorType | TSESTree.TSConstructSignatureDeclaration | TSESTree.TSDeclareFunction | TSESTree.TSEmptyBodyFunctionExpression | TSESTree.TSFunctionType | TSESTree.TSMethodSignature, null, TSESTree.BindingName> {
|
||||
/**
|
||||
* Whether the parameter definition is a part of a rest parameter.
|
||||
*/
|
||||
readonly isTypeDefinition = false;
|
||||
readonly isVariableDefinition = true;
|
||||
readonly rest: boolean;
|
||||
constructor(name: TSESTree.BindingName, node: ParameterDefinition['node'], rest: boolean);
|
||||
}
|
||||
export { ParameterDefinition };
|
||||
//# sourceMappingURL=ParameterDefinition.d.ts.map
|
||||
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"ParameterDefinition.d.ts","sourceRoot":"","sources":["../../src/definition/ParameterDefinition.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,cAAM,mBAAoB,SAAQ,cAAc,CAC9C,cAAc,CAAC,SAAS,EACtB,QAAQ,CAAC,uBAAuB,GAChC,QAAQ,CAAC,mBAAmB,GAC5B,QAAQ,CAAC,kBAAkB,GAC3B,QAAQ,CAAC,0BAA0B,GACnC,QAAQ,CAAC,iBAAiB,GAC1B,QAAQ,CAAC,+BAA+B,GACxC,QAAQ,CAAC,iBAAiB,GAC1B,QAAQ,CAAC,6BAA6B,GACtC,QAAQ,CAAC,cAAc,GACvB,QAAQ,CAAC,iBAAiB,EAC5B,IAAI,EACJ,QAAQ,CAAC,WAAW,CACrB;IACC;;OAEG;IACH,SAAgB,gBAAgB,SAAS;IACzC,SAAgB,oBAAoB,QAAQ;IAC5C,SAAgB,IAAI,EAAE,OAAO,CAAC;gBAG5B,IAAI,EAAE,QAAQ,CAAC,WAAW,EAC1B,IAAI,EAAE,mBAAmB,CAAC,MAAM,CAAC,EACjC,IAAI,EAAE,OAAO;CAKhB;AAED,OAAO,EAAE,mBAAmB,EAAE,CAAC"}
|
||||
19
node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/ParameterDefinition.js
generated
vendored
Normal file
19
node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager/dist/definition/ParameterDefinition.js
generated
vendored
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.ParameterDefinition = void 0;
|
||||
const DefinitionBase_1 = require("./DefinitionBase");
|
||||
const DefinitionType_1 = require("./DefinitionType");
|
||||
class ParameterDefinition extends DefinitionBase_1.DefinitionBase {
|
||||
/**
|
||||
* Whether the parameter definition is a part of a rest parameter.
|
||||
*/
|
||||
isTypeDefinition = false;
|
||||
isVariableDefinition = true;
|
||||
rest;
|
||||
constructor(name, node, rest) {
|
||||
super(DefinitionType_1.DefinitionType.Parameter, name, node, null);
|
||||
this.rest = rest;
|
||||
}
|
||||
}
|
||||
exports.ParameterDefinition = ParameterDefinition;
|
||||
//# sourceMappingURL=ParameterDefinition.js.map
|
||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue