Skip to content

Commit 0dd0bcc

Browse files
committed
workflow: modify lint script
1 parent f755ccf commit 0dd0bcc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@
5757
"doc": "vitepress dev --open /README",
5858
"build": "vite build",
5959
"release": "esno ./scripts/release.mts",
60-
"lint": "eslint \"**/*.{vue,js,ts,mjs,mts,jsx,tsx,md,json}\"",
61-
"lint:fix": "eslint \"**/*.{vue,js,ts,mjs,mts,jsx,tsx,md,json}\" --fix",
60+
"lint": "eslint \"**/*.{js,mjs,cjs,jsx,ts,mts,cts,tsx,vue,json,md}\"",
61+
"lint:fix": "eslint \"**/*.{js,mjs,cjs,jsx,ts,mts,cts,tsx,vue,json,md}\" --fix",
6262
"preinstall": "node -e \"if (process.env.INIT_CWD === process.cwd()) { process.exit(1) }\" || npx only-allow pnpm",
6363
"postinstall": "node -e \"if (process.env.INIT_CWD === process.cwd()) { process.exit(1) }\" || npx simple-git-hooks"
6464
},
@@ -126,6 +126,6 @@
126126
"lint-staged": {
127127
"*.md": "case-police --fix",
128128
"docs/README.zh-CN.md": "zhlint --fix",
129-
"*.{vue,js,ts,mjs,mts,jsx,tsx,md,json}": "eslint --cache --fix"
129+
"*.{js,mjs,cjs,jsx,ts,mts,cts,tsx,vue,json,md}": "eslint --cache --fix"
130130
}
131131
}

0 commit comments

Comments
 (0)