Merge pull request #1345 from d-yokoi/tsconfig
build: add compiler options to forbid unused local variables and params
This commit is contained in:
commit
b9acdb0944
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