diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index ca877ddfc..a09b05bb5 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -42,4 +42,4 @@ jobs: run: pip install -r requirements.txt - name: Run linters - run: yarn lint + run: yarn check-lint diff --git a/package.json b/package.json index 224d231e3..c02eca688 100644 --- a/package.json +++ b/package.json @@ -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",