fix: add type-check script to web3.js package (#23109)

This commit is contained in:
Andrey Frolov 2022-03-23 22:58:42 +03:00 committed by GitHub
parent 1b7b261460
commit 59290c08aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 5 deletions

View File

@ -9,7 +9,6 @@ ls -l lib
test -r lib/index.iife.js
test -r lib/index.cjs.js
test -r lib/index.esm.js
npm run doc
npm run lint
npm run ok
npm run codecov
npm run test:live-with-test-validator

View File

@ -48,7 +48,8 @@
"type:gen": "./scripts/typegen.sh",
"lint": "set -ex; npm run pretty; eslint . --ext .js,.ts",
"lint:fix": "npm run pretty:fix && eslint . --fix --ext .js,.ts",
"ok": "run-s lint test doc",
"type:check": "tsc -p tsconfig.json --noEmit",
"ok": "run-s lint test doc type:check",
"pretty": "prettier --check '{,{src,test}/**/}*.{j,t}s'",
"pretty:fix": "prettier --write '{,{src,test}/**/}*.{j,t}s'",
"re": "semantic-release --repository-url git@github.com:solana-labs/solana-web3.js.git",

View File

@ -1,7 +1,6 @@
import bs58 from 'bs58';
import {Buffer} from 'buffer';
import fetch from 'cross-fetch';
import type {Response} from 'cross-fetch';
import {
type as pick,
number,

View File

@ -14,7 +14,9 @@
"isolatedModules": true,
"baseUrl": "src",
"noFallthroughCasesInSwitch": true,
"noImplicitReturns": true
"noImplicitReturns": true,
"noUnusedParameters": true,
"noUnusedLocals": true
},
"include": ["src"]
}