@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.js CHANGED
@@ -785,30 +785,34 @@ var sort = (options = {}) => {
785
785
  });
786
786
  }
787
787
  if (options.i18nLocale ?? true) {
788
- configs.push({
789
- name: "ntnyq/sort/i18n-locale",
790
- files: ["**/{locales,i18n}/*.json", "**/{locales,i18n}/*.y?(a)ml"],
791
- plugins: {
792
- jsonc: default10,
793
- yml: default4
788
+ configs.push(
789
+ {
790
+ name: "ntnyq/sort/i18n-locale/json",
791
+ files: ["**/{locales,i18n}/*.json"],
792
+ rules: {
793
+ "jsonc/sort-keys": [
794
+ "error",
795
+ {
796
+ pathPattern: ".*",
797
+ order: { type: "asc" }
798
+ }
799
+ ]
800
+ }
794
801
  },
795
- rules: {
796
- "jsonc/sort-keys": [
797
- "error",
798
- {
799
- pathPattern: ".*",
800
- order: { type: "asc" }
801
- }
802
- ],
803
- "yml/sort-keys": [
804
- "error",
805
- {
806
- pathPattern: ".*",
807
- order: { type: "asc" }
808
- }
809
- ]
802
+ {
803
+ name: "ntnyq/sort/i18n-locale/yaml",
804
+ files: ["**/{locales,i18n}/*.y?(a)ml"],
805
+ rules: {
806
+ "yml/sort-keys": [
807
+ "error",
808
+ {
809
+ pathPattern: ".*",
810
+ order: { type: "asc" }
811
+ }
812
+ ]
813
+ }
810
814
  }
811
- });
815
+ );
812
816
  }
813
817
  return configs;
814
818
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ntnyq/eslint-config",
3
3
  "type": "module",
4
- "version": "3.0.1",
4
+ "version": "3.0.2",
5
5
  "packageManager": "pnpm@9.12.1",
6
6
  "description": "An opinionated ESLint config preset of ntnyq",
7
7
  "keywords": [
@@ -67,11 +67,11 @@
67
67
  "eslint-plugin-antfu": "^2.7.0",
68
68
  "eslint-plugin-command": "^0.2.6",
69
69
  "eslint-plugin-import-x": "^4.3.1",
70
- "eslint-plugin-jsdoc": "^50.3.2",
70
+ "eslint-plugin-jsdoc": "^50.4.1",
71
71
  "eslint-plugin-jsonc": "^2.16.0",
72
72
  "eslint-plugin-n": "^17.11.1",
73
73
  "eslint-plugin-ntnyq": "^0.5.0",
74
- "eslint-plugin-perfectionist": "^3.8.0",
74
+ "eslint-plugin-perfectionist": "^3.9.0",
75
75
  "eslint-plugin-prettier": "^5.2.1",
76
76
  "eslint-plugin-regexp": "^2.6.0",
77
77
  "eslint-plugin-toml": "^0.11.1",
@@ -84,7 +84,7 @@
84
84
  "local-pkg": "^0.5.0",
85
85
  "prettier": "^3.3.3",
86
86
  "toml-eslint-parser": "^0.10.0",
87
- "typescript-eslint": "^8.8.1",
87
+ "typescript-eslint": "^8.9.0",
88
88
  "vue-eslint-parser": "^9.4.3",
89
89
  "yaml-eslint-parser": "^1.2.3"
90
90
  },