|
57 | 57 | "doc": "vitepress dev --open /README", |
58 | 58 | "build": "vite build", |
59 | 59 | "release": "esno ./scripts/release.mts", |
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", |
| 60 | + "lint": "eslint \"**/*.{js,mjs,cjs,jsx,ts,mts,cts,tsx,vue,json,md,html,css,scss,sass}\" --ignore-pattern stats.html", |
| 61 | + "lint:fix": "eslint \"**/*.{js,mjs,cjs,jsx,ts,mts,cts,tsx,vue,json,md,html,css,scss,sass}\" --ignore-pattern stats.html --fix", |
62 | 62 | "preinstall": "node -e \"if (process.env.INIT_CWD === process.cwd()) { process.exit(1) }\" || npx only-allow pnpm", |
63 | 63 | "postinstall": "node -e \"if (process.env.INIT_CWD === process.cwd()) { process.exit(1) }\" || npx simple-git-hooks" |
64 | 64 | }, |
|
126 | 126 | "lint-staged": { |
127 | 127 | "*.md": "case-police --fix", |
128 | 128 | "docs/README.zh-CN.md": "zhlint --fix", |
129 | | - "*.{js,mjs,cjs,jsx,ts,mts,cts,tsx,vue,json,md}": "eslint --cache --fix" |
| 129 | + "*.{js,mjs,cjs,jsx,ts,mts,cts,tsx,vue,json,md,html,css,scss,sass}": "eslint --ignore-pattern stats.html --cache --fix" |
130 | 130 | } |
131 | 131 | } |
0 commit comments