mirror of
https://github.com/podman-desktop/podman-desktop
synced 2026-04-21 17:47:22 +00:00
chore: increase memory for eslint and use cache for prettier and eslint (#2930)
Signed-off-by: Florent Benoit <fbenoit@redhat.com>
This commit is contained in:
parent
25b65ba513
commit
2e492860e7
1 changed files with 7 additions and 6 deletions
13
package.json
13
package.json
|
|
@ -57,12 +57,13 @@
|
|||
"test:tools": "vitest run tools --passWithNoTests --coverage",
|
||||
"test:watch": "vitest watch",
|
||||
"watch": "node scripts/watch.cjs",
|
||||
"format:check": "prettier --check \"{extensions,packages,tests,types}/**/*.{ts,svelte}\" \"extensions/*/scripts/build.js\" \"website/**/*.{md,js}\" \"website/src/**/*.{css,tsx}\"",
|
||||
"format:fix": "prettier --write \"{extensions,packages,tests,types,tools}/**/*.{ts,svelte}\" \"extensions/*/scripts/build.js\" \"website/**/*.{md,js}\" \"website/src/**/*.{css,tsx}\"",
|
||||
"format:check": "prettier --cache --check \"{extensions,packages,tests,types}/**/*.{ts,svelte}\" \"extensions/*/scripts/build.js\" \"website/**/*.{md,js}\" \"website/src/**/*.{css,tsx}\"",
|
||||
"format:fix": "prettier --cache --write \"{extensions,packages,tests,types,tools}/**/*.{ts,svelte}\" \"extensions/*/scripts/build.js\" \"website/**/*.{md,js}\" \"website/src/**/*.{css,tsx}\"",
|
||||
"markdownlint:check": "markdownlint-cli2 \"website/**/*.md\" \"#website/node_modules\"",
|
||||
"markdownlint:fix": "markdownlint-cli2-fix \"website/**/*.md\" \"#website/node_modules\"",
|
||||
"lint:check": "eslint . --ext js,ts,tsx,svelte",
|
||||
"lint:fix": "eslint . --fix --ext js,ts,tsx,svelte",
|
||||
"lint:clean": "rimraf .eslintcache",
|
||||
"lint:check": "node --max-old-space-size=4096 node_modules/eslint/bin/eslint.js --cache . --ext js,ts,tsx,svelte",
|
||||
"lint:fix": "node --max-old-space-size=4096 node_modules/eslint/bin/eslint.js --cache . --fix --ext js,ts,tsx,svelte",
|
||||
"svelte:check": "svelte-check",
|
||||
"typecheck:main": "tsc --noEmit -p packages/main/tsconfig.json",
|
||||
"typecheck:preload": "tsc --noEmit -p packages/preload/tsconfig.json",
|
||||
|
|
@ -75,8 +76,8 @@
|
|||
},
|
||||
"lint-staged": {
|
||||
"*.{js,ts,tsx,svelte}": [
|
||||
"eslint --cache --fix",
|
||||
"prettier --write"
|
||||
"node --max-old-space-size=4096 node_modules/eslint/bin/eslint.js --cache --fix",
|
||||
"prettier --cache --write"
|
||||
],
|
||||
"*.{md,css,json}": "prettier --write"
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue