feat(eslint): 添加 jsonc 插件并启用 JSON 文件键排序规则
All checks were successful
CI/CD Pipeline / playwright (push) Successful in 4m53s
CI/CD Pipeline / build-and-deploy (push) Successful in 4m55s
测试最新依赖 / playwright (push) Successful in 2m1s
测试最新依赖 / build-and-test (push) Successful in 2m35s

新增 `eslint-plugin-jsonc` 插件,并在 `.json` 文件中启用 `jsonc/sort-keys` 规则,
以确保本地化文件中的键名按字母顺序排列。此举有助于减少多人协作时的合并冲突,
同时提升代码一致性和可维护性。

此外,调整了 VS Code 配置项顺序以优化读写逻辑,并更新相关依赖版本。
This commit is contained in:
严浩
2025-11-04 00:52:22 +08:00
parent acd7c0db13
commit 6e915a5977
6 changed files with 99 additions and 20 deletions

View File

@@ -1,10 +1,10 @@
{
"page": {
"i18n-demo": {
"title": "Vue I18n Demo",
"current-language": "Current Language",
"change-language": "Change Language",
"hello": "Hello, {name}!"
"current-language": "Current Language",
"hello": "Hello, {name}!",
"title": "Vue I18n Demo"
}
}
}

View File

@@ -1,10 +1,10 @@
{
"page": {
"i18n-demo": {
"title": "Vue I18n 示例",
"current-language": "当前语言",
"change-language": "切换语言",
"hello": "你好, {name}"
"current-language": "当前语言",
"hello": "你好, {name}",
"title": "Vue I18n 示例"
}
}
}