Skip to content

Commit

Permalink
lint: supress unused-vars
Browse files Browse the repository at this point in the history
  • Loading branch information
ealush committed Oct 1, 2023
1 parent 3caa744 commit 4ee31cd
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 7 deletions.
8 changes: 7 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: '^_',
},
],
},
},
{
Expand Down
2 changes: 1 addition & 1 deletion packages/vest/src/core/isolate/IsolateReconciler.ts
Original file line number Diff line number Diff line change
@@ -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;
}

Expand Down
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
3 changes: 1 addition & 2 deletions packages/vest/src/testUtils/partition.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
export default function partition<T>(
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) => {
Expand Down
4 changes: 2 additions & 2 deletions packages/vest/src/testUtils/suiteDummy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,14 +90,14 @@ export function untested(fields?: OneOrMoreOf<string>) {

function createSuiteRunResult(
fieldNames: Maybe<string[] | string>,
callback: (fieldName?: string) => void // eslint-disable-line no-unused-vars
callback: (_fieldName?: string) => void
) {
return createSuite(fieldNames, callback)();
}

function createSuite(
fieldNames: Maybe<string[] | string> = 'field_1',
callback: (fieldName?: string) => void // eslint-disable-line no-unused-vars
callback: (_fieldName?: string) => void
) {
return create(() => {
asArray(fieldNames).forEach(fieldName => callback(fieldName));
Expand Down

2 comments on commit 4ee31cd

@vercel
Copy link

@vercel vercel bot commented on 4ee31cd Oct 1, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

vest – ./website

vest-ealush.vercel.app
vest.vercel.app
vestjs.dev
vest-git-latest-ealush.vercel.app
www.vestjs.dev

@vercel
Copy link

@vercel vercel bot commented on 4ee31cd Oct 1, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

vest-next – ./website

vest-next.vercel.app
vest-website.vercel.app
vest-next-ealush.vercel.app
vest-next-git-latest-ealush.vercel.app

Please sign in to comment.