Skip to content

Commit f3b9ed6

Browse files
committed
chore: 添加 eslint-plugin-svelte 并更新 oxlint 配置
在 .oxlintrc.json 中新增 eslint、unicorn、oxc 插件,并添加 jsPlugins: ["eslint-plugin-svelte"],以支持 Svelte 文件的 ESLint 检查;同时在 package.json 中引入 eslint-plugin-svelte 依赖,便于在项目中启用 svelte linting。此改动用于增强代码检查覆盖,改善 Svelte 文件的静态分析体验。
1 parent 3c17e1d commit f3b9ed6

3 files changed

Lines changed: 690 additions & 1 deletion

File tree

.oxlintrc.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
{
22
"$schema": "./node_modules/oxlint/configuration_schema.json",
33
"plugins": [
4-
"typescript"
4+
"typescript",
5+
"eslint",
6+
"unicorn",
7+
"oxc"
58
],
9+
"jsPlugins": ["eslint-plugin-svelte"],
610
"categories": {},
711
"rules": {
812
"no-undef": "off"

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
"@sveltejs/vite-plugin-svelte": "^6.2.4",
1919
"@tailwindcss/vite": "^4.2.1",
2020
"@types/node": "^25.3.2",
21+
"eslint-plugin-svelte": "^3.15.0",
2122
"globals": "^17.3.0",
2223
"oxlint": "^1.50.0",
2324
"svelte": "^5.53.6",

0 commit comments

Comments
 (0)