chore: update lint and format scripts
This commit is contained in:
parent
e3be0e92cb
commit
4860085aef
1 changed files with 6 additions and 5 deletions
11
package.json
11
package.json
|
|
@ -11,8 +11,9 @@
|
||||||
"preview": "astro preview",
|
"preview": "astro preview",
|
||||||
"lint": "eslint . --config eslint.config.mjs --cache",
|
"lint": "eslint . --config eslint.config.mjs --cache",
|
||||||
"lint:fix": "eslint . --config eslint.config.mjs --fix",
|
"lint:fix": "eslint . --config eslint.config.mjs --fix",
|
||||||
"format": "prettier . --write",
|
"fmt": "prettier . --config prettier.config.mjs --check",
|
||||||
"check": "npm run format && npm run lint",
|
"fmt:fix": "prettier . --config prettier.config.mjs --write",
|
||||||
|
"check": "npm run fmt && npm run lint",
|
||||||
"deploy": "eval $(grep '^HOST' .env) && scp -r dist ayo@$HOST:~/ayco.io-flask",
|
"deploy": "eval $(grep '^HOST' .env) && scp -r dist ayo@$HOST:~/ayco.io-flask",
|
||||||
"patch:build:deploy": "npm version patch && npm run build && npm run deploy",
|
"patch:build:deploy": "npm version patch && npm run build && npm run deploy",
|
||||||
"pbd": "npm run patch:build:deploy",
|
"pbd": "npm run patch:build:deploy",
|
||||||
|
|
@ -61,11 +62,11 @@
|
||||||
},
|
},
|
||||||
"lint-staged": {
|
"lint-staged": {
|
||||||
"*.{js,mjs,astro,ts}": [
|
"*.{js,mjs,astro,ts}": [
|
||||||
"prettier --write",
|
"prettier . --config prettier.config.mjs --write",
|
||||||
"eslint --fix"
|
"eslint . --config eslint.config.mjs --fix"
|
||||||
],
|
],
|
||||||
"*.json": [
|
"*.json": [
|
||||||
"prettier --write"
|
"prettier . --config prettier.config.mjs --write"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"packageManager": "pnpm@11.2.2",
|
"packageManager": "pnpm@11.2.2",
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue