Skip to content

Commit

Permalink
add linting (#28)
Browse files Browse the repository at this point in the history
closes #25
  • Loading branch information
bartveneman authored Feb 11, 2024
1 parent e9d540f commit c61500b
Show file tree
Hide file tree
Showing 3 changed files with 216 additions and 4 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,23 @@ on:
branches: [main]

jobs:
lint:
name: Lint JS
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Lint JS
run: npx --yes oxlint@latest -D perf
test:
name: Unit tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js 18
- name: Use Node.js 20
uses: actions/setup-node@v3
with:
node-version: 18
node-version: 20
cache: "npm"
- name: Install dependencies
run: npm install --ignore-scripts --no-audit
Expand Down
202 changes: 202 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,13 @@
"scripts": {
"build": "microbundle",
"test": "uvu",
"check": "tsc"
"check": "tsc",
"lint": "oxlint -D perf"
},
"devDependencies": {
"@types/css-tree": "^2.3.4",
"microbundle": "^0.15.1",
"oxlint": "^0.2.8",
"typescript": "^5.3.3",
"uvu": "^0.5.6"
},
Expand All @@ -39,4 +41,4 @@
"pretty",
"prettier"
]
}
}

0 comments on commit c61500b

Please sign in to comment.