@elizaos/config 1.7.1-alpha.2 → 1.7.1-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +212 -139
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -7625,7 +7625,7 @@ var require_Referencer = __commonJS((exports) => {
|
|
|
7625
7625
|
this.visitForIn(node);
|
|
7626
7626
|
}
|
|
7627
7627
|
ForStatement(node) {
|
|
7628
|
-
if (node.init
|
|
7628
|
+
if (node.init?.type === types_1.AST_NODE_TYPES.VariableDeclaration && node.init.kind !== "var") {
|
|
7629
7629
|
this.scopeManager.nestForScope(node);
|
|
7630
7630
|
}
|
|
7631
7631
|
this.visitChildren(node);
|
|
@@ -179888,7 +179888,12 @@ var require_getParsedConfigFile = __commonJS((exports) => {
|
|
|
179888
179888
|
useCaseSensitiveFileNames: tsserver.sys.useCaseSensitiveFileNames
|
|
179889
179889
|
});
|
|
179890
179890
|
if (parsed?.errors.length) {
|
|
179891
|
-
throw new Error(
|
|
179891
|
+
throw new Error([
|
|
179892
|
+
"Unable to parse the specified 'tsconfig' file. Ensure it's correct and has valid syntax.",
|
|
179893
|
+
formatDiagnostics(parsed.errors)
|
|
179894
|
+
].join(`
|
|
179895
|
+
|
|
179896
|
+
`));
|
|
179892
179897
|
}
|
|
179893
179898
|
return parsed;
|
|
179894
179899
|
function getCurrentDirectory() {
|
|
@@ -183830,7 +183835,7 @@ var require_convert = __commonJS((exports) => {
|
|
|
183830
183835
|
this.#checkForStatementDeclaration(node.initializer, node.kind);
|
|
183831
183836
|
return this.createNode(node, {
|
|
183832
183837
|
type: ts_estree_1.AST_NODE_TYPES.ForOfStatement,
|
|
183833
|
-
await:
|
|
183838
|
+
await: node.awaitModifier?.kind === SyntaxKind.AwaitKeyword,
|
|
183834
183839
|
body: this.convertChild(node.statement),
|
|
183835
183840
|
left: this.convertPattern(node.initializer),
|
|
183836
183841
|
right: this.convertChild(node.expression)
|
|
@@ -183866,77 +183871,73 @@ var require_convert = __commonJS((exports) => {
|
|
|
183866
183871
|
return this.fixExports(node, result);
|
|
183867
183872
|
}
|
|
183868
183873
|
case SyntaxKind.VariableDeclaration: {
|
|
183869
|
-
const
|
|
183870
|
-
if (
|
|
183874
|
+
const hasExclamationToken = !!node.exclamationToken;
|
|
183875
|
+
if (hasExclamationToken) {
|
|
183871
183876
|
if (node.initializer) {
|
|
183872
183877
|
this.#throwError(node, "Declarations with initializers cannot also have definite assignment assertions.");
|
|
183873
183878
|
} else if (node.name.kind !== SyntaxKind.Identifier || !node.type) {
|
|
183874
183879
|
this.#throwError(node, "Declarations with definite assignment assertions must also have type annotations.");
|
|
183875
183880
|
}
|
|
183876
183881
|
}
|
|
183882
|
+
if (node.parent.kind === SyntaxKind.VariableDeclarationList) {
|
|
183883
|
+
const variableDeclarationList = node.parent;
|
|
183884
|
+
const kind = (0, node_utils_1.getDeclarationKind)(variableDeclarationList);
|
|
183885
|
+
if ((variableDeclarationList.parent.kind === SyntaxKind.ForInStatement || variableDeclarationList.parent.kind === SyntaxKind.ForStatement) && (kind === "using" || kind === "await using")) {
|
|
183886
|
+
if (!node.initializer) {
|
|
183887
|
+
this.#throwError(node, `'${kind}' declarations may not be initialized in for statement.`);
|
|
183888
|
+
}
|
|
183889
|
+
if (node.name.kind !== SyntaxKind.Identifier) {
|
|
183890
|
+
this.#throwError(node.name, `'${kind}' declarations may not have binding patterns.`);
|
|
183891
|
+
}
|
|
183892
|
+
}
|
|
183893
|
+
if (variableDeclarationList.parent.kind === SyntaxKind.VariableStatement) {
|
|
183894
|
+
const variableStatement = variableDeclarationList.parent;
|
|
183895
|
+
if (kind === "using" || kind === "await using") {
|
|
183896
|
+
if (!node.initializer) {
|
|
183897
|
+
this.#throwError(node, `'${kind}' declarations must be initialized.`);
|
|
183898
|
+
}
|
|
183899
|
+
if (node.name.kind !== SyntaxKind.Identifier) {
|
|
183900
|
+
this.#throwError(node.name, `'${kind}' declarations may not have binding patterns.`);
|
|
183901
|
+
}
|
|
183902
|
+
}
|
|
183903
|
+
const hasDeclareKeyword = (0, node_utils_1.hasModifier)(SyntaxKind.DeclareKeyword, variableStatement);
|
|
183904
|
+
if ((hasDeclareKeyword || ["await using", "const", "using"].includes(kind)) && hasExclamationToken) {
|
|
183905
|
+
this.#throwError(node, `A definite assignment assertion '!' is not permitted in this context.`);
|
|
183906
|
+
}
|
|
183907
|
+
if (hasDeclareKeyword && node.initializer && (["let", "var"].includes(kind) || node.type)) {
|
|
183908
|
+
this.#throwError(node, `Initializers are not permitted in ambient contexts.`);
|
|
183909
|
+
}
|
|
183910
|
+
}
|
|
183911
|
+
}
|
|
183877
183912
|
const init = this.convertChild(node.initializer);
|
|
183878
183913
|
const id = this.convertBindingNameWithTypeAnnotation(node.name, node.type, node);
|
|
183879
183914
|
return this.createNode(node, {
|
|
183880
183915
|
type: ts_estree_1.AST_NODE_TYPES.VariableDeclarator,
|
|
183881
|
-
definite,
|
|
183916
|
+
definite: hasExclamationToken,
|
|
183882
183917
|
id,
|
|
183883
183918
|
init
|
|
183884
183919
|
});
|
|
183885
183920
|
}
|
|
183886
183921
|
case SyntaxKind.VariableStatement: {
|
|
183922
|
+
const declarations = node.declarationList.declarations;
|
|
183923
|
+
if (!declarations.length) {
|
|
183924
|
+
this.#throwError(node, "A variable declaration list must have at least one variable declarator.");
|
|
183925
|
+
}
|
|
183887
183926
|
const result = this.createNode(node, {
|
|
183888
183927
|
type: ts_estree_1.AST_NODE_TYPES.VariableDeclaration,
|
|
183889
|
-
declarations: this.convertChildren(
|
|
183928
|
+
declarations: this.convertChildren(declarations),
|
|
183890
183929
|
declare: (0, node_utils_1.hasModifier)(SyntaxKind.DeclareKeyword, node),
|
|
183891
183930
|
kind: (0, node_utils_1.getDeclarationKind)(node.declarationList)
|
|
183892
183931
|
});
|
|
183893
|
-
if (!result.declarations.length) {
|
|
183894
|
-
this.#throwError(node, "A variable declaration list must have at least one variable declarator.");
|
|
183895
|
-
}
|
|
183896
|
-
if (result.kind === "using" || result.kind === "await using") {
|
|
183897
|
-
node.declarationList.declarations.forEach((declaration, i) => {
|
|
183898
|
-
if (result.declarations[i].init == null) {
|
|
183899
|
-
this.#throwError(declaration, `'${result.kind}' declarations must be initialized.`);
|
|
183900
|
-
}
|
|
183901
|
-
if (result.declarations[i].id.type !== ts_estree_1.AST_NODE_TYPES.Identifier) {
|
|
183902
|
-
this.#throwError(declaration.name, `'${result.kind}' declarations may not have binding patterns.`);
|
|
183903
|
-
}
|
|
183904
|
-
});
|
|
183905
|
-
}
|
|
183906
|
-
if (result.declare || ["await using", "const", "using"].includes(result.kind)) {
|
|
183907
|
-
node.declarationList.declarations.forEach((declaration, i) => {
|
|
183908
|
-
if (result.declarations[i].definite) {
|
|
183909
|
-
this.#throwError(declaration, `A definite assignment assertion '!' is not permitted in this context.`);
|
|
183910
|
-
}
|
|
183911
|
-
});
|
|
183912
|
-
}
|
|
183913
|
-
if (result.declare) {
|
|
183914
|
-
node.declarationList.declarations.forEach((declaration, i) => {
|
|
183915
|
-
if (result.declarations[i].init && (["let", "var"].includes(result.kind) || result.declarations[i].id.typeAnnotation)) {
|
|
183916
|
-
this.#throwError(declaration, `Initializers are not permitted in ambient contexts.`);
|
|
183917
|
-
}
|
|
183918
|
-
});
|
|
183919
|
-
}
|
|
183920
183932
|
return this.fixExports(node, result);
|
|
183921
183933
|
}
|
|
183922
183934
|
case SyntaxKind.VariableDeclarationList: {
|
|
183923
|
-
|
|
183935
|
+
return this.createNode(node, {
|
|
183924
183936
|
type: ts_estree_1.AST_NODE_TYPES.VariableDeclaration,
|
|
183925
183937
|
declarations: this.convertChildren(node.declarations),
|
|
183926
183938
|
declare: false,
|
|
183927
183939
|
kind: (0, node_utils_1.getDeclarationKind)(node)
|
|
183928
183940
|
});
|
|
183929
|
-
if (result.kind === "using" || result.kind === "await using") {
|
|
183930
|
-
node.declarations.forEach((declaration, i) => {
|
|
183931
|
-
if (result.declarations[i].init != null) {
|
|
183932
|
-
this.#throwError(declaration, `'${result.kind}' declarations may not be initialized in for statement.`);
|
|
183933
|
-
}
|
|
183934
|
-
if (result.declarations[i].id.type !== ts_estree_1.AST_NODE_TYPES.Identifier) {
|
|
183935
|
-
this.#throwError(declaration.name, `'${result.kind}' declarations may not have binding patterns.`);
|
|
183936
|
-
}
|
|
183937
|
-
});
|
|
183938
|
-
}
|
|
183939
|
-
return result;
|
|
183940
183941
|
}
|
|
183941
183942
|
case SyntaxKind.ExpressionStatement:
|
|
183942
183943
|
return this.createNode(node, {
|
|
@@ -184272,7 +184273,7 @@ var require_convert = __commonJS((exports) => {
|
|
|
184272
184273
|
} else {
|
|
184273
184274
|
result = this.createNode(node, {
|
|
184274
184275
|
type: ts_estree_1.AST_NODE_TYPES.Property,
|
|
184275
|
-
computed:
|
|
184276
|
+
computed: node.propertyName?.kind === SyntaxKind.ComputedPropertyName,
|
|
184276
184277
|
key: this.convertChild(node.propertyName ?? node.name),
|
|
184277
184278
|
kind: "init",
|
|
184278
184279
|
method: false,
|
|
@@ -191131,7 +191132,7 @@ var require_resolveProjectList = __commonJS((exports) => {
|
|
|
191131
191132
|
var require_package2 = __commonJS((exports, module) => {
|
|
191132
191133
|
module.exports = {
|
|
191133
191134
|
name: "@typescript-eslint/typescript-estree",
|
|
191134
|
-
version: "8.
|
|
191135
|
+
version: "8.51.0",
|
|
191135
191136
|
description: "A parser that converts TypeScript source code into an ESTree compatible form",
|
|
191136
191137
|
files: [
|
|
191137
191138
|
"dist",
|
|
@@ -191183,15 +191184,15 @@ var require_package2 = __commonJS((exports, module) => {
|
|
|
191183
191184
|
typecheck: "yarn run -BT nx typecheck"
|
|
191184
191185
|
},
|
|
191185
191186
|
dependencies: {
|
|
191186
|
-
"@typescript-eslint/project-service": "8.
|
|
191187
|
-
"@typescript-eslint/tsconfig-utils": "8.
|
|
191188
|
-
"@typescript-eslint/types": "8.
|
|
191189
|
-
"@typescript-eslint/visitor-keys": "8.
|
|
191187
|
+
"@typescript-eslint/project-service": "8.51.0",
|
|
191188
|
+
"@typescript-eslint/tsconfig-utils": "8.51.0",
|
|
191189
|
+
"@typescript-eslint/types": "8.51.0",
|
|
191190
|
+
"@typescript-eslint/visitor-keys": "8.51.0",
|
|
191190
191191
|
debug: "^4.3.4",
|
|
191191
191192
|
minimatch: "^9.0.4",
|
|
191192
191193
|
semver: "^7.6.0",
|
|
191193
191194
|
tinyglobby: "^0.2.15",
|
|
191194
|
-
"ts-api-utils": "^2.
|
|
191195
|
+
"ts-api-utils": "^2.2.0"
|
|
191195
191196
|
},
|
|
191196
191197
|
devDependencies: {
|
|
191197
191198
|
"@vitest/coverage-v8": "^3.1.3",
|
|
@@ -193587,7 +193588,7 @@ var require_parser2 = __commonJS((exports) => {
|
|
|
193587
193588
|
var require_package3 = __commonJS((exports, module) => {
|
|
193588
193589
|
module.exports = {
|
|
193589
193590
|
name: "@typescript-eslint/parser",
|
|
193590
|
-
version: "8.
|
|
193591
|
+
version: "8.51.0",
|
|
193591
193592
|
description: "An ESLint custom parser which leverages TypeScript ESTree",
|
|
193592
193593
|
files: [
|
|
193593
193594
|
"dist",
|
|
@@ -193638,10 +193639,10 @@ var require_package3 = __commonJS((exports, module) => {
|
|
|
193638
193639
|
typescript: ">=4.8.4 <6.0.0"
|
|
193639
193640
|
},
|
|
193640
193641
|
dependencies: {
|
|
193641
|
-
"@typescript-eslint/scope-manager": "8.
|
|
193642
|
-
"@typescript-eslint/types": "8.
|
|
193643
|
-
"@typescript-eslint/typescript-estree": "8.
|
|
193644
|
-
"@typescript-eslint/visitor-keys": "8.
|
|
193642
|
+
"@typescript-eslint/scope-manager": "8.51.0",
|
|
193643
|
+
"@typescript-eslint/types": "8.51.0",
|
|
193644
|
+
"@typescript-eslint/typescript-estree": "8.51.0",
|
|
193645
|
+
"@typescript-eslint/visitor-keys": "8.51.0",
|
|
193645
193646
|
debug: "^4.3.4"
|
|
193646
193647
|
},
|
|
193647
193648
|
devDependencies: {
|
|
@@ -197625,7 +197626,7 @@ var require_RuleCreator = __commonJS((exports) => {
|
|
|
197625
197626
|
var applyDefault_1 = require_applyDefault();
|
|
197626
197627
|
function RuleCreator(urlCreator) {
|
|
197627
197628
|
return function createNamedRule({ meta, name, ...rule }) {
|
|
197628
|
-
|
|
197629
|
+
const ruleWithDocs = createRule({
|
|
197629
197630
|
meta: {
|
|
197630
197631
|
...meta,
|
|
197631
197632
|
docs: {
|
|
@@ -197633,18 +197634,21 @@ var require_RuleCreator = __commonJS((exports) => {
|
|
|
197633
197634
|
url: urlCreator(name)
|
|
197634
197635
|
}
|
|
197635
197636
|
},
|
|
197637
|
+
name,
|
|
197636
197638
|
...rule
|
|
197637
197639
|
});
|
|
197640
|
+
return ruleWithDocs;
|
|
197638
197641
|
};
|
|
197639
197642
|
}
|
|
197640
|
-
function createRule({ create, defaultOptions, meta }) {
|
|
197643
|
+
function createRule({ create, defaultOptions, meta, name }) {
|
|
197641
197644
|
return {
|
|
197642
197645
|
create(context) {
|
|
197643
197646
|
const optionsWithDefault = (0, applyDefault_1.applyDefault)(defaultOptions, context.options);
|
|
197644
197647
|
return create(context, optionsWithDefault);
|
|
197645
197648
|
},
|
|
197646
197649
|
defaultOptions,
|
|
197647
|
-
meta
|
|
197650
|
+
meta,
|
|
197651
|
+
name
|
|
197648
197652
|
};
|
|
197649
197653
|
}
|
|
197650
197654
|
RuleCreator.withoutDocs = function withoutDocs(args) {
|
|
@@ -289899,7 +289903,7 @@ var require_predicates3 = __commonJS((exports) => {
|
|
|
289899
289903
|
}
|
|
289900
289904
|
for (const baseType of typeAndBaseTypes) {
|
|
289901
289905
|
const baseSymbol = baseType.getSymbol();
|
|
289902
|
-
if (baseSymbol
|
|
289906
|
+
if (baseSymbol?.name === parentSymbol.name) {
|
|
289903
289907
|
return true;
|
|
289904
289908
|
}
|
|
289905
289909
|
}
|
|
@@ -290310,7 +290314,7 @@ var require_misc2 = __commonJS((exports) => {
|
|
|
290310
290314
|
return groups;
|
|
290311
290315
|
}
|
|
290312
290316
|
function arraysAreEqual(a, b, eq) {
|
|
290313
|
-
return a === b || a != null &&
|
|
290317
|
+
return a === b || a != null && a.length === b?.length && a.every((x, idx) => eq(x, b[idx]));
|
|
290314
290318
|
}
|
|
290315
290319
|
function findFirstResult(inputs, getResult) {
|
|
290316
290320
|
for (const element of inputs) {
|
|
@@ -292273,7 +292277,7 @@ var require_consistent_generic_constructors = __commonJS((exports) => {
|
|
|
292273
292277
|
}
|
|
292274
292278
|
const [lhsName, rhs] = getLHSRHS();
|
|
292275
292279
|
const lhs = lhsName.typeAnnotation?.typeAnnotation;
|
|
292276
|
-
if (
|
|
292280
|
+
if (rhs?.type !== utils_1.AST_NODE_TYPES.NewExpression || rhs.callee.type !== utils_1.AST_NODE_TYPES.Identifier) {
|
|
292277
292281
|
return;
|
|
292278
292282
|
}
|
|
292279
292283
|
if (lhs && (lhs.type !== utils_1.AST_NODE_TYPES.TSTypeReference || lhs.typeName.type !== utils_1.AST_NODE_TYPES.Identifier || lhs.typeName.name !== rhs.callee.name || isBuiltInArray(lhs.typeName))) {
|
|
@@ -294001,7 +294005,7 @@ var require_explicitReturnTypeUtils = __commonJS((exports) => {
|
|
|
294001
294005
|
return node.type === utils_1.AST_NODE_TYPES.NewExpression;
|
|
294002
294006
|
}
|
|
294003
294007
|
function isPropertyOfObjectWithType(property) {
|
|
294004
|
-
if (
|
|
294008
|
+
if (property?.type !== utils_1.AST_NODE_TYPES.Property) {
|
|
294005
294009
|
return false;
|
|
294006
294010
|
}
|
|
294007
294011
|
const objectExpr = property.parent;
|
|
@@ -298390,7 +298394,7 @@ var require_no_dupe_class_members2 = __commonJS((exports) => {
|
|
|
298390
298394
|
if (node.computed) {
|
|
298391
298395
|
return;
|
|
298392
298396
|
}
|
|
298393
|
-
if (node.value
|
|
298397
|
+
if (node.value?.type === utils_1.AST_NODE_TYPES.TSEmptyBodyFunctionExpression) {
|
|
298394
298398
|
return;
|
|
298395
298399
|
}
|
|
298396
298400
|
return coreListener(node);
|
|
@@ -298717,7 +298721,6 @@ var require_no_dynamic_delete = __commonJS((exports) => {
|
|
|
298717
298721
|
description: "Disallow using the `delete` operator on computed key expressions",
|
|
298718
298722
|
recommended: "strict"
|
|
298719
298723
|
},
|
|
298720
|
-
fixable: "code",
|
|
298721
298724
|
messages: {
|
|
298722
298725
|
dynamicDelete: "Do not delete dynamically computed property keys."
|
|
298723
298726
|
},
|
|
@@ -298725,12 +298728,6 @@ var require_no_dynamic_delete = __commonJS((exports) => {
|
|
|
298725
298728
|
},
|
|
298726
298729
|
defaultOptions: [],
|
|
298727
298730
|
create(context) {
|
|
298728
|
-
function createFixer(member) {
|
|
298729
|
-
if (member.property.type === utils_1.AST_NODE_TYPES.Literal && typeof member.property.value === "string") {
|
|
298730
|
-
return createPropertyReplacement(member.property, `.${member.property.value}`);
|
|
298731
|
-
}
|
|
298732
|
-
return;
|
|
298733
|
-
}
|
|
298734
298731
|
return {
|
|
298735
298732
|
"UnaryExpression[operator=delete]"(node) {
|
|
298736
298733
|
if (node.argument.type !== utils_1.AST_NODE_TYPES.MemberExpression || !node.argument.computed || isAcceptableIndexExpression(node.argument.property)) {
|
|
@@ -298738,20 +298735,10 @@ var require_no_dynamic_delete = __commonJS((exports) => {
|
|
|
298738
298735
|
}
|
|
298739
298736
|
context.report({
|
|
298740
298737
|
node: node.argument.property,
|
|
298741
|
-
messageId: "dynamicDelete"
|
|
298742
|
-
fix: createFixer(node.argument)
|
|
298738
|
+
messageId: "dynamicDelete"
|
|
298743
298739
|
});
|
|
298744
298740
|
}
|
|
298745
298741
|
};
|
|
298746
|
-
function createPropertyReplacement(property, replacement) {
|
|
298747
|
-
return (fixer) => fixer.replaceTextRange(getTokenRange(property), replacement);
|
|
298748
|
-
}
|
|
298749
|
-
function getTokenRange(property) {
|
|
298750
|
-
return [
|
|
298751
|
-
(0, util_1.nullThrows)(context.sourceCode.getTokenBefore(property), util_1.NullThrowsReasons.MissingToken("token before", "property")).range[0],
|
|
298752
|
-
(0, util_1.nullThrows)(context.sourceCode.getTokenAfter(property), util_1.NullThrowsReasons.MissingToken("token after", "property")).range[1]
|
|
298753
|
-
];
|
|
298754
|
-
}
|
|
298755
298742
|
}
|
|
298756
298743
|
});
|
|
298757
298744
|
function isAcceptableIndexExpression(property) {
|
|
@@ -301434,7 +301421,7 @@ var require_no_misused_promises = __commonJS((exports) => {
|
|
|
301434
301421
|
});
|
|
301435
301422
|
}
|
|
301436
301423
|
function checkJSXAttribute(node) {
|
|
301437
|
-
if (node.value
|
|
301424
|
+
if (node.value?.type !== utils_1.AST_NODE_TYPES.JSXExpressionContainer) {
|
|
301438
301425
|
return;
|
|
301439
301426
|
}
|
|
301440
301427
|
const expressionContainer = services.esTreeNodeToTSNodeMap.get(node.value);
|
|
@@ -302453,7 +302440,7 @@ var require_no_redeclare2 = __commonJS((exports) => {
|
|
|
302453
302440
|
Program(node) {
|
|
302454
302441
|
const scope = context.sourceCode.getScope(node);
|
|
302455
302442
|
findVariablesInScope(scope);
|
|
302456
|
-
if (scope.type === scope_manager_1.ScopeType.global && scope.
|
|
302443
|
+
if (scope.type === scope_manager_1.ScopeType.global && scope.block === scope.childScopes[0]?.block) {
|
|
302457
302444
|
findVariablesInScope(scope.childScopes[0]);
|
|
302458
302445
|
}
|
|
302459
302446
|
},
|
|
@@ -304294,7 +304281,7 @@ var require_no_type_alias = __commonJS((exports) => {
|
|
|
304294
304281
|
if (type.node.type === utils_1.AST_NODE_TYPES.TSTupleType) {
|
|
304295
304282
|
return true;
|
|
304296
304283
|
}
|
|
304297
|
-
if (type.node.type === utils_1.AST_NODE_TYPES.TSTypeOperator && ["keyof", "readonly"].includes(type.node.operator) && type.node.typeAnnotation
|
|
304284
|
+
if (type.node.type === utils_1.AST_NODE_TYPES.TSTypeOperator && ["keyof", "readonly"].includes(type.node.operator) && type.node.typeAnnotation?.type === utils_1.AST_NODE_TYPES.TSTupleType) {
|
|
304298
304285
|
return true;
|
|
304299
304286
|
}
|
|
304300
304287
|
return false;
|
|
@@ -309027,7 +309014,7 @@ var require_classScopeAnalyzer = __commonJS((exports) => {
|
|
|
309027
309014
|
switch (firstDef.node.type) {
|
|
309028
309015
|
case utils_1.AST_NODE_TYPES.VariableDeclarator: {
|
|
309029
309016
|
const value = firstDef.node.init;
|
|
309030
|
-
if (value
|
|
309017
|
+
if (value?.type !== utils_1.AST_NODE_TYPES.ThisExpression) {
|
|
309031
309018
|
return null;
|
|
309032
309019
|
}
|
|
309033
309020
|
if (variable.references.some((ref) => ref.isWrite() && ref.init !== true)) {
|
|
@@ -310123,6 +310110,7 @@ var require_no_useless_default_assignment = __commonJS((exports) => {
|
|
|
310123
310110
|
},
|
|
310124
310111
|
fixable: "code",
|
|
310125
310112
|
messages: {
|
|
310113
|
+
preferOptionalSyntax: "Using `= undefined` to make a parameter optional adds unnecessary runtime logic. Use the `?` optional syntax instead.",
|
|
310126
310114
|
uselessDefaultAssignment: "Default value is useless because the {{ type }} is not optional.",
|
|
310127
310115
|
uselessUndefined: "Default value is useless because it is undefined. Optional {{ type }}s are already undefined by default."
|
|
310128
310116
|
},
|
|
@@ -310132,8 +310120,6 @@ var require_no_useless_default_assignment = __commonJS((exports) => {
|
|
|
310132
310120
|
create(context) {
|
|
310133
310121
|
const services = (0, util_1.getParserServices)(context);
|
|
310134
310122
|
const checker = services.program.getTypeChecker();
|
|
310135
|
-
const compilerOptions = services.program.getCompilerOptions();
|
|
310136
|
-
const isNoUncheckedIndexedAccess = tsutils.isCompilerOptionEnabled(compilerOptions, "noUncheckedIndexedAccess");
|
|
310137
310123
|
function canBeUndefined(type) {
|
|
310138
310124
|
if ((0, util_1.isTypeAnyType)(type) || (0, util_1.isTypeUnknownType)(type)) {
|
|
310139
310125
|
return true;
|
|
@@ -310143,10 +310129,7 @@ var require_no_useless_default_assignment = __commonJS((exports) => {
|
|
|
310143
310129
|
function getPropertyType(objectType, propertyName) {
|
|
310144
310130
|
const symbol = objectType.getProperty(propertyName);
|
|
310145
310131
|
if (!symbol) {
|
|
310146
|
-
|
|
310147
|
-
return null;
|
|
310148
|
-
}
|
|
310149
|
-
return objectType.getStringIndexType() ?? null;
|
|
310132
|
+
return null;
|
|
310150
310133
|
}
|
|
310151
310134
|
return checker.getTypeOfSymbol(symbol);
|
|
310152
310135
|
}
|
|
@@ -310157,15 +310140,17 @@ var require_no_useless_default_assignment = __commonJS((exports) => {
|
|
|
310157
310140
|
return tupleArgs[elementIndex];
|
|
310158
310141
|
}
|
|
310159
310142
|
}
|
|
310160
|
-
if (isNoUncheckedIndexedAccess) {
|
|
310161
|
-
return null;
|
|
310162
|
-
}
|
|
310163
310143
|
return arrayType.getNumberIndexType() ?? null;
|
|
310164
310144
|
}
|
|
310165
310145
|
function checkAssignmentPattern(node) {
|
|
310166
310146
|
if (node.right.type === utils_1.AST_NODE_TYPES.Identifier && node.right.name === "undefined") {
|
|
310147
|
+
const tsNode = services.esTreeNodeToTSNodeMap.get(node);
|
|
310148
|
+
if (ts.isParameter(tsNode) && tsNode.type && canBeUndefined(checker.getTypeFromTypeNode(tsNode.type))) {
|
|
310149
|
+
reportPreferOptionalSyntax(node);
|
|
310150
|
+
return;
|
|
310151
|
+
}
|
|
310167
310152
|
const type = node.parent.type === utils_1.AST_NODE_TYPES.Property || node.parent.type === utils_1.AST_NODE_TYPES.ArrayPattern ? "property" : "parameter";
|
|
310168
|
-
|
|
310153
|
+
reportUselessUndefined(node, type);
|
|
310169
310154
|
return;
|
|
310170
310155
|
}
|
|
310171
310156
|
const parent = node.parent;
|
|
@@ -310179,13 +310164,16 @@ var require_no_useless_default_assignment = __commonJS((exports) => {
|
|
|
310179
310164
|
return;
|
|
310180
310165
|
}
|
|
310181
310166
|
const signatures = contextualType.getCallSignatures();
|
|
310167
|
+
if (signatures.length === 0 || signatures[0].getDeclaration() === tsFunc) {
|
|
310168
|
+
return;
|
|
310169
|
+
}
|
|
310182
310170
|
const params = signatures[0].getParameters();
|
|
310183
310171
|
if (paramIndex < params.length) {
|
|
310184
310172
|
const paramSymbol = params[paramIndex];
|
|
310185
310173
|
if ((paramSymbol.flags & ts.SymbolFlags.Optional) === 0) {
|
|
310186
310174
|
const paramType = checker.getTypeOfSymbol(paramSymbol);
|
|
310187
310175
|
if (!canBeUndefined(paramType)) {
|
|
310188
|
-
|
|
310176
|
+
reportUselessDefaultAssignment(node, "parameter");
|
|
310189
310177
|
}
|
|
310190
310178
|
}
|
|
310191
310179
|
}
|
|
@@ -310199,20 +310187,24 @@ var require_no_useless_default_assignment = __commonJS((exports) => {
|
|
|
310199
310187
|
return;
|
|
310200
310188
|
}
|
|
310201
310189
|
if (!canBeUndefined(propertyType)) {
|
|
310202
|
-
|
|
310190
|
+
reportUselessDefaultAssignment(node, "property");
|
|
310203
310191
|
}
|
|
310204
310192
|
} else if (parent.type === utils_1.AST_NODE_TYPES.ArrayPattern) {
|
|
310205
310193
|
const sourceType = getSourceTypeForPattern(parent);
|
|
310206
310194
|
if (!sourceType) {
|
|
310207
310195
|
return;
|
|
310208
310196
|
}
|
|
310197
|
+
if (!checker.isTupleType(sourceType)) {
|
|
310198
|
+
return;
|
|
310199
|
+
}
|
|
310200
|
+
const tupleArgs = checker.getTypeArguments(sourceType);
|
|
310209
310201
|
const elementIndex = parent.elements.indexOf(node);
|
|
310210
|
-
|
|
310211
|
-
if (!elementType) {
|
|
310202
|
+
if (elementIndex < 0 || elementIndex >= tupleArgs.length) {
|
|
310212
310203
|
return;
|
|
310213
310204
|
}
|
|
310205
|
+
const elementType = tupleArgs[elementIndex];
|
|
310214
310206
|
if (!canBeUndefined(elementType)) {
|
|
310215
|
-
|
|
310207
|
+
reportUselessDefaultAssignment(node, "property");
|
|
310216
310208
|
}
|
|
310217
310209
|
}
|
|
310218
310210
|
}
|
|
@@ -310268,18 +310260,40 @@ var require_no_useless_default_assignment = __commonJS((exports) => {
|
|
|
310268
310260
|
return null;
|
|
310269
310261
|
}
|
|
310270
310262
|
}
|
|
310271
|
-
function
|
|
310263
|
+
function reportUselessDefaultAssignment(node, type) {
|
|
310272
310264
|
context.report({
|
|
310273
310265
|
node: node.right,
|
|
310274
|
-
messageId,
|
|
310266
|
+
messageId: "uselessDefaultAssignment",
|
|
310275
310267
|
data: { type },
|
|
310276
|
-
fix(fixer)
|
|
310277
|
-
|
|
310278
|
-
|
|
310279
|
-
|
|
310268
|
+
fix: (fixer) => removeDefault(fixer, node)
|
|
310269
|
+
});
|
|
310270
|
+
}
|
|
310271
|
+
function reportUselessUndefined(node, type) {
|
|
310272
|
+
context.report({
|
|
310273
|
+
node: node.right,
|
|
310274
|
+
messageId: "uselessUndefined",
|
|
310275
|
+
data: { type },
|
|
310276
|
+
fix: (fixer) => removeDefault(fixer, node)
|
|
310277
|
+
});
|
|
310278
|
+
}
|
|
310279
|
+
function reportPreferOptionalSyntax(node) {
|
|
310280
|
+
context.report({
|
|
310281
|
+
node: node.right,
|
|
310282
|
+
messageId: "preferOptionalSyntax",
|
|
310283
|
+
*fix(fixer) {
|
|
310284
|
+
yield removeDefault(fixer, node);
|
|
310285
|
+
const { left } = node;
|
|
310286
|
+
if (left.type === utils_1.AST_NODE_TYPES.Identifier) {
|
|
310287
|
+
yield fixer.insertTextAfterRange([left.range[0], left.range[0] + left.name.length], "?");
|
|
310288
|
+
}
|
|
310280
310289
|
}
|
|
310281
310290
|
});
|
|
310282
310291
|
}
|
|
310292
|
+
function removeDefault(fixer, node) {
|
|
310293
|
+
const start = node.left.range[1];
|
|
310294
|
+
const end = node.range[1];
|
|
310295
|
+
return fixer.removeRange([start, end]);
|
|
310296
|
+
}
|
|
310283
310297
|
return {
|
|
310284
310298
|
AssignmentPattern: checkAssignmentPattern
|
|
310285
310299
|
};
|
|
@@ -312109,7 +312123,7 @@ var require_prefer_namespace_keyword = __commonJS((exports) => {
|
|
|
312109
312123
|
return;
|
|
312110
312124
|
}
|
|
312111
312125
|
const moduleType = context.sourceCode.getTokenBefore(node.id);
|
|
312112
|
-
if (moduleType
|
|
312126
|
+
if (moduleType?.type === utils_1.AST_TOKEN_TYPES.Identifier && moduleType.value === "module") {
|
|
312113
312127
|
context.report({
|
|
312114
312128
|
node,
|
|
312115
312129
|
messageId: "useNamespace",
|
|
@@ -312461,7 +312475,7 @@ var require_prefer_nullish_coalescing = __commonJS((exports) => {
|
|
|
312461
312475
|
} else if (node.consequent.type === utils_1.AST_NODE_TYPES.ExpressionStatement) {
|
|
312462
312476
|
assignmentExpression = node.consequent.expression;
|
|
312463
312477
|
}
|
|
312464
|
-
if (
|
|
312478
|
+
if (assignmentExpression?.type !== utils_1.AST_NODE_TYPES.AssignmentExpression || !isMemberAccessLike(assignmentExpression.left)) {
|
|
312465
312479
|
return;
|
|
312466
312480
|
}
|
|
312467
312481
|
const nullishCoalescingLeftNode = assignmentExpression.left;
|
|
@@ -312981,12 +312995,18 @@ var require_gatherLogicalOperands = __commonJS((exports) => {
|
|
|
312981
312995
|
};
|
|
312982
312996
|
}();
|
|
312983
312997
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
312984
|
-
exports.ComparisonType = exports.NullishComparisonType = exports.OperandValidity = undefined;
|
|
312998
|
+
exports.ComparisonType = exports.NullishComparisonType = exports.OperandValidity = exports.Yoda = undefined;
|
|
312985
312999
|
exports.gatherLogicalOperands = gatherLogicalOperands;
|
|
312986
313000
|
var utils_1 = require_dist10();
|
|
312987
313001
|
var ts_api_utils_1 = require_lib4();
|
|
312988
313002
|
var ts = __importStar(require_typescript());
|
|
312989
313003
|
var util_1 = require_util3();
|
|
313004
|
+
var Yoda;
|
|
313005
|
+
(function(Yoda2) {
|
|
313006
|
+
Yoda2[Yoda2["Yes"] = 0] = "Yes";
|
|
313007
|
+
Yoda2[Yoda2["No"] = 1] = "No";
|
|
313008
|
+
Yoda2[Yoda2["Unknown"] = 2] = "Unknown";
|
|
313009
|
+
})(Yoda || (exports.Yoda = Yoda = {}));
|
|
312990
313010
|
var ComparisonValueType;
|
|
312991
313011
|
(function(ComparisonValueType2) {
|
|
312992
313012
|
ComparisonValueType2["Null"] = "Null";
|
|
@@ -313129,7 +313149,7 @@ var require_gatherLogicalOperands = __commonJS((exports) => {
|
|
|
313129
313149
|
}
|
|
313130
313150
|
const binaryComparisonChain = getBinaryComparisonChain(operand);
|
|
313131
313151
|
if (binaryComparisonChain) {
|
|
313132
|
-
const { comparedName, comparedValue: comparedValue2,
|
|
313152
|
+
const { comparedName, comparedValue: comparedValue2, yoda } = binaryComparisonChain;
|
|
313133
313153
|
switch (operand.operator) {
|
|
313134
313154
|
case "==":
|
|
313135
313155
|
case "===": {
|
|
@@ -313138,9 +313158,9 @@ var require_gatherLogicalOperands = __commonJS((exports) => {
|
|
|
313138
313158
|
comparedName,
|
|
313139
313159
|
comparisonType,
|
|
313140
313160
|
comparisonValue: comparedValue2,
|
|
313141
|
-
isYoda: isYoda2,
|
|
313142
313161
|
node: operand,
|
|
313143
|
-
type: OperandValidity.Last
|
|
313162
|
+
type: OperandValidity.Last,
|
|
313163
|
+
yoda
|
|
313144
313164
|
});
|
|
313145
313165
|
continue;
|
|
313146
313166
|
}
|
|
@@ -313151,9 +313171,9 @@ var require_gatherLogicalOperands = __commonJS((exports) => {
|
|
|
313151
313171
|
comparedName,
|
|
313152
313172
|
comparisonType,
|
|
313153
313173
|
comparisonValue: comparedValue2,
|
|
313154
|
-
isYoda: isYoda2,
|
|
313155
313174
|
node: operand,
|
|
313156
|
-
type: OperandValidity.Last
|
|
313175
|
+
type: OperandValidity.Last,
|
|
313176
|
+
yoda
|
|
313157
313177
|
});
|
|
313158
313178
|
continue;
|
|
313159
313179
|
}
|
|
@@ -313234,26 +313254,40 @@ var require_gatherLogicalOperands = __commonJS((exports) => {
|
|
|
313234
313254
|
}
|
|
313235
313255
|
return null;
|
|
313236
313256
|
}
|
|
313257
|
+
function isMemberBasedExpression(node2) {
|
|
313258
|
+
if (node2.type === utils_1.AST_NODE_TYPES.MemberExpression) {
|
|
313259
|
+
return true;
|
|
313260
|
+
}
|
|
313261
|
+
if (node2.type === utils_1.AST_NODE_TYPES.CallExpression && node2.callee.type === utils_1.AST_NODE_TYPES.MemberExpression) {
|
|
313262
|
+
return true;
|
|
313263
|
+
}
|
|
313264
|
+
return false;
|
|
313265
|
+
}
|
|
313237
313266
|
function getBinaryComparisonChain(node2) {
|
|
313238
313267
|
const { left, right } = node2;
|
|
313239
|
-
|
|
313240
|
-
const
|
|
313241
|
-
const isRightMemberExpression = right.type === utils_1.AST_NODE_TYPES.MemberExpression;
|
|
313268
|
+
const isLeftMemberExpression = isMemberBasedExpression(left);
|
|
313269
|
+
const isRightMemberExpression = isMemberBasedExpression(right);
|
|
313242
313270
|
if (isLeftMemberExpression && !isRightMemberExpression) {
|
|
313243
313271
|
const [comparedName, comparedValue] = [left, right];
|
|
313244
313272
|
return {
|
|
313245
313273
|
comparedName,
|
|
313246
313274
|
comparedValue,
|
|
313247
|
-
|
|
313275
|
+
yoda: Yoda.No
|
|
313248
313276
|
};
|
|
313249
313277
|
}
|
|
313250
313278
|
if (!isLeftMemberExpression && isRightMemberExpression) {
|
|
313251
313279
|
const [comparedName, comparedValue] = [right, left];
|
|
313252
|
-
isYoda = true;
|
|
313253
313280
|
return {
|
|
313254
313281
|
comparedName,
|
|
313255
313282
|
comparedValue,
|
|
313256
|
-
|
|
313283
|
+
yoda: Yoda.Yes
|
|
313284
|
+
};
|
|
313285
|
+
}
|
|
313286
|
+
if (isLeftMemberExpression && isRightMemberExpression) {
|
|
313287
|
+
return {
|
|
313288
|
+
comparedName: left,
|
|
313289
|
+
comparedValue: right,
|
|
313290
|
+
yoda: Yoda.Unknown
|
|
313257
313291
|
};
|
|
313258
313292
|
}
|
|
313259
313293
|
return null;
|
|
@@ -313424,6 +313458,40 @@ var require_analyzeChain = __commonJS((exports) => {
|
|
|
313424
313458
|
return null;
|
|
313425
313459
|
}
|
|
313426
313460
|
};
|
|
313461
|
+
var resolveOperandSubset = (previousOperand, lastChainOperand) => {
|
|
313462
|
+
const isNameSubset = (0, compareNodes_1.compareNodes)(previousOperand.comparedName, lastChainOperand.comparedName) === compareNodes_1.NodeComparisonResult.Subset;
|
|
313463
|
+
if (lastChainOperand.yoda !== gatherLogicalOperands_1.Yoda.Unknown) {
|
|
313464
|
+
return {
|
|
313465
|
+
comparedName: lastChainOperand.comparedName,
|
|
313466
|
+
comparisonValue: lastChainOperand.comparisonValue,
|
|
313467
|
+
isSubset: isNameSubset,
|
|
313468
|
+
isYoda: lastChainOperand.yoda === gatherLogicalOperands_1.Yoda.Yes
|
|
313469
|
+
};
|
|
313470
|
+
}
|
|
313471
|
+
const isValueSubset = (0, compareNodes_1.compareNodes)(previousOperand.comparedName, lastChainOperand.comparisonValue) === compareNodes_1.NodeComparisonResult.Subset;
|
|
313472
|
+
if (isNameSubset && !isValueSubset) {
|
|
313473
|
+
return {
|
|
313474
|
+
comparedName: lastChainOperand.comparedName,
|
|
313475
|
+
comparisonValue: lastChainOperand.comparisonValue,
|
|
313476
|
+
isSubset: true,
|
|
313477
|
+
isYoda: false
|
|
313478
|
+
};
|
|
313479
|
+
}
|
|
313480
|
+
if (!isNameSubset && isValueSubset) {
|
|
313481
|
+
return {
|
|
313482
|
+
comparedName: lastChainOperand.comparisonValue,
|
|
313483
|
+
comparisonValue: lastChainOperand.comparedName,
|
|
313484
|
+
isSubset: true,
|
|
313485
|
+
isYoda: true
|
|
313486
|
+
};
|
|
313487
|
+
}
|
|
313488
|
+
return {
|
|
313489
|
+
comparedName: lastChainOperand.comparisonValue,
|
|
313490
|
+
comparisonValue: lastChainOperand.comparisonValue,
|
|
313491
|
+
isSubset: false,
|
|
313492
|
+
isYoda: true
|
|
313493
|
+
};
|
|
313494
|
+
};
|
|
313427
313495
|
function getReportRange(chain, boundary, sourceCode) {
|
|
313428
313496
|
const leftNode = chain[0].node;
|
|
313429
313497
|
const rightNode = chain[chain.length - 1].node;
|
|
@@ -313641,10 +313709,15 @@ var require_analyzeChain = __commonJS((exports) => {
|
|
|
313641
313709
|
}
|
|
313642
313710
|
const lastOperand = subChain.flat().at(-1);
|
|
313643
313711
|
if (lastOperand && lastChainOperand) {
|
|
313644
|
-
const comparisonResult = (0, compareNodes_1.compareNodes)(lastOperand.comparedName, lastChainOperand.comparedName);
|
|
313645
313712
|
const isValidLastChainOperand = operator === "&&" ? isValidAndLastChainOperand : isValidOrLastChainOperand;
|
|
313646
|
-
|
|
313647
|
-
|
|
313713
|
+
const { comparedName, comparisonValue, isSubset, isYoda } = resolveOperandSubset(lastOperand, lastChainOperand);
|
|
313714
|
+
if (isSubset && isValidLastChainOperand(comparisonValue, lastChainOperand.comparisonType, parserServices)) {
|
|
313715
|
+
lastChain = {
|
|
313716
|
+
...lastChainOperand,
|
|
313717
|
+
comparedName,
|
|
313718
|
+
comparisonValue,
|
|
313719
|
+
isYoda
|
|
313720
|
+
};
|
|
313648
313721
|
}
|
|
313649
313722
|
}
|
|
313650
313723
|
maybeReportThenReset();
|
|
@@ -318452,7 +318525,7 @@ var require_unified_signatures = __commonJS((exports) => {
|
|
|
318452
318525
|
return parametersHaveEqualSigils(a, b) && a.type !== utils_1.AST_NODE_TYPES.RestElement ? { kind: "single-parameter-difference", p0: a, p1: b } : undefined;
|
|
318453
318526
|
}
|
|
318454
318527
|
function isThisParam(param) {
|
|
318455
|
-
return param
|
|
318528
|
+
return param?.type === utils_1.AST_NODE_TYPES.Identifier && param.name === "this";
|
|
318456
318529
|
}
|
|
318457
318530
|
function isThisVoidParam(param) {
|
|
318458
318531
|
return isThisParam(param) && param.typeAnnotation?.typeAnnotation.type === utils_1.AST_NODE_TYPES.TSVoidKeyword;
|
|
@@ -318544,7 +318617,7 @@ var require_unified_signatures = __commonJS((exports) => {
|
|
|
318544
318617
|
return a === b || a != null && b != null && context.sourceCode.getText(a.typeAnnotation) === context.sourceCode.getText(b.typeAnnotation);
|
|
318545
318618
|
}
|
|
318546
318619
|
function constraintsAreEqual(a, b) {
|
|
318547
|
-
return a === b || a != null &&
|
|
318620
|
+
return a === b || a != null && a.type === b?.type;
|
|
318548
318621
|
}
|
|
318549
318622
|
function getIndexOfFirstDifference(a, b, equal) {
|
|
318550
318623
|
for (let i = 0;i < a.length && i < b.length; i++) {
|
|
@@ -318586,7 +318659,7 @@ var require_unified_signatures = __commonJS((exports) => {
|
|
|
318586
318659
|
}
|
|
318587
318660
|
function addOverload(signature, key, containingNode) {
|
|
318588
318661
|
key ??= getOverloadKey(signature);
|
|
318589
|
-
if (
|
|
318662
|
+
if ((containingNode ?? signature).parent === currentScope?.parent) {
|
|
318590
318663
|
const overloads = currentScope.overloads.get(key);
|
|
318591
318664
|
if (overloads != null) {
|
|
318592
318665
|
overloads.push(signature);
|
|
@@ -319218,7 +319291,7 @@ var require_rules4 = __commonJS((exports, module) => {
|
|
|
319218
319291
|
var require_package7 = __commonJS((exports, module) => {
|
|
319219
319292
|
module.exports = {
|
|
319220
319293
|
name: "@typescript-eslint/eslint-plugin",
|
|
319221
|
-
version: "8.
|
|
319294
|
+
version: "8.51.0",
|
|
319222
319295
|
description: "TypeScript plugin for ESLint",
|
|
319223
319296
|
files: [
|
|
319224
319297
|
"dist",
|
|
@@ -319277,22 +319350,21 @@ var require_package7 = __commonJS((exports, module) => {
|
|
|
319277
319350
|
},
|
|
319278
319351
|
dependencies: {
|
|
319279
319352
|
"@eslint-community/regexpp": "^4.10.0",
|
|
319280
|
-
"@typescript-eslint/scope-manager": "8.
|
|
319281
|
-
"@typescript-eslint/type-utils": "8.
|
|
319282
|
-
"@typescript-eslint/utils": "8.
|
|
319283
|
-
"@typescript-eslint/visitor-keys": "8.
|
|
319353
|
+
"@typescript-eslint/scope-manager": "8.51.0",
|
|
319354
|
+
"@typescript-eslint/type-utils": "8.51.0",
|
|
319355
|
+
"@typescript-eslint/utils": "8.51.0",
|
|
319356
|
+
"@typescript-eslint/visitor-keys": "8.51.0",
|
|
319284
319357
|
ignore: "^7.0.0",
|
|
319285
319358
|
"natural-compare": "^1.4.0",
|
|
319286
|
-
"ts-api-utils": "^2.
|
|
319359
|
+
"ts-api-utils": "^2.2.0"
|
|
319287
319360
|
},
|
|
319288
319361
|
devDependencies: {
|
|
319289
319362
|
"@types/mdast": "^4.0.3",
|
|
319290
319363
|
"@types/natural-compare": "*",
|
|
319291
|
-
"@typescript-eslint/rule-schema-to-typescript-types": "8.
|
|
319292
|
-
"@typescript-eslint/rule-tester": "8.
|
|
319364
|
+
"@typescript-eslint/rule-schema-to-typescript-types": "8.51.0",
|
|
319365
|
+
"@typescript-eslint/rule-tester": "8.51.0",
|
|
319293
319366
|
"@vitest/coverage-v8": "^3.1.3",
|
|
319294
319367
|
ajv: "^6.12.6",
|
|
319295
|
-
"cross-fetch": "*",
|
|
319296
319368
|
eslint: "*",
|
|
319297
319369
|
"json-schema": "*",
|
|
319298
319370
|
"markdown-table": "^3.0.3",
|
|
@@ -319309,7 +319381,7 @@ var require_package7 = __commonJS((exports, module) => {
|
|
|
319309
319381
|
vitest: "^3.1.3"
|
|
319310
319382
|
},
|
|
319311
319383
|
peerDependencies: {
|
|
319312
|
-
"@typescript-eslint/parser": "^8.
|
|
319384
|
+
"@typescript-eslint/parser": "^8.51.0",
|
|
319313
319385
|
eslint: "^8.57.0 || ^9.0.0",
|
|
319314
319386
|
typescript: ">=4.8.4 <6.0.0"
|
|
319315
319387
|
},
|
|
@@ -319441,6 +319513,7 @@ var require_raw_plugin = __commonJS((exports, module) => {
|
|
|
319441
319513
|
},
|
|
319442
319514
|
meta: {
|
|
319443
319515
|
name,
|
|
319516
|
+
namespace: "@typescript-eslint",
|
|
319444
319517
|
version
|
|
319445
319518
|
},
|
|
319446
319519
|
rules: rules_1.default
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elizaos/config",
|
|
3
3
|
"description": "Shared configuration for ElizaOS projects and plugins",
|
|
4
|
-
"version": "1.7.1-alpha.
|
|
4
|
+
"version": "1.7.1-alpha.3",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"module": "dist/index.js",
|
|
@@ -51,5 +51,5 @@
|
|
|
51
51
|
"publishConfig": {
|
|
52
52
|
"access": "public"
|
|
53
53
|
},
|
|
54
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "108b83e9ec584b0c0093b76b3d137a2086579aae"
|
|
55
55
|
}
|