build: add compiler options to forbid unused local variables and parameters
This commit is contained in:
parent
b9b8667de7
commit
de361673cf
3 changed files with 5 additions and 3 deletions
|
@ -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'
|
||||
|
|
|
@ -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'
|
||||
|
|
|
@ -18,7 +18,9 @@
|
|||
"strictPropertyInitialization": true,
|
||||
"noImplicitThis": true,
|
||||
"alwaysStrict": true,
|
||||
"esModuleInterop": false
|
||||
"esModuleInterop": false,
|
||||
"noUnusedLocals": true,
|
||||
"noUnusedParameters": true
|
||||
},
|
||||
"include": [
|
||||
"ts_src/**/*.ts"
|
||||
|
|
Loading…
Reference in a new issue