Skip to content
This repository was archived by the owner on Jun 10, 2024. It is now read-only.

Commit dca183a

Browse files
authored
Merge pull request #209 from sarbull/main
Update ESLint
2 parents c651594 + 29524ef commit dca183a

File tree

10 files changed

+641
-65
lines changed

10 files changed

+641
-65
lines changed

.eslintignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
build
2+
node_modules
3+
dist
4+
**.test.ts
5+
**.test.tsx

.eslintrc

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"root": true,
3+
"parser": "@typescript-eslint/parser",
4+
"plugins": [
5+
"@typescript-eslint"
6+
],
7+
"rules": {
8+
"@typescript-eslint/no-explicit-any": "warn",
9+
"@typescript-eslint/no-empty-interface": "warn"
10+
},
11+
"extends": [
12+
"eslint:recommended",
13+
"plugin:@typescript-eslint/eslint-recommended",
14+
"plugin:@typescript-eslint/recommended"
15+
]
16+
}

.github/workflows/dist.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,13 @@ jobs:
2323
- name: Install dependencies
2424
if: steps.check.outputs.changed == 'true'
2525
run: npm install
26-
- name: Run tests
26+
- name: Lint
27+
if: steps.check.outputs.changed == 'true'
28+
run: npm run lint
29+
- name: Test
2730
if: steps.check.outputs.changed == 'true'
2831
run: npm run test
29-
- name: Run build
32+
- name: Build
3033
if: steps.check.outputs.changed == 'true'
3134
run: npm run build
3235
- name: Publish package to NPM

.github/workflows/node-build.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ jobs:
2525
npm -v
2626
- name: Install Dependencies
2727
run: npm install
28+
- name: Lint
29+
run: npm run lint
30+
- name: Test
31+
run: npm run test
2832
- name: Build
2933
run: npm run build
3034
env:

0 commit comments

Comments
 (0)