Use CLI for exclude
This commit is contained in:
parent
037912ccab
commit
d97184880c
@ -17,7 +17,7 @@
|
||||
"run_mocha": "mocha lib/test/**/*_test.js --bail --exit",
|
||||
"test:coverage": "nyc npm run test --all && yarn coverage:report:lcov",
|
||||
"coverage:report:lcov": "nyc report --reporter=text-lcov > coverage/lcov.info",
|
||||
"lint": "tslint --project .",
|
||||
"lint": "tslint --project . --exclude **/src/contract_wrappers/**/*",
|
||||
"manual:postpublish": "yarn build; node ./scripts/postpublish.js"
|
||||
},
|
||||
"license": "Apache-2.0",
|
||||
|
@ -15,7 +15,7 @@
|
||||
"build": "yarn pre_build && tsc && copyfiles -u 3 './lib/src/monorepo_scripts/**/*' ./scripts",
|
||||
"pre_build": "run-s generate_contract_wrappers update_test_artifacts update_compact_artifacts",
|
||||
"generate_contract_wrappers": "abi-gen --abis 'src/compact_artifacts/@(Exchange|Token|TokenTransferProxy|EtherToken|TokenRegistry|DummyToken).json' --template ../contract_templates/contract.handlebars --partials '../contract_templates/partials/**/*.handlebars' --output src/contract_wrappers/generated --backend ethers && prettier --write 'src/contract_wrappers/generated/**.ts'",
|
||||
"lint": "tslint --project .",
|
||||
"lint": "tslint --project . --exclude **/src/contract_wrappers/**/* --exclude **/lib/**/*",
|
||||
"test:circleci": "run-s test:coverage",
|
||||
"test": "yarn run_mocha",
|
||||
"rebuild_and_test": "run-s build test",
|
||||
|
@ -1,6 +1,3 @@
|
||||
{
|
||||
"extends": ["@0xproject/tslint-config"],
|
||||
"linterOptions": {
|
||||
"exclude": ["src/contract_wrappers/generated/*"]
|
||||
}
|
||||
"extends": ["@0xproject/tslint-config"]
|
||||
}
|
||||
|
@ -23,7 +23,7 @@
|
||||
"clean": "shx rm -rf lib src/contract_wrappers/generated",
|
||||
"generate_contract_wrappers":
|
||||
"abi-gen --abis ${npm_package_config_abis} --template ../contract_templates/contract.handlebars --partials '../contract_templates/partials/**/*.handlebars' --output src/contract_wrappers/generated --backend ethers && prettier --write 'src/contract_wrappers/generated/**.ts'",
|
||||
"lint": "tslint --project .",
|
||||
"lint": "tslint --project . --exclude **/src/contract_wrappers/**/* --exclude **/lib/**/*",
|
||||
"coverage:report:text": "istanbul report text",
|
||||
"coverage:report:html": "istanbul report html && open coverage/index.html",
|
||||
"coverage:report:lcov": "istanbul report lcov",
|
||||
|
@ -2,8 +2,5 @@
|
||||
"extends": ["@0xproject/tslint-config"],
|
||||
"rules": {
|
||||
"custom-no-magic-numbers": false
|
||||
},
|
||||
"linterOptions": {
|
||||
"exclude": ["src/contract_wrappers/generated/*"]
|
||||
}
|
||||
}
|
||||
|
@ -1,6 +1,3 @@
|
||||
{
|
||||
"extends": ["@0xproject/tslint-config"],
|
||||
"linterOptions": {
|
||||
"exclude": ["src/generated_contract_wrappers/*"]
|
||||
}
|
||||
"extends": ["@0xproject/tslint-config"]
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user