Skip to content

Commit

Permalink
Merge pull request #1672 from ethereum-optimism/maurelian/prettier-ig…
Browse files Browse the repository at this point in the history
…nore-coverage

fix(contracts): Add coverage to yarn clean and ignore when linting or formatting
  • Loading branch information
tynes committed Nov 2, 2021
2 parents ec1cb63 + a3619ff commit cafbbe4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ module.exports = {
browser: true,
es6: true,
},
ignorePatterns: ['dist', 'packages/contracts/hardhat'],
ignorePatterns: ['dist', 'coverage', 'packages/contracts/hardhat'],
extends: ['plugin:prettier/recommended'],
parser: 'babel-eslint',
parserOptions: {
Expand Down
1 change: 1 addition & 0 deletions packages/contracts/.prettierignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# WETH9 is a standard we should not modify it.
contracts/L2/predeploys/WETH9.sol
contracts/L2/predeploys/IWETH9.sol
coverage
2 changes: 1 addition & 1 deletion packages/contracts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"lint:contracts:fix": "yarn prettier --write 'contracts/**/*.sol'",
"lint:fix": "yarn lint:contracts:fix && yarn lint:ts:fix",
"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",
"prepublishOnly": "yarn copyfiles -u 1 -e \"**/test-*/**/*\" \"contracts/**/*\" ./",
"postpublish": "rimraf chugsplash L1 L2 libraries standards",
Expand Down

0 comments on commit cafbbe4

Please sign in to comment.