Skip to content

Commit 1a56249

Browse files
committed
CI: add linter check
1 parent eb256ef commit 1a56249

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

.github/workflows/tests.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,14 @@ jobs:
5151
- uses: actions/setup-node@v4
5252
- run: npm ci
5353
- run: npm run test-type-definitions
54+
55+
lint:
56+
name: ESLint
57+
58+
runs-on: ubuntu-latest
59+
60+
steps:
61+
- uses: actions/checkout@v4
62+
- uses: actions/setup-node@v4
63+
- run: npm ci
64+
- run: npm run lint

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979
"test-type-definitions-es5": "tsc --project test/tsconfig.es5.json && tsx --tsconfig test/tsconfig.es5.json test/typescript.test.ts",
8080
"test-browser": "karma start karma.conf.cjs",
8181
"test-node": "NODE_OPTIONS='--import=tsx' mocha ./test/node.test.ts ./test/common.test.ts",
82-
"lint": "eslint lib test",
82+
"lint": "eslint lib/** test/** --ext .d.ts",
8383
"docs": "jsdoc --configure .jsdocrc.cjs --destination docs --readme README.md lib && printf '%s' 'web-stream-tools.openpgpjs.org' > docs/CNAME",
8484
"preversion": "rm -rf docs",
8585
"version": "npm run docs && git add -A docs",

0 commit comments

Comments
 (0)