Skip to content

Commit

Permalink
workflow: modify lint script
Browse files Browse the repository at this point in the history
  • Loading branch information
cloydlau committed Apr 7, 2024
1 parent f755ccf commit 0dd0bcc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@
"doc": "vitepress dev --open /README",
"build": "vite build",
"release": "esno ./scripts/release.mts",
"lint": "eslint \"**/*.{vue,js,ts,mjs,mts,jsx,tsx,md,json}\"",
"lint:fix": "eslint \"**/*.{vue,js,ts,mjs,mts,jsx,tsx,md,json}\" --fix",
"lint": "eslint \"**/*.{js,mjs,cjs,jsx,ts,mts,cts,tsx,vue,json,md}\"",
"lint:fix": "eslint \"**/*.{js,mjs,cjs,jsx,ts,mts,cts,tsx,vue,json,md}\" --fix",
"preinstall": "node -e \"if (process.env.INIT_CWD === process.cwd()) { process.exit(1) }\" || npx only-allow pnpm",
"postinstall": "node -e \"if (process.env.INIT_CWD === process.cwd()) { process.exit(1) }\" || npx simple-git-hooks"
},
Expand Down Expand Up @@ -126,6 +126,6 @@
"lint-staged": {
"*.md": "case-police --fix",
"docs/README.zh-CN.md": "zhlint --fix",
"*.{vue,js,ts,mjs,mts,jsx,tsx,md,json}": "eslint --cache --fix"
"*.{js,mjs,cjs,jsx,ts,mts,cts,tsx,vue,json,md}": "eslint --cache --fix"
}
}

0 comments on commit 0dd0bcc

Please sign in to comment.