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

Commit

Permalink
Merge pull request #209 from sarbull/main
Browse files Browse the repository at this point in the history
Update ESLint
  • Loading branch information
sarbull authored Apr 25, 2023
2 parents c651594 + 29524ef commit dca183a
Show file tree
Hide file tree
Showing 10 changed files with 641 additions and 65 deletions.
5 changes: 5 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
build
node_modules
dist
**.test.ts
**.test.tsx
16 changes: 16 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"root": true,
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint"
],
"rules": {
"@typescript-eslint/no-explicit-any": "warn",
"@typescript-eslint/no-empty-interface": "warn"
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
]
}
7 changes: 5 additions & 2 deletions .github/workflows/dist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,13 @@ jobs:
- name: Install dependencies
if: steps.check.outputs.changed == 'true'
run: npm install
- name: Run tests
- name: Lint
if: steps.check.outputs.changed == 'true'
run: npm run lint
- name: Test
if: steps.check.outputs.changed == 'true'
run: npm run test
- name: Run build
- name: Build
if: steps.check.outputs.changed == 'true'
run: npm run build
- name: Publish package to NPM
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/node-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ jobs:
npm -v
- name: Install Dependencies
run: npm install
- name: Lint
run: npm run lint
- name: Test
run: npm run test
- name: Build
run: npm run build
env:
Expand Down
Loading

0 comments on commit dca183a

Please sign in to comment.