-
Notifications
You must be signed in to change notification settings - Fork 557
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix linting of
package.json
files (#2742)
It seems that our versions of `prettier` and/or `prettier-plugin-packagejson` didn't work properly, because `package.json` files weren't being linted. I've updated both, and now it works again.
- Loading branch information
Showing
50 changed files
with
605 additions
and
604 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,27 +10,27 @@ | |
"packages/*" | ||
], | ||
"scripts": { | ||
"postinstall": "simple-git-hooks", | ||
"build": "ts-bridge --project tsconfig.build.json --verbose && yarn build:examples", | ||
"build:ci": "ts-bridge --project tsconfig.build.json --verbose --clean", | ||
"build:examples": "yarn workspace @metamask/example-snaps build", | ||
"changelog:update": "yarn workspaces foreach --all --parallel --interlaced --verbose run changelog:update", | ||
"changelog:validate": "yarn workspaces foreach --all --parallel --interlaced --verbose run changelog:validate", | ||
"child-workspace-package-names-as-json": "ts-node scripts/child-workspace-package-names-as-json.ts", | ||
"clean": "yarn workspaces foreach --all --parallel --verbose run clean", | ||
"get-release-tag": "ts-node --swc scripts/get-release-tag.ts", | ||
"postinstall": "simple-git-hooks", | ||
"install-chrome": "./scripts/install-chrome.sh", | ||
"lint": "yarn workspaces foreach --all --parallel run lint:eslint && yarn lint:misc --check && yarn lint:tsconfig && yarn constraints && yarn lint:dependencies", | ||
"lint:ci": "yarn lint:eslint && yarn lint:misc --check && yarn lint:tsconfig && yarn constraints && yarn lint:dependencies", | ||
"lint:dependencies": "yarn workspaces foreach --all --parallel --verbose run lint:dependencies && yarn dedupe --check", | ||
"lint:eslint": "eslint . --cache --ext js,jsx,ts,tsx", | ||
"lint:fix": "yarn workspaces foreach --all --parallel run lint:eslint --fix && yarn lint:misc --write && yarn lint:tsconfig && yarn constraints --fix && yarn dedupe", | ||
"lint:misc": "prettier --no-error-on-unmatched-pattern --loglevel warn '**/*.json' '**/*.md' '!**/CHANGELOG.md' '**/*.yml' '**/*.html'", | ||
"lint:dependencies": "yarn workspaces foreach --all --parallel --verbose run lint:dependencies && yarn dedupe --check", | ||
"lint:tsconfig": "node scripts/verify-tsconfig.mjs", | ||
"lint": "yarn workspaces foreach --all --parallel run lint:eslint && yarn lint:misc --check && yarn lint:tsconfig && yarn constraints && yarn lint:dependencies", | ||
"lint:fix": "yarn workspaces foreach --all --parallel run lint:eslint --fix && yarn lint:misc --write && yarn lint:tsconfig && yarn constraints --fix && yarn dedupe", | ||
"lint:ci": "yarn lint:eslint && yarn lint:misc --check && yarn lint:tsconfig && yarn constraints && yarn lint:dependencies", | ||
"build": "ts-bridge --project tsconfig.build.json --verbose && yarn build:examples", | ||
"build:ci": "ts-bridge --project tsconfig.build.json --verbose --clean", | ||
"build:examples": "yarn workspace @metamask/example-snaps build", | ||
"clean": "yarn workspaces foreach --all --parallel --verbose run clean", | ||
"test": "yarn workspaces foreach --all --parallel --verbose run test", | ||
"test:browser": "yarn workspaces foreach --all --verbose run test:browser", | ||
"child-workspace-package-names-as-json": "ts-node scripts/child-workspace-package-names-as-json.ts", | ||
"prepare-preview-builds": "./scripts/prepare-preview-builds.sh", | ||
"publish-previews": "yarn workspaces foreach --all --parallel --verbose run publish:preview", | ||
"install-chrome": "./scripts/install-chrome.sh", | ||
"get-release-tag": "ts-node --swc scripts/get-release-tag.ts", | ||
"test": "yarn workspaces foreach --all --parallel --verbose run test", | ||
"test:browser": "yarn workspaces foreach --all --verbose run test:browser", | ||
"test:e2e": "yarn workspaces foreach --all --verbose --exclude root run test:e2e" | ||
}, | ||
"simple-git-hooks": { | ||
|
@@ -96,15 +96,16 @@ | |
"jest": "^29.0.2", | ||
"lint-staged": "^12.4.1", | ||
"minimatch": "^7.4.1", | ||
"prettier": "^2.7.1", | ||
"prettier-plugin-packagejson": "^2.2.11", | ||
"prettier": "^2.8.8", | ||
"prettier-plugin-packagejson": "^2.5.2", | ||
"rimraf": "^4.1.2", | ||
"semver": "^7.5.4", | ||
"simple-git-hooks": "^2.7.0", | ||
"ts-node": "^10.9.1", | ||
"typescript": "~5.3.3", | ||
"vite": "^4.3.9" | ||
}, | ||
"packageManager": "[email protected]", | ||
"engines": { | ||
"node": "^18.16 || >=20" | ||
}, | ||
|
@@ -121,6 +122,5 @@ | |
"favicons>sharp": true, | ||
"vite>esbuild": true | ||
} | ||
}, | ||
"packageManager": "[email protected]" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.