Add eslint as linter and add linter workflow
This commit is contained in:
parent
85821f5fa3
commit
7bdc33b321
5 changed files with 835 additions and 5 deletions
22
.github/workflows/lint.yml
vendored
Normal file
22
.github/workflows/lint.yml
vendored
Normal file
|
@ -0,0 +1,22 @@
|
|||
name: Lint Codebase
|
||||
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
eslint:
|
||||
runs-on: node
|
||||
|
||||
steps:
|
||||
- name: Check out code
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Set up Node.js
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 'latest'
|
||||
|
||||
- name: Install dependencies
|
||||
run: npm install
|
||||
|
||||
- name: Run ESLint
|
||||
run: npm run lint
|
Loading…
Add table
Add a link
Reference in a new issue