Skip to content

Commit

Permalink
chore: fix lint task (#617)
Browse files Browse the repository at this point in the history
* chore: fix lint task

* chore: fix wrong name

* chore: ignore ts errors from lib
  • Loading branch information
wa0x6e authored Jul 27, 2023
1 parent 82b3ef4 commit e77c7cf
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/test.yml → .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: Test
name: Lint
on: [push]

jobs:
build-test:
lint:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
Expand All @@ -11,4 +11,5 @@ jobs:
node-version: '16'
cache: 'yarn'
- run: yarn
- run: yarn lint
- run: yarn lint:nofix
- run: yarn typecheck
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
"repository": "snapshot-labs/snapshot-hub",
"license": "MIT",
"scripts": {
"lint": "eslint . --ext .ts --fix",
"lint": "yarn lint:nofix --fix",
"lint:nofix": "eslint . --ext .ts",
"typecheck": "tsc --noEmit",
"dev": "nodemon src/index.ts",
"start": "ts-node src/index.ts"
},
Expand Down
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"esModuleInterop": true,
"strict": true,
"noImplicitAny": false,
"skipLibCheck": true,
"resolveJsonModule": true
}
}

0 comments on commit e77c7cf

Please sign in to comment.