Skip to content

Commit c86b116

Browse files
committed
feat: ESLint integration
1 parent b95685d commit c86b116

8 files changed

Lines changed: 1662 additions & 0 deletions

File tree

.eslintrc

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"env": {
3+
"es6": true,
4+
"node": true
5+
},
6+
"parserOptions": {
7+
"sourceType": "module"
8+
},
9+
"extends": [
10+
"eslint:recommended"
11+
],
12+
"rules": {
13+
"no-unused-vars": [
14+
"error",
15+
{
16+
"argsIgnorePattern": "^_"
17+
}
18+
]
19+
}
20+
}

.github/workflows/backend.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,3 +63,23 @@ jobs:
6363
with:
6464
flags: backend
6565
file: ./backend/coverage/coverage-final.json
66+
linter:
67+
runs-on: ${{ matrix.os }}
68+
69+
strategy:
70+
matrix:
71+
os: [ubuntu-latest]
72+
node-version: [12.x]
73+
74+
steps:
75+
- uses: actions/checkout@v2
76+
- name: Use Node.js ${{ matrix.node-version }}
77+
uses: actions/setup-node@v1
78+
with:
79+
node-version: ${{ matrix.node-version }}
80+
- name: Installing dependencies
81+
run: npm ci
82+
working-directory: ./backend
83+
- name: Running linter
84+
run: npm run lint
85+
working-directory: ./backend

.github/workflows/frontend.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,23 @@ jobs:
3131
working-directory: ./frontend
3232
env:
3333
CI: true
34+
linter:
35+
runs-on: ${{ matrix.os }}
36+
37+
strategy:
38+
matrix:
39+
os: [ubuntu-latest]
40+
node-version: [12.x]
41+
42+
steps:
43+
- uses: actions/checkout@v2
44+
- name: Use Node.js ${{ matrix.node-version }}
45+
uses: actions/setup-node@v1
46+
with:
47+
node-version: ${{ matrix.node-version }}
48+
- name: Installing dependencies
49+
run: npm ci
50+
working-directory: ./frontend
51+
- name: Running linter
52+
run: npm run lint
53+
working-directory: ./frontend

0 commit comments

Comments
 (0)