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/.github/workflows/integration.yml b/.github/workflows/integration.yml index 340209288..2f1a218ca 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -36,9 +36,9 @@ jobs: run: yarn lint - name: Setup .yarnrc.yml run: | - yarn config set npmAuthToken $NPM_TOKEN + yarn config set npmAuthToken $NPM_PUBLISH_TOKEN yarn config set npmAlwaysAuth true - echo //registry.npmjs.org/:_authToken=$NPM_TOKEN > ~/.npmrc + echo //registry.npmjs.org/:_authToken=$NPM_PUBLISH_TOKEN > ~/.npmrc env: NPM_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }} - name: Release @@ -54,4 +54,5 @@ jobs: PUBLIC_REPO_TOKEN: ${{secrets.PUBLIC_REPO_TOKEN}} EMAIL_ADDRESS: ${{secrets.EMAIL_ADDRESS}} GIT_NAME: ${{secrets.GIT_NAME}} + NPM_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }} npmAuthToken: ${{secrets.NPM_PUBLISH_TOKEN}} diff --git a/.gitignore b/.gitignore index aa17ed5be..fd8aee11c 100644 --- a/.gitignore +++ b/.gitignore @@ -20,6 +20,9 @@ playground.* .vscode + +.yarnrc.yml + # Logs logs *.log diff --git a/.yarnrc.yml b/.yarnrc.yml deleted file mode 100644 index 4697e9028..000000000 --- a/.yarnrc.yml +++ /dev/null @@ -1,13 +0,0 @@ -nmMode: hardlinks-local - -nodeLinker: node-modules - -npmAlwaysAuth: true - -npmAuthToken: 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 - -plugins: - - path: .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs - spec: "@yarnpkg/plugin-interactive-tools" - -yarnPath: .yarn/releases/yarn-3.5.1.cjs 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));