Skip to content

Commit

Permalink
Differenciate lint from check-lint; Use check-lint in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
pscott committed Feb 18, 2022
1 parent f5038ab commit 4847a0c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,4 @@ jobs:
run: pip install -r requirements.txt

- name: Run linters
run: yarn lint
run: yarn check-lint
8 changes: 6 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,13 @@
"test": "hardhat test",
"start:l1": "hardhat node",
"lint:l1": "prettier --write 'contracts/**/*.sol'",
"lint:l2": "cairo-format -c contracts/**/*.cairo",
"check-lint:l1": "prettier -c 'contracts/**/*.sol'",
"lint:l2": "cairo-format -i contracts/**/*.cairo",
"check-lint:l2": "cairo-format -c contracts/**/*.cairo",
"lint:ts": "eslint . --ext .ts --fix",
"lint": "yarn lint:l1 && yarn lint:l2 && yarn lint:ts"
"check-lint:ts": "eslint . --ext .ts",
"lint": "yarn lint:l1 && yarn lint:l2 && yarn lint:ts",
"check-lint": "yarn check-lint:l1 && yarn check-lint:l2 && yarn check-lint:ts"
},
"dependencies": {
"@gnosis.pm/safe-contracts": "^1.3.0",
Expand Down

0 comments on commit 4847a0c

Please sign in to comment.