Skip to content

ci(github): add package lint check to lint workflow and pre-commit hook #10

ci(github): add package lint check to lint workflow and pre-commit hook

ci(github): add package lint check to lint workflow and pre-commit hook #10

Workflow file for this run

name: lint
on: [push, pull_request]
permissions:
contents: write
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v7
- name: Use Node.js
uses: actions/setup-node@v6
with:
cache: npm
node-version-file: .nvmrc
- name: Install dependencies
run: npm ci --prefer-offline
- name: Run ESLint
run: npm run lint
- name: Build package
run: npm run build
- name: Type check
run: npm run lint:tsc
- name: Check types
run: npm run lint:types
- name: Lint package
run: npm run lint:package