da1ef7e0c3
Add ESLint, Prettier, and TypeScript config files extending the shared Headlamp plugin configs. Add npm scripts for lint/format. Auto-fix existing source files. Add CI workflow for PRs and main pushes. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
28 lines
441 B
YAML
28 lines
441 B
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
|
|
jobs:
|
|
lint:
|
|
runs-on: ubuntu-latest
|
|
container: node:20
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Install dependencies
|
|
run: npm ci
|
|
|
|
- name: Lint
|
|
run: npx eslint --ext .ts,.tsx src/
|
|
|
|
- name: Type-check
|
|
run: npx tsc --noEmit
|
|
|
|
- name: Format check
|
|
run: npx prettier --check src/
|