Skip to content

Commit 02b914b

Browse files
authored
Align linting scripts, add turbo lint:fix task (#149)
1 parent bc3e734 commit 02b914b

7 files changed

Lines changed: 14 additions & 15 deletions

File tree

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
"format": "prettier --write \"**/*.{ts,tsx,md}\"",
2222
"generate:abi": "cd ./shared/abi/scripts && ./generate-abi.sh",
2323
"lint": "turbo lint",
24+
"lint:fix": "turbo lint:fix",
2425
"test": "turbo run test --filter='!./packages/delegator-e2e'",
2526
"test:e2e": "turbo run test:e2e --filter='./packages/delegator-e2e'",
2627
"test:external": "cd packages/delegator-e2e && yarn test:external",

packages/7715-permission-types/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@
4343
"scripts": {
4444
"build": "yarn typecheck && tsup",
4545
"typecheck": "tsc --noEmit",
46-
"lint": "eslint . --cache --ext js,ts",
46+
"lint": "yarn lint:eslint",
47+
"lint:eslint": "eslint . --cache --ext js,ts",
48+
"lint:fix": "yarn lint:eslint --fix",
4749
"changelog:update": "../../scripts/update-changelog.sh @metamask/7715-permission-types",
4850
"changelog:validate": "../../scripts/validate-changelog.sh @metamask/7715-permission-types"
4951
},

packages/delegation-abis/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@
5757
"typecheck": "tsc --noEmit",
5858
"changelog:update": "../../scripts/update-changelog.sh @metamask/delegation-abis",
5959
"changelog:validate": "../../scripts/validate-changelog.sh @metamask/delegation-abis",
60-
"clean": "rm -rf dist"
60+
"clean": "rm -rf dist",
61+
"lint": ""
6162
},
6263
"publishConfig": {
6364
"access": "public",

packages/delegation-core/package.json

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,8 @@
5151
"changelog:validate": "../../scripts/validate-changelog.sh @metamask/delegation-core",
5252
"clean": "rm -rf dist",
5353
"lint": "yarn lint:eslint",
54-
"lint:complete": "yarn lint:eslint && yarn lint:constraints && yarn lint:misc --check && yarn lint:dependencies --check && yarn lint:changelog",
55-
"lint:changelog": "auto-changelog validate --prettier",
56-
"lint:constraints": "yarn constraints",
57-
"lint:dependencies": "depcheck && yarn dedupe",
5854
"lint:eslint": "eslint . --cache --ext js,ts",
59-
"lint:fix": "yarn lint:eslint --fix && yarn lint:constraints --fix && yarn lint:misc --write && yarn lint:dependencies && yarn lint:changelog",
60-
"lint:misc": "prettier '**/*.json' '**/*.md' '**/*.yml' '!.yarnrc.yml' --ignore-path .gitignore --no-error-on-unmatched-pattern"
55+
"lint:fix": "yarn lint:eslint --fix"
6156
},
6257
"publishConfig": {
6358
"access": "public",

packages/delegation-deployments/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@
4343
"scripts": {
4444
"build": "yarn typecheck && tsup",
4545
"typecheck": "tsc --noEmit",
46-
"lint": "eslint . --cache --ext js,ts",
46+
"lint": "yarn lint:eslint",
47+
"lint:eslint": "eslint . --cache --ext js,ts",
48+
"lint:fix": "yarn lint:eslint --fix",
4749
"changelog:update": "../../scripts/update-changelog.sh @metamask/delegation-deployments",
4850
"changelog:validate": "../../scripts/validate-changelog.sh @metamask/delegation-deployments",
4951
"validate-latest-contracts": "yarn tsx script/validate-contract-deployments.ts"

packages/smart-accounts-kit/package.json

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -106,13 +106,8 @@
106106
"test:watch": "vitest watch",
107107
"format": "prettier --write \"src/**/*.{ts,tsx}\" --ignore-path .prettierignore",
108108
"lint": "yarn lint:eslint",
109-
"lint:complete": "yarn lint:eslint && yarn lint:constraints && yarn lint:misc --check && yarn lint:dependencies --check && yarn lint:changelog",
110-
"lint:changelog": "auto-changelog validate --prettier",
111-
"lint:constraints": "yarn constraints",
112-
"lint:dependencies": "depcheck && yarn dedupe",
113109
"lint:eslint": "eslint . --cache --ext js,ts",
114-
"lint:fix": "yarn lint:eslint --fix && yarn lint:constraints --fix && yarn lint:misc --write && yarn lint:dependencies && yarn lint:changelog",
115-
"lint:misc": "prettier '**/*.json' '**/*.md' '**/*.yml' '!.yarnrc.yml' --ignore-path .gitignore --no-error-on-unmatched-pattern"
110+
"lint:fix": "yarn lint:eslint --fix"
116111
},
117112
"publishConfig": {
118113
"access": "public",

turbo.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@
2222
"lint": {
2323
"dependsOn": ["^lint"]
2424
},
25+
"lint:fix": {
26+
"dependsOn": ["^lint:fix"]
27+
},
2528
"dev": {
2629
"cache": false,
2730
"persistent": true

0 commit comments

Comments
 (0)