Skip to content

[Style] Add GitHub action for linter and pre-commit hook for formating #2

[Style] Add GitHub action for linter and pre-commit hook for formating

[Style] Add GitHub action for linter and pre-commit hook for formating #2

Workflow file for this run

name: Linter
on:
push: {}
pull_request: {}
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '16' # Specify the Node.js version you want to use
- name: Install dependencies
run: npm install
- name: Run lint
run: npm run lint