Eslint setup and github action (#360)
This commit is contained in:
parent
7967891e99
commit
4586fd7f70
|
@ -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
|
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue