Browse Source

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

fixTypes
d-yokoi 6 years ago
parent
commit
de361673cf
No known key found for this signature in database GPG Key ID: 49EAF81BC6A0D19A
  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 { 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 bscript from '../script'
import * as bcrypto from '../crypto' import * as bcrypto from '../crypto'
import * as lazy from './lazy' import * as lazy from './lazy'

2
ts_src/payments/p2wsh.ts

@ -1,5 +1,5 @@
import { Payment, PaymentOpts } from './index' // eslint-disable-line 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 bscript from '../script'
import * as bcrypto from '../crypto' import * as bcrypto from '../crypto'
import * as lazy from './lazy' import * as lazy from './lazy'

4
tsconfig.json

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

Loading…
Cancel
Save