Commit f8732ddc authored by Maurelian's avatar Maurelian Committed by Kelvin Fichter

fix(contracts): Treat coverage artifacts as local build output

Ensure that test coverage output is not linted, or formatted,
and is removed by the clean script.
parent 1e62ed66
...@@ -4,7 +4,7 @@ module.exports = { ...@@ -4,7 +4,7 @@ module.exports = {
browser: true, browser: true,
es6: true, es6: true,
}, },
ignorePatterns: ['dist', 'packages/contracts/hardhat'], ignorePatterns: ['dist', 'coverage', 'packages/contracts/hardhat'],
extends: ['plugin:prettier/recommended'], extends: ['plugin:prettier/recommended'],
parser: 'babel-eslint', parser: 'babel-eslint',
parserOptions: { parserOptions: {
......
# WETH9 is a standard we should not modify it. # WETH9 is a standard we should not modify it.
contracts/L2/predeploys/WETH9.sol contracts/L2/predeploys/WETH9.sol
contracts/L2/predeploys/IWETH9.sol contracts/L2/predeploys/IWETH9.sol
coverage
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
"lint:contracts:fix": "yarn prettier --write 'contracts/**/*.sol'", "lint:contracts:fix": "yarn prettier --write 'contracts/**/*.sol'",
"lint:fix": "yarn lint:contracts:fix && yarn lint:ts:fix", "lint:fix": "yarn lint:contracts:fix && yarn lint:ts:fix",
"lint": "yarn lint:fix && yarn lint:check", "lint": "yarn lint:fix && yarn lint:check",
"clean": "rm -rf ./dist ./artifacts ./cache ./tsconfig.build.tsbuildinfo", "clean": "rm -rf ./dist ./artifacts ./cache ./coverage ./tsconfig.build.tsbuildinfo",
"deploy": "ts-node bin/deploy.ts && yarn autogen:markdown", "deploy": "ts-node bin/deploy.ts && yarn autogen:markdown",
"prepublishOnly": "yarn copyfiles -u 1 -e \"**/test-*/**/*\" \"contracts/**/*\" ./", "prepublishOnly": "yarn copyfiles -u 1 -e \"**/test-*/**/*\" \"contracts/**/*\" ./",
"postpublish": "rimraf chugsplash L1 L2 libraries standards", "postpublish": "rimraf chugsplash L1 L2 libraries standards",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment