@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 CHANGED
@@ -910,30 +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
- plugins: {
917
- jsonc: import_eslint_plugin_jsonc.default,
918
- yml: import_eslint_plugin_yml.default
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
- rules: {
921
- "jsonc/sort-keys": [
922
- "error",
923
- {
924
- pathPattern: ".*",
925
- order: { type: "asc" }
926
- }
927
- ],
928
- "yml/sort-keys": [
929
- "error",
930
- {
931
- pathPattern: ".*",
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
  };