Skip to content

Commit b5a7597

Browse files
Copilotrubensworks
andauthored
Changes before error encountered
Agent-Logs-Url: https://github.com/LinkedSoftwareDependencies/Components.js/sessions/08ee73ad-0075-4ae9-8230-bd263447ce6d Co-authored-by: rubensworks <440384+rubensworks@users.noreply.github.com>
1 parent e4e1640 commit b5a7597

20 files changed

Lines changed: 35 additions & 35 deletions

eslint.config.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ module.exports = config([
3333
'ts/no-unsafe-assignment': 'off',
3434
'ts/no-unsafe-argument': 'off',
3535
'ts/no-unsafe-return': 'off',
36+
// Don't flag unused function parameters (common in interface implementations)
37+
'unused-imports/no-unused-vars': [ 'error', { args: 'none' }],
3638
},
3739
},
3840
{

lib/construction/argument/ArgumentConstructorHandlerArray.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ import type { IArgumentsConstructor } from './IArgumentsConstructor';
1010
export class ArgumentConstructorHandlerArray implements IArgumentConstructorHandler {
1111
public canHandle<TInstance>(
1212
value: Resource,
13-
_settings: IConstructionSettings,
14-
_argsCreator: IArgumentsConstructor<TInstance>,
13+
settings: IConstructionSettings,
14+
argsCreator: IArgumentsConstructor<TInstance>,
1515
): boolean {
1616
return Boolean(value.property.elements);
1717
}

lib/construction/argument/ArgumentConstructorHandlerHash.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ import type { IArgumentsConstructor } from './IArgumentsConstructor';
1010
export class ArgumentConstructorHandlerHash implements IArgumentConstructorHandler {
1111
public canHandle<TInstance>(
1212
value: Resource,
13-
_settings: IConstructionSettings,
14-
_argsCreator: IArgumentsConstructor<TInstance>,
13+
settings: IConstructionSettings,
14+
argsCreator: IArgumentsConstructor<TInstance>,
1515
): boolean {
1616
return Boolean(value.property.fields);
1717
}

lib/construction/argument/ArgumentConstructorHandlerList.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ import type { IArgumentsConstructor } from './IArgumentsConstructor';
99
export class ArgumentConstructorHandlerList implements IArgumentConstructorHandler {
1010
public canHandle<TInstance>(
1111
value: Resource,
12-
_settings: IConstructionSettings,
13-
_argsCreator: IArgumentsConstructor<TInstance>,
12+
settings: IConstructionSettings,
13+
argsCreator: IArgumentsConstructor<TInstance>,
1414
): boolean {
1515
return Boolean(value.list);
1616
}

lib/construction/argument/ArgumentConstructorHandlerPrimitive.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ import type { IArgumentsConstructor } from './IArgumentsConstructor';
99
export class ArgumentConstructorHandlerPrimitive implements IArgumentConstructorHandler {
1010
public canHandle<TInstance>(
1111
value: Resource,
12-
_settings: IConstructionSettings,
13-
_argsCreator: IArgumentsConstructor<TInstance>,
12+
settings: IConstructionSettings,
13+
argsCreator: IArgumentsConstructor<TInstance>,
1414
): boolean {
1515
return Boolean(value.type === 'Literal');
1616
}

lib/construction/argument/ArgumentConstructorHandlerReference.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ import type { IArgumentsConstructor } from './IArgumentsConstructor';
99
export class ArgumentConstructorHandlerReference implements IArgumentConstructorHandler {
1010
public canHandle<TInstance>(
1111
value: Resource,
12-
_settings: IConstructionSettings,
13-
_argsCreator: IArgumentsConstructor<TInstance>,
12+
settings: IConstructionSettings,
13+
argsCreator: IArgumentsConstructor<TInstance>,
1414
): boolean {
1515
return Boolean(value.type === 'NamedNode' || value.type === 'BlankNode');
1616
}

lib/construction/argument/ArgumentConstructorHandlerUndefined.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ import type { IArgumentsConstructor } from './IArgumentsConstructor';
99
export class ArgumentConstructorHandlerUndefined implements IArgumentConstructorHandler {
1010
public canHandle<TInstance>(
1111
value: Resource,
12-
_settings: IConstructionSettings,
13-
_argsCreator: IArgumentsConstructor<TInstance>,
12+
settings: IConstructionSettings,
13+
argsCreator: IArgumentsConstructor<TInstance>,
1414
): boolean {
1515
return Boolean(value.property.undefined);
1616
}

lib/construction/argument/ArgumentConstructorHandlerValue.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ import type { IArgumentsConstructor } from './IArgumentsConstructor';
99
export class ArgumentConstructorHandlerValue implements IArgumentConstructorHandler {
1010
public canHandle<TInstance>(
1111
value: Resource,
12-
_settings: IConstructionSettings,
13-
_argsCreator: IArgumentsConstructor<TInstance>,
12+
settings: IConstructionSettings,
13+
argsCreator: IArgumentsConstructor<TInstance>,
1414
): boolean {
1515
return Boolean(value.property.value);
1616
}

lib/construction/strategy/IConstructionStrategy.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ export interface ICreationStrategySupplierOptions<TInstance> {
108108
supplier: () => Promise<TInstance>;
109109
}
110110

111-
export interface ICreationStrategyPrimitiveOptions<_T> {
111+
export interface ICreationStrategyPrimitiveOptions<TInstance> {
112112
/**
113113
* Creation settings.
114114
*/
@@ -119,7 +119,7 @@ export interface ICreationStrategyPrimitiveOptions<_T> {
119119
value: string | number | any;
120120
}
121121

122-
export interface ICreationStrategyVariableOptions<_T> {
122+
export interface ICreationStrategyVariableOptions<TInstance> {
123123
/**
124124
* Creation settings.
125125
*/

lib/preprocess/constructorargumentsmapping/ConstructorArgumentsElementMappingHandlerCollectEntries.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ implements IConstructorArgumentsElementMappingHandler {
2020
public canHandle(
2121
configRoot: Resource,
2222
constructorArgs: Resource,
23-
_configElement: Resource,
24-
_mapper: IConstructorArgumentsMapper,
23+
configElement: Resource,
24+
mapper: IConstructorArgumentsMapper,
2525
): boolean {
2626
return Boolean((constructorArgs.property.value || constructorArgs.property.valueRawReference) &&
2727
constructorArgs.property.collectEntries);

0 commit comments

Comments
 (0)