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 #326 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 70458d1 + d2ad5fa commit ac316e3
Show file tree
Hide file tree
Showing 10 changed files with 535 additions and 1,061 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
17 changes: 17 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"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"
]
}

39 changes: 0 additions & 39 deletions .eslintrc.json

This file was deleted.

4 changes: 3 additions & 1 deletion .github/workflows/node-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ jobs:
npm -v
- name: Install Dependencies
run: npm install
- name: Run tests
- name: Lint
run: npm run lint
- name: Test
run: npm run test
- name: Build
run: npm run build
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/publish.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
Loading

0 comments on commit ac316e3

Please sign in to comment.