Merge pull request #1345 from d-yokoi/tsconfig

build: add compiler options to forbid unused local variables and params
This commit is contained in:
Jonathan Underwood 2019-03-04 13:03:35 +09:00 committed by GitHub
commit b9acdb0944
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 3 deletions

View file

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

View file

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

View file

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