Skip to content

Commit 4f88f24

Browse files
committed
create a CI linter
1 parent b2111a6 commit 4f88f24

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

.github/workflows/linter.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Unit Tests
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v2
14+
15+
- run: npm run lint

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
{
22
"devDependencies": {
33
"eslint-config-wikimedia": "^0.32.3"
4+
},
5+
"scripts": {
6+
"lint": "eslint . --max-warnings=0"
47
}
58
}

0 commit comments

Comments
 (0)