@ntnyq/eslint-config 3.0.0 → 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 CHANGED
@@ -910,26 +910,34 @@ var sort = (options = {}) => {
910
910
  });
911
911
  }
912
912
  if (options.i18nLocale ?? true) {
913
- configs.push({
914
- name: "ntnyq/sort/i18n-locale",
915
- files: ["**/{locales,i18n}/*.json", "**/{locales,i18n}/*.y?(a)ml"],
916
- rules: {
917
- "jsonc/sort-keys": [
918
- "error",
919
- {
920
- pathPattern: ".*",
921
- order: { type: "asc" }
922
- }
923
- ],
924
- "yml/sort-keys": [
925
- "error",
926
- {
927
- pathPattern: ".*",
928
- order: { type: "asc" }
929
- }
930
- ]
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
+ }
926
+ },
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
+ }
931
939
  }
932
- });
940
+ );
933
941
  }
934
942
  return configs;
935
943
  };