Eslint setup and github action (#360)

This commit is contained in:
kevkevin 2023-08-07 18:43:15 -05:00 committed by GitHub
parent 7967891e99
commit 4586fd7f70
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 24 additions and 2 deletions

20
.github/workflows/lint.yml vendored Normal file
View File

@ -0,0 +1,20 @@
name: Eslint Check
on: [pull_request]
jobs:
eslint-run:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: "18.17.0"
- name: Install
run: npm install
- name: Lint
run: npm run lint

View File

@ -6,7 +6,8 @@
"dev": "NODE_OPTIONS='--trace-warnings' next dev",
"build": "next build",
"migrate": "prisma migrate deploy",
"start": "NODE_OPTIONS='--trace-warnings' next start -p $PORT --keepAliveTimeout 120000"
"start": "NODE_OPTIONS='--trace-warnings' next start -p $PORT --keepAliveTimeout 120000",
"lint": "standard"
},
"dependencies": {
"@apollo/client": "^3.7.17",
@ -101,7 +102,8 @@
],
"extends": [
"next"
]
],
"ignore": ["**/spawn"]
},
"devDependencies": {
"@babel/core": "^7.22.9",