Browse Source

Merge pull request #1345 from d-yokoi/tsconfig

build: add compiler options to forbid unused local variables and params
fixTypes
Jonathan Underwood 6 years ago
committed by GitHub
parent
commit
b9acdb0944
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      ts_src/payments/p2sh.ts
  2. 2
      ts_src/payments/p2wsh.ts
  3. 4
      tsconfig.json

2
ts_src/payments/p2sh.ts

@ -1,5 +1,5 @@
import { Payment, PaymentOpts } from './index' // eslint-disable-line
import { Network, bitcoin as BITCOIN_NETWORK } from '../networks' // eslint-disable-line
import { bitcoin as BITCOIN_NETWORK } from '../networks' // eslint-disable-line
import * as bscript from '../script'
import * as bcrypto from '../crypto'
import * as lazy from './lazy'

2
ts_src/payments/p2wsh.ts

@ -1,5 +1,5 @@
import { Payment, PaymentOpts } from './index' // eslint-disable-line
import { Network, bitcoin as BITCOIN_NETWORK } from '../networks' // eslint-disable-line
import { bitcoin as BITCOIN_NETWORK } from '../networks' // eslint-disable-line
import * as bscript from '../script'
import * as bcrypto from '../crypto'
import * as lazy from './lazy'

4
tsconfig.json

@ -18,7 +18,9 @@
"strictPropertyInitialization": true,
"noImplicitThis": true,
"alwaysStrict": true,
"esModuleInterop": false
"esModuleInterop": false,
"noUnusedLocals": true,
"noUnusedParameters": true
},
"include": [
"ts_src/**/*.ts"

Loading…
Cancel
Save