feat(eslint): 添加 jsonc 插件并启用 JSON 文件键排序规则
新增 `eslint-plugin-jsonc` 插件,并在 `.json` 文件中启用 `jsonc/sort-keys` 规则, 以确保本地化文件中的键名按字母顺序排列。此举有助于减少多人协作时的合并冲突, 同时提升代码一致性和可维护性。 此外,调整了 VS Code 配置项顺序以优化读写逻辑,并更新相关依赖版本。
This commit is contained in:
7
.vscode/settings.json
vendored
7
.vscode/settings.json
vendored
@@ -6,22 +6,23 @@
|
||||
"source.fixAll.oxc": "explicit",
|
||||
"source.organizeImports": "never"
|
||||
},
|
||||
"eslint.enable": true,
|
||||
"stylelint.enable": true,
|
||||
"oxc.enable": true,
|
||||
"editor.formatOnSave": true,
|
||||
|
||||
"stylelint.enable": true,
|
||||
"stylelint.validate": ["css", "less", "postcss", "scss", "vue"],
|
||||
"scss.lint.unknownAtRules": "ignore",
|
||||
"css.lint.unknownAtRules": "ignore",
|
||||
"less.lint.unknownAtRules": "ignore",
|
||||
|
||||
"eslint.enable": true,
|
||||
"oxc.enable": true,
|
||||
"[vue]": {
|
||||
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
||||
},
|
||||
"editor.defaultFormatter": "esbenp.prettier-vscode",
|
||||
|
||||
// >>>>>
|
||||
"i18n-ally.readonly": true,
|
||||
"i18n-ally.namespace": false /* 禁用命名空间(@intlify/unplugin-vue-i18n不支持吧?) */,
|
||||
"i18n-ally.localesPaths": ["src/locales/demo", "src/locales"],
|
||||
// https://github.com/lokalise/i18n-ally/wiki/Path-Matcher
|
||||
|
||||
Reference in New Issue
Block a user