Skip to content

Commit

Permalink
fix(eslint): json sort key
Browse files Browse the repository at this point in the history
Signed-off-by: Innei <i@innei.in>
  • Loading branch information
Innei committed Sep 22, 2024
1 parent 09d7765 commit 5a81dd6
Show file tree
Hide file tree
Showing 120 changed files with 184 additions and 125 deletions.
13 changes: 6 additions & 7 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// @ts-check
import { defineConfig } from "eslint-config-hyoban"

import recursiveSort from "./plugins/eslint-recursive-sort.js"

export default defineConfig(
{
formatting: false,
Expand Down Expand Up @@ -45,14 +47,11 @@ export default defineConfig(
},
{
files: ["locales/**/*.json"],
plugins: {
"recursive-sort": recursiveSort,
},
rules: {
"jsonc/sort-keys": [
"error",
{
pathPattern: ".*",
order: { type: "asc" },
},
],
"recursive-sort/recursive-sort": "error",
},
},
)
2 changes: 1 addition & 1 deletion locales/app/ar-DZ.json
Original file line number Diff line number Diff line change
Expand Up @@ -204,4 +204,4 @@
"words.user": "المستخدم",
"words.which.all": "الكل",
"words.zero_items": "صفر عناصر"
}
}
2 changes: 1 addition & 1 deletion locales/app/ar-MA.json
Original file line number Diff line number Diff line change
Expand Up @@ -204,4 +204,4 @@
"words.user": "المستخدم",
"words.which.all": "الكل",
"words.zero_items": "صفر عناصر"
}
}
2 changes: 1 addition & 1 deletion locales/app/ar-SA.json
Original file line number Diff line number Diff line change
Expand Up @@ -204,4 +204,4 @@
"words.user": "المستخدم",
"words.which.all": "الكل",
"words.zero_items": "لا توجد عناصر"
}
}
2 changes: 1 addition & 1 deletion locales/app/ar-iq.json
Original file line number Diff line number Diff line change
Expand Up @@ -207,4 +207,4 @@
"words.user": "المستخدم",
"words.which.all": "الكل",
"words.zero_items": "لا توجد عناصر"
}
}
2 changes: 1 addition & 1 deletion locales/app/ar-kw.json
Original file line number Diff line number Diff line change
Expand Up @@ -207,4 +207,4 @@
"words.user": "المستخدم",
"words.which.all": "الكل",
"words.zero_items": "صفر عناصر"
}
}
2 changes: 1 addition & 1 deletion locales/app/ar-tn.json
Original file line number Diff line number Diff line change
Expand Up @@ -207,4 +207,4 @@
"words.user": "المستخدم",
"words.which.all": "الكل",
"words.zero_items": "صفر عناصر"
}
}
2 changes: 1 addition & 1 deletion locales/app/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -230,4 +230,4 @@
"words.user": "User",
"words.which.all": "all",
"words.zero_items": "Zero items"
}
}
2 changes: 1 addition & 1 deletion locales/app/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -134,4 +134,4 @@
"words.user": "Usuario",
"words.which.all": "Todo",
"words.zero_items": "Sin contenido"
}
}
2 changes: 1 addition & 1 deletion locales/app/fi.json
Original file line number Diff line number Diff line change
Expand Up @@ -204,4 +204,4 @@
"words.user": "Käyttäjä",
"words.which.all": "kaikki",
"words.zero_items": "Ei kohteita"
}
}
2 changes: 1 addition & 1 deletion locales/app/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -204,4 +204,4 @@
"words.user": "Utilisateur",
"words.which.all": "tous",
"words.zero_items": "Zéro élément"
}
}
2 changes: 1 addition & 1 deletion locales/app/it.json
Original file line number Diff line number Diff line change
Expand Up @@ -204,4 +204,4 @@
"words.user": "Utente",
"words.which.all": "tutti",
"words.zero_items": "Zero elementi"
}
}
2 changes: 1 addition & 1 deletion locales/app/ja.json
Original file line number Diff line number Diff line change
Expand Up @@ -203,4 +203,4 @@
"words.user": "ユーザー",
"words.which.all": "すべて",
"words.zero_items": "アイテムがありません"
}
}
2 changes: 1 addition & 1 deletion locales/app/pt.json
Original file line number Diff line number Diff line change
Expand Up @@ -203,4 +203,4 @@
"words.user": "ユーザー",
"words.which.all": "すべて",
"words.zero_items": "アイテムがありません"
}
}
2 changes: 1 addition & 1 deletion locales/app/ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -204,4 +204,4 @@
"words.user": "Пользователь",
"words.which.all": "все",
"words.zero_items": "Нет элементов"
}
}
2 changes: 1 addition & 1 deletion locales/app/zh-CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -230,4 +230,4 @@
"words.user": "用户",
"words.which.all": "全部",
"words.zero_items": "没有内容"
}
}
2 changes: 1 addition & 1 deletion locales/app/zh-HK.json
Original file line number Diff line number Diff line change
Expand Up @@ -207,4 +207,4 @@
"words.user": "用戶",
"words.which.all": "所有",
"words.zero_items": "零項目"
}
}
2 changes: 1 addition & 1 deletion locales/app/zh-TW.json
Original file line number Diff line number Diff line change
Expand Up @@ -228,4 +228,4 @@
"words.user": "使用者",
"words.which.all": "全部",
"words.zero_items": "沒有內容"
}
}
2 changes: 1 addition & 1 deletion locales/common/ar-DZ.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@
"words.result_other": "نتائج",
"words.space": " ",
"words.which.all": "الكل"
}
}
2 changes: 1 addition & 1 deletion locales/common/ar-IQ.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@
"words.result_other": "نتائج",
"words.space": " ",
"words.which.all": "الكل"
}
}
2 changes: 1 addition & 1 deletion locales/common/ar-KW.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@
"words.result_other": "نتائج",
"words.space": " ",
"words.which.all": "الكل"
}
}
2 changes: 1 addition & 1 deletion locales/common/ar-MA.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@
"words.result_other": "نتائج",
"words.space": " ",
"words.which.all": "الكل"
}
}
2 changes: 1 addition & 1 deletion locales/common/ar-SA.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@
"words.result_other": "نتائج",
"words.space": " ",
"words.which.all": "الكل"
}
}
2 changes: 1 addition & 1 deletion locales/common/ar-TN.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@
"words.result_other": "نتائج",
"words.space": " ",
"words.which.all": "الكل"
}
}
2 changes: 1 addition & 1 deletion locales/common/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@
"words.submit": "Submit",
"words.update": "Update",
"words.which.all": "All"
}
}
2 changes: 1 addition & 1 deletion locales/common/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@
"words.result_other": "resultados",
"words.space": " ",
"words.which.all": "Todo"
}
}
2 changes: 1 addition & 1 deletion locales/common/fi.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@
"words.result_other": "tulokset",
"words.space": " ",
"words.which.all": "Kaikki"
}
}
2 changes: 1 addition & 1 deletion locales/common/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@
"words.result_other": "résultats",
"words.space": " ",
"words.which.all": "Tous"
}
}
2 changes: 1 addition & 1 deletion locales/common/it.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@
"words.result_other": "risultati",
"words.space": " ",
"words.which.all": "Tutti"
}
}
2 changes: 1 addition & 1 deletion locales/common/ja.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@
"words.result_other": "結果",
"words.space": "",
"words.which.all": "すべて"
}
}
2 changes: 1 addition & 1 deletion locales/common/pt.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@
"words.result_other": "resultados",
"words.space": " ",
"words.which.all": "Todos"
}
}
2 changes: 1 addition & 1 deletion locales/common/ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@
"words.result_other": "результаты",
"words.space": " ",
"words.which.all": "Все"
}
}
2 changes: 1 addition & 1 deletion locales/common/zh-CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@
"words.result_other": "结果",
"words.space": "",
"words.which.all": "全部"
}
}
2 changes: 1 addition & 1 deletion locales/common/zh-HK.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@
"words.result_other": "結果",
"words.space": " ",
"words.which.all": "全部"
}
}
2 changes: 1 addition & 1 deletion locales/common/zh-TW.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@
"words.result_other": "多筆結果",
"words.space": " ",
"words.which.all": "全部"
}
}
2 changes: 1 addition & 1 deletion locales/errors/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@
"7001": "Invalid setting tab",
"7002": "Invalid setting payload",
"7003": "Setting payload too large"
}
}
2 changes: 1 addition & 1 deletion locales/errors/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@
"7001": "Onglet de paramètre invalide",
"7002": "Contenu de paramètre invalide",
"7003": "Contenu de paramètre trop volumineux"
}
}
2 changes: 1 addition & 1 deletion locales/errors/ja.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@
"7001": "無効な設定タブです",
"7002": "無効な設定ペイロードです",
"7003": "設定ペイロードが大きすぎます"
}
}
2 changes: 1 addition & 1 deletion locales/errors/ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@
"7001": "Неверная вкладка настройки",
"7002": "Неверное содержимое настройки",
"7003": "Содержимое настройки слишком велико"
}
}
2 changes: 1 addition & 1 deletion locales/errors/zh-CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@
"7001": "无效的设置标签",
"7002": "无效的设置负载",
"7003": "设置负载过大"
}
}
2 changes: 1 addition & 1 deletion locales/errors/zh-HK.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@
"7001": "無效的設定標簽",
"7002": "無效的設定負載",
"7003": "設定負載太大"
}
}
2 changes: 1 addition & 1 deletion locales/errors/zh-TW.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@
"7001": "設定標籤無效",
"7002": "設定負載無效",
"7003": "設定負載過大"
}
}
2 changes: 1 addition & 1 deletion locales/external/ar-DZ.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@
"openApp": "افتح {{APP_NAME}}",
"successMessage": "تم الاتصال بنجاح بحساب {{APP_NAME}}."
}
}
}
2 changes: 1 addition & 1 deletion locales/external/ar-MA.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@
"openApp": "افتح {{APP_NAME}}",
"successMessage": "لقد تم الاتصال بنجاح بحسابك على {{APP_NAME}}."
}
}
}
2 changes: 1 addition & 1 deletion locales/external/ar-SA.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@
"openApp": "فتح {{APP_NAME}}",
"successMessage": "تم الاتصال بحساب {{APP_NAME}} بنجاح."
}
}
}
2 changes: 1 addition & 1 deletion locales/external/ar-iq.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@
"openApp": "افتح {{APP_NAME}}",
"successMessage": "تم الاتصال بنجاح بحساب {{APP_NAME}}."
}
}
}
2 changes: 1 addition & 1 deletion locales/external/ar-kw.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@
"openApp": "افتح {{APP_NAME}}",
"successMessage": "تم الاتصال بنجاح بحساب {{APP_NAME}}."
}
}
}
2 changes: 1 addition & 1 deletion locales/external/ar-tn.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@
"openApp": "افتح {{APP_NAME}}",
"successMessage": "تم الاتصال بحساب {{APP_NAME}} بنجاح."
}
}
}
2 changes: 1 addition & 1 deletion locales/external/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@
"redirect.instruction": "Now is the time to open {{APP_NAME}} and safely close this page.",
"redirect.openApp": "Open {{APP_NAME}}",
"redirect.successMessage": "You have successfully connected to {{APP_NAME}} Account."
}
}
2 changes: 1 addition & 1 deletion locales/external/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@
"openApp": "Abrir {{APP_NAME}}",
"successMessage": "Te has conectado exitosamente a la cuenta de {{APP_NAME}}."
}
}
}
2 changes: 1 addition & 1 deletion locales/external/fi.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@
"openApp": "Avaa {{APP_NAME}}",
"successMessage": "Olet onnistuneesti yhdistänyt {{APP_NAME}}-tilisi."
}
}
}
2 changes: 1 addition & 1 deletion locales/external/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@
"openApp": "Ouvrir {{APP_NAME}}",
"successMessage": "Vous vous êtes connecté avec succès à votre compte {{APP_NAME}}."
}
}
}
2 changes: 1 addition & 1 deletion locales/external/it.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@
"openApp": "Apri {{APP_NAME}}",
"successMessage": "Ti sei connesso con successo all'account {{APP_NAME}}."
}
}
}
2 changes: 1 addition & 1 deletion locales/external/ja.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@
"openApp": "{{APP_NAME}}を開く",
"successMessage": "{{APP_NAME}}アカウントに正常に接続されました。"
}
}
}
Loading

0 comments on commit 5a81dd6

Please sign in to comment.