diff --git a/.eslintrc.js b/.eslintrc.js index d7034cf70..5e966ce44 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -46,7 +46,13 @@ module.exports = { rules: { '@typescript-eslint/no-explicit-any': 'off', '@typescript-eslint/explicit-module-boundary-types': 'off', - '@typescript-eslint/no-unused-vars': 'warn', + '@typescript-eslint/no-unused-vars': [ + 1, + { + argsIgnorePattern: '^_', + varsIgnorePattern: '^_', + }, + ], }, }, { diff --git a/packages/vest/src/core/isolate/IsolateReconciler.ts b/packages/vest/src/core/isolate/IsolateReconciler.ts index 0c538995b..5096bf338 100644 --- a/packages/vest/src/core/isolate/IsolateReconciler.ts +++ b/packages/vest/src/core/isolate/IsolateReconciler.ts @@ -1,7 +1,7 @@ import { TIsolate } from 'vestjs-runtime'; export abstract class IsolateReconciler { - static match(currentNode: TIsolate, historyNode: TIsolate): boolean { + static match(_currentNode: TIsolate, _historyNode: TIsolate): boolean { return false; } diff --git a/packages/vest/src/core/isolate/IsolateTest/IsolateTestReconciler.ts b/packages/vest/src/core/isolate/IsolateTest/IsolateTestReconciler.ts index 1569ca9b0..d0c510632 100644 --- a/packages/vest/src/core/isolate/IsolateTest/IsolateTestReconciler.ts +++ b/packages/vest/src/core/isolate/IsolateTest/IsolateTestReconciler.ts @@ -1,9 +1,9 @@ -import { IsolateReconciler } from 'IsolateReconciler'; import { Maybe, deferThrow, text } from 'vest-utils'; import { IsolateInspector, Reconciler } from 'vestjs-runtime'; import type { TIsolate } from 'vestjs-runtime'; import { ErrorStrings } from 'ErrorStrings'; +import { IsolateReconciler } from 'IsolateReconciler'; import type { TIsolateTest } from 'IsolateTest'; import { VestTest } from 'VestTest'; import cancelOverriddenPendingTest from 'cancelOverriddenPendingTest'; diff --git a/packages/vest/src/testUtils/partition.ts b/packages/vest/src/testUtils/partition.ts index 93999eba2..8af8050db 100644 --- a/packages/vest/src/testUtils/partition.ts +++ b/packages/vest/src/testUtils/partition.ts @@ -1,7 +1,6 @@ export default function partition( array: T[], - // eslint-disable-next-line no-unused-vars - predicate: (value: T, index: number, array: T[]) => boolean + predicate: (value: T, _index: number, array: T[]) => boolean ): [T[], T[]] { return array.reduce( (partitions: [T[], T[]], value, number) => { diff --git a/packages/vest/src/testUtils/suiteDummy.ts b/packages/vest/src/testUtils/suiteDummy.ts index 1548d5eb6..59917a1d4 100644 --- a/packages/vest/src/testUtils/suiteDummy.ts +++ b/packages/vest/src/testUtils/suiteDummy.ts @@ -90,14 +90,14 @@ export function untested(fields?: OneOrMoreOf) { function createSuiteRunResult( fieldNames: Maybe, - callback: (fieldName?: string) => void // eslint-disable-line no-unused-vars + callback: (_fieldName?: string) => void ) { return createSuite(fieldNames, callback)(); } function createSuite( fieldNames: Maybe = 'field_1', - callback: (fieldName?: string) => void // eslint-disable-line no-unused-vars + callback: (_fieldName?: string) => void ) { return create(() => { asArray(fieldNames).forEach(fieldName => callback(fieldName));