Skip to content

Commit

Permalink
add lint test
Browse files Browse the repository at this point in the history
  • Loading branch information
msimerson committed May 3, 2024
1 parent 75a9f81 commit c2f0dad
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
env:
node: true
es2021: true

extends: eslint:recommended

parserOptions:
ecmaVersion: latest

rules:
no-unused-vars: 1
7 changes: 7 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,10 @@ jobs:
outputs:
active: ${{ steps.get.outputs.active }}
lts: ${{ steps.get.outputs.lts }}

lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- run: npm run lint
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"!win32"
],
"scripts": {
"lint": "npx eslint@8 *.js",
"test": "tap --allow-incomplete-coverage test/test-*.js"
},
"author": "Sam Roberts <[email protected]>",
Expand Down

0 comments on commit c2f0dad

Please sign in to comment.