Skip to content

Commit 0f0222f

Browse files
committed
chore: fix lint
1 parent e2e4e48 commit 0f0222f

File tree

37 files changed

+143
-35
lines changed

37 files changed

+143
-35
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ test/fixtures/apps/app-ts/**/*.js
2424
!packages/egg/test/fixtures/apps/app-ts/node_modules/**/*.js
2525
!packages/core/test/fixtures/egg-esm/node_modules
2626
!packages/core/test/fixtures/plugin-duplicate/node_modules
27+
!packages/core/test/fixtures/plugin/node_modules
28+
!packages/core/test/fixtures/plugin-pnpm-scope/node_modules
29+
!packages/core/test/fixtures/plugin-pkg-exports/node_modules
2730
test/fixtures/apps/app-ts-esm/**/*.js
2831
test/fixtures/apps/app-ts-type-check/**/*.js
2932
test/fixtures/apps/app-ts-type-check/**/*.d.ts

.oxlintrc.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,8 @@
33
"env": {
44
"node": true
55
},
6-
"ignorePatterns": ["**/test/fixtures/**"]
6+
"ignorePatterns": ["**/test/fixtures/**"],
7+
"rules": {
8+
"no-unused-vars": "error"
9+
}
710
}

packages/cluster/test/app_worker.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ describe('test/app_worker.test.ts', () => {
155155
it('should restart disable on local env', async () => {
156156
try {
157157
await app.httpRequest().get('/exit');
158-
} catch (_) {
158+
} catch {
159159
// ignore
160160
}
161161

@@ -184,7 +184,7 @@ describe('test/app_worker.test.ts', () => {
184184
it('should exit', async () => {
185185
try {
186186
await app.httpRequest().get('/kill?signal=SIGKILL');
187-
} catch (_) {
187+
} catch {
188188
// ignore
189189
}
190190

packages/cluster/test/master/close-master.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ function alive(pid: number) {
361361
// success means it's still alive
362362
process.kill(pid, 0);
363363
return true;
364-
} catch (err) {
364+
} catch {
365365
// error means it's dead
366366
return false;
367367
}

packages/cluster/test/master/others.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ describe.skip('agent should receive app worker numbers', () => {
100100
it.skip('agent should get update message after app died', async () => {
101101
try {
102102
await app.httpRequest().get('/exit');
103-
} catch (_) {
103+
} catch {
104104
// ignore
105105
}
106106

packages/core/test/fixtures/plugin-pkg-exports/node_modules/a/foo_dist/commonjs/config/config.default.js

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/core/test/fixtures/plugin-pkg-exports/node_modules/a/foo_dist/esm/config/config.default.js

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/core/test/fixtures/plugin-pkg-exports/node_modules/a/package.json

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/core/test/fixtures/plugin-pnpm-scope/node_modules/b/config/config.default.js

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/core/test/fixtures/plugin-pnpm-scope/node_modules/b/package.json

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)