Skip to content

Commit 7068c4f

Browse files
committed
ci: enable oxlint
1 parent afd0869 commit 7068c4f

6 files changed

Lines changed: 154 additions & 5 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ jobs:
112112
GIT_COMMITTER_EMAIL: ${{ vars.GIT_COMMITTER_EMAIL }}
113113
run: |
114114
npx ggcp target/coverage/lcov.info target/coverage/${{ github.sha }}.lcov.info
115-
npx ggcp target/coverage/*.info https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git/coverage/ --message='chore: add coverage for ${{ github.sha }}'
115+
npx ggcp target/coverage/*.info https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git/coverage/./ --message='chore: add coverage for ${{ github.sha }}'
116116
npx ggcp target/docs https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git/gh-pages --message='chore: update docs'
117117
118118
smoke-node:

package-lock.json

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

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
"test": "concurrently 'npm:test:*'",
5151
"test:target": "git diff --exit-code --quiet || (echo 'Uncommitted changes' && exit 1)",
5252
"test:size": "size-limit",
53-
"_test:lint": "eslint -c src/test/lint/.eslintrc.json src",
53+
"test:lint": "oxlint",
5454
"test:unit": "vitest run --coverage --config ./vitest.config.js",
5555
"test:jsr": "jsr publish --dry-run",
5656
"test:audit": "npm audit",
@@ -78,6 +78,7 @@
7878
"fast-glob": "^3.3.3",
7979
"jsr": "^0.13.5",
8080
"minimist": "^1.2.8",
81+
"oxlint": "^1.22.0",
8182
"playwright": "^1.55.0",
8283
"size-limit": "^11.2.0",
8384
"typedoc": "^0.28.13",

src/main/ts/core.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -567,7 +567,7 @@ export const isV6Format: Checker = (addr: string): boolean => {
567567

568568
try {
569569
return Address.from(addr).family === 6
570-
} catch (e) {
570+
} catch {
571571
return false
572572
}
573573
}

src/test/ts/core.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ describe('extra', () => {
269269

270270
// buffer inputs
271271
[Buffer.from([0, 0, 0, 1]), {big: 1n, family: 4}],
272-
[Buffer.from(new Array(16).fill(0)), {big: 0n, family: 6}],
272+
[Buffer.from(Array(16).fill(0)), {big: 0n, family: 6}],
273273
[Buffer.alloc(5), /Invalid buffer length/],
274274

275275
// Array inputs

target/esm/core.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,7 @@ var isV6Format = (addr) => {
500500
if (!`${addr}`.includes(":")) return false;
501501
try {
502502
return Address.from(addr).family === 6;
503-
} catch (e) {
503+
} catch {
504504
return false;
505505
}
506506
};

0 commit comments

Comments
 (0)