Skip to content

Commit 0cc21fa

Browse files
committed
chore: cleanups
1 parent 3caa744 commit 0cc21fa

File tree

8 files changed

+24
-17
lines changed

8 files changed

+24
-17
lines changed

.eslintrc.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,13 @@ module.exports = {
4646
rules: {
4747
'@typescript-eslint/no-explicit-any': 'off',
4848
'@typescript-eslint/explicit-module-boundary-types': 'off',
49-
'@typescript-eslint/no-unused-vars': 'warn',
49+
'@typescript-eslint/no-unused-vars': [
50+
1,
51+
{
52+
argsIgnorePattern: '^_',
53+
varsIgnorePattern: '^_',
54+
},
55+
],
5056
},
5157
},
5258
{

.github/workflows/integration.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,19 +28,19 @@ jobs:
2828
- uses: actions/checkout@v3
2929
with:
3030
fetch-depth: 0
31+
- name: Setup .yarnrc.yml
32+
run: |
33+
yarn config set npmAuthToken $NPM_TOKEN || echo "No NPM_TOKEN found"
34+
yarn config set npmAlwaysAuth true
35+
echo //registry.npmjs.org/:_authToken=$NPM_TOKEN > ~/.npmrc || echo "No NPM_TOKEN found"
36+
env:
37+
NPM_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
3138
- name: Install
3239
run: yarn install --immutable
3340
- name: Test
3441
run: yarn test
3542
- name: Lint
3643
run: yarn lint
37-
- name: Setup .yarnrc.yml
38-
run: |
39-
yarn config set npmAuthToken $NPM_TOKEN
40-
yarn config set npmAlwaysAuth true
41-
echo //registry.npmjs.org/:_authToken=$NPM_TOKEN > ~/.npmrc
42-
env:
43-
NPM_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
4444
- name: Release
4545
run: yarn release
4646
env:
@@ -54,4 +54,5 @@ jobs:
5454
PUBLIC_REPO_TOKEN: ${{secrets.PUBLIC_REPO_TOKEN}}
5555
EMAIL_ADDRESS: ${{secrets.EMAIL_ADDRESS}}
5656
GIT_NAME: ${{secrets.GIT_NAME}}
57+
NPM_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
5758
npmAuthToken: ${{secrets.NPM_PUBLISH_TOKEN}}

.yarnrc.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,8 @@ nodeLinker: node-modules
44

55
npmAlwaysAuth: true
66

7-
npmAuthToken: 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
8-
97
plugins:
108
- path: .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs
11-
spec: "@yarnpkg/plugin-interactive-tools"
9+
spec: '@yarnpkg/plugin-interactive-tools'
1210

1311
yarnPath: .yarn/releases/yarn-3.5.1.cjs

packages/vest/src/core/isolate/IsolateReconciler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { TIsolate } from 'vestjs-runtime';
22

33
export abstract class IsolateReconciler {
4-
static match(currentNode: TIsolate, historyNode: TIsolate): boolean {
4+
static match(_currentNode: TIsolate, _historyNode: TIsolate): boolean {
55
return false;
66
}
77

packages/vest/src/core/isolate/IsolateTest/IsolateTestReconciler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import { IsolateReconciler } from 'IsolateReconciler';
21
import { Maybe, deferThrow, text } from 'vest-utils';
32
import { IsolateInspector, Reconciler } from 'vestjs-runtime';
43
import type { TIsolate } from 'vestjs-runtime';
54

65
import { ErrorStrings } from 'ErrorStrings';
6+
import { IsolateReconciler } from 'IsolateReconciler';
77
import type { TIsolateTest } from 'IsolateTest';
88
import { VestTest } from 'VestTest';
99
import cancelOverriddenPendingTest from 'cancelOverriddenPendingTest';

packages/vest/src/testUtils/partition.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
export default function partition<T>(
22
array: T[],
3-
// eslint-disable-next-line no-unused-vars
4-
predicate: (value: T, index: number, array: T[]) => boolean
3+
predicate: (value: T, _index: number, array: T[]) => boolean
54
): [T[], T[]] {
65
return array.reduce(
76
(partitions: [T[], T[]], value, number) => {

packages/vest/src/testUtils/suiteDummy.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,14 +90,14 @@ export function untested(fields?: OneOrMoreOf<string>) {
9090

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

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

vx/scripts/release/steps/push_to_latest_branch.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ git checkout -b $STABLE_BRANCH
2121
echo "Rebuilding yarn.lock"
2222
yarn
2323

24+
echo "Cleaning up auth token"
25+
yarn config unset npmAuthToken
26+
2427
echo "Commiting"
2528
git add -A
2629
git commit -m "$1" -m "$2"

0 commit comments

Comments
 (0)