Skip to content

Commit

Permalink
更新 ESLint 配置,并更新依赖版本
Browse files Browse the repository at this point in the history
  • Loading branch information
lvzhenbo committed Nov 26, 2024
1 parent ef0961b commit dabacb8
Show file tree
Hide file tree
Showing 3 changed files with 659 additions and 658 deletions.
24 changes: 16 additions & 8 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,13 @@ import AutoImport from './.eslintrc-auto-import.json' with { type: 'json' };
import markdown from '@eslint/markdown';

export default defineFlatConfig([
...pluginVue.configs['flat/recommended'],
js.configs.recommended,
{
name: 'app/all-js&ts-files',
files: ['**/*.{js,mjs,cjs,jsx,ts,mts,tsx,vue}'],
rules: {
...js.configs.recommended.rules,
},
},
...vueTsEslintConfig({
supportedScriptLangs: {
ts: true,
Expand All @@ -25,6 +30,9 @@ export default defineFlatConfig([
ecmaVersion: 'latest',
},
},
rules: {
...pluginVue.configs['flat/recommended'].rules,
},
},
{
name: 'app/files-to-lint',
Expand Down Expand Up @@ -60,11 +68,6 @@ export default defineFlatConfig([
],
},
},
{
name: 'app/files-to-ignore',
ignores: ['**/dist/**', '**/dist-ssr/**', '**/coverage/**'],
},
prettierConfig,
{
name: 'app/markdown-files',
files: ['**/*.md'],
Expand All @@ -73,7 +76,12 @@ export default defineFlatConfig([
},
language: 'markdown/commonmark',
rules: {
'markdown/no-html': 'error',
// 'markdown/no-html': 'error',
},
},
prettierConfig,
{
name: 'app/files-to-ignore',
ignores: ['**/dist/**', '**/dist-ssr/**', '**/coverage/**'],
},
]);
32 changes: 16 additions & 16 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,38 +15,38 @@
"@vicons/antd": "^0.12.0",
"destr": "^2.0.3",
"highlight.js": "^11.10.0",
"naive-ui": "^2.40.1",
"vue": "^3.5.12"
"naive-ui": "^2.40.2",
"vue": "^3.5.13"
},
"devDependencies": {
"@crxjs/vite-plugin": "2.0.0-beta.28",
"@eslint/js": "^9.14.0",
"@eslint/js": "^9.15.0",
"@eslint/markdown": "^6.2.1",
"@rushstack/eslint-patch": "^1.10.4",
"@tsconfig/node18": "^18.2.4",
"@types/chrome": "^0.0.280",
"@types/node": "^22.9.0",
"@vitejs/plugin-vue": "^5.1.4",
"@vitejs/plugin-vue-jsx": "^4.0.1",
"@types/chrome": "^0.0.285",
"@types/node": "^22.9.4",
"@vitejs/plugin-vue": "^5.2.0",
"@vitejs/plugin-vue-jsx": "^4.1.0",
"@vue/eslint-config-prettier": "^10.1.0",
"@vue/eslint-config-typescript": "^14.1.3",
"@vue/tsconfig": "^0.5.1",
"@vue/eslint-config-typescript": "^14.1.4",
"@vue/tsconfig": "^0.6.0",
"autoprefixer": "^10.4.20",
"eslint": "^9.14.0",
"eslint": "^9.15.0",
"eslint-define-config": "^2.1.0",
"eslint-plugin-vue": "^9.30.0",
"eslint-plugin-vue": "^9.31.0",
"npm-run-all2": "^7.0.1",
"postcss": "^8.4.47",
"postcss": "^8.4.49",
"prettier": "^3.3.3",
"rollup-plugin-visualizer": "^5.12.0",
"tailwindcss": "^3.4.14",
"tailwindcss": "^3.4.15",
"typescript": "~5.6.3",
"unplugin-auto-import": "^0.18.3",
"unplugin-auto-import": "^0.18.5",
"unplugin-compression": "^0.0.6",
"unplugin-vue-components": "^0.27.4",
"vite": "^5.4.10",
"vite": "^5.4.11",
"vue-eslint-parser": "^9.4.3",
"vue-tsc": "^2.1.10"
},
"packageManager": "pnpm@9.12.2+sha512.22721b3a11f81661ae1ec68ce1a7b879425a1ca5b991c975b074ac220b187ce56c708fe5db69f4c962c989452eee76c82877f4ee80f474cebd61ee13461b6228"
"packageManager": "pnpm@10.0.0-alpha.4+sha512.a766482ed7e5802db8966144e1de4918a71bc6b0f11d65d21fc719ce23fe6af38f527ae3b97e826f2378126f620b4d8950d1a990862c8666506cff017ee1d4cc"
}
Loading

0 comments on commit dabacb8

Please sign in to comment.