Skip to content

Commit 55a1dd9

Browse files
committed
Add ESLint
1 parent e7f646b commit 55a1dd9

7 files changed

Lines changed: 3568 additions & 772 deletions

File tree

.eslintrc.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"extends": "airbnb-base",
3+
"parserOptions": {
4+
"ecmaVersion": 2018,
5+
"sourceType": "module"
6+
},
7+
"rules": {
8+
"indent": [
9+
"error",
10+
2,
11+
{
12+
"ObjectExpression": 1,
13+
"SwitchCase": 1
14+
}
15+
]
16+
}
17+
}

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,7 @@ jobs:
2626
run: npm ci
2727
- name: Test with Jest
2828
run: npm run test
29+
- name: Test with ESLint
30+
run: npm run lint
2931
- name: Build with npm
3032
run: npm run build

.github/workflows/release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ jobs:
5252
run: npm ci
5353
- name: Test with Jest
5454
run: npm run test
55+
- name: Test with ESLint
56+
run: npm run lint
5557
- name: Build with ncc
5658
run: npm run build
5759

0 commit comments

Comments
 (0)