Skip to content

Add pre-commit hook #935

Add pre-commit hook

Add pre-commit hook #935

Workflow file for this run

name: Lint selene-vscode
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup node
uses: actions/setup-node@v2
with:
node-version: 16.x
- name: Install dependencies
run: npm ci
working-directory: selene-vscode
- name: Run ESLint
run: ./node_modules/.bin/eslint src/
working-directory: selene-vscode
- name: Prettier
run: ./node_modules/.bin/prettier --check src
working-directory: selene-vscode