@ntnyq/eslint-config 3.0.1 → 3.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +26 -22
- package/dist/index.d.cts +168 -143
- package/dist/index.d.ts +168 -143
- package/dist/index.js +26 -22
- package/package.json +4 -4
package/dist/index.cjs
CHANGED
|
@@ -910,30 +910,34 @@ var sort = (options = {}) => {
|
|
|
910
910
|
});
|
|
911
911
|
}
|
|
912
912
|
if (options.i18nLocale ?? true) {
|
|
913
|
-
configs.push(
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
913
|
+
configs.push(
|
|
914
|
+
{
|
|
915
|
+
name: "ntnyq/sort/i18n-locale/json",
|
|
916
|
+
files: ["**/{locales,i18n}/*.json"],
|
|
917
|
+
rules: {
|
|
918
|
+
"jsonc/sort-keys": [
|
|
919
|
+
"error",
|
|
920
|
+
{
|
|
921
|
+
pathPattern: ".*",
|
|
922
|
+
order: { type: "asc" }
|
|
923
|
+
}
|
|
924
|
+
]
|
|
925
|
+
}
|
|
919
926
|
},
|
|
920
|
-
|
|
921
|
-
"
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
order: { type: "asc" }
|
|
933
|
-
}
|
|
934
|
-
]
|
|
927
|
+
{
|
|
928
|
+
name: "ntnyq/sort/i18n-locale/yaml",
|
|
929
|
+
files: ["**/{locales,i18n}/*.y?(a)ml"],
|
|
930
|
+
rules: {
|
|
931
|
+
"yml/sort-keys": [
|
|
932
|
+
"error",
|
|
933
|
+
{
|
|
934
|
+
pathPattern: ".*",
|
|
935
|
+
order: { type: "asc" }
|
|
936
|
+
}
|
|
937
|
+
]
|
|
938
|
+
}
|
|
935
939
|
}
|
|
936
|
-
|
|
940
|
+
);
|
|
937
941
|
}
|
|
938
942
|
return configs;
|
|
939
943
|
};
|