build: add compiler options to forbid unused local variables and parameters

This commit is contained in:
d-yokoi 2019-03-04 00:10:12 +09:00
parent b9b8667de7
commit de361673cf
No known key found for this signature in database
GPG key ID: 49EAF81BC6A0D19A
3 changed files with 5 additions and 3 deletions

View file

@ -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'

View file

@ -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'

View file

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