Skip to content

Commit 8334c88

Browse files
committed
chore: add eslint and fix linting errors
1 parent c6c71dc commit 8334c88

File tree

34 files changed

+1741
-2462
lines changed

34 files changed

+1741
-2462
lines changed

.eslintrc.js

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
module.exports = {
2+
"env": {
3+
"browser": true,
4+
"es2021": true,
5+
"jest/globals": true
6+
},
7+
"extends": [
8+
"eslint:recommended"
9+
],
10+
"globals": {
11+
"process": "readonly",
12+
"importScripts": "readonly"
13+
},
14+
"overrides": [
15+
],
16+
"parserOptions": {
17+
"ecmaVersion": "latest",
18+
"sourceType": "module",
19+
"ecmaFeatures": {
20+
"jsx": true
21+
}
22+
},
23+
"plugins": [
24+
"jest"
25+
],
26+
"rules": {
27+
"no-prototype-builtins": 0,
28+
"no-unused-vars": ["error", { "vars": "all", "args": "none" }]
29+
}
30+
}

.github/workflows/ci.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
runs-on: ubuntu-latest
1515
strategy:
1616
matrix:
17-
node-version: [10.x, 12.x, 14.x, 15.x]
17+
node-version: [16.x]
1818
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
1919
steps:
2020
- uses: actions/checkout@v2
@@ -25,5 +25,6 @@ jobs:
2525
- run: npm ci
2626
- run: npm run build
2727
- run: npm test
28+
- run: npm run lint
2829
- run: npm run build-examples
2930

0 commit comments

Comments
 (0)