@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.js CHANGED
@@ -785,26 +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
- rules: {
792
- "jsonc/sort-keys": [
793
- "error",
794
- {
795
- pathPattern: ".*",
796
- order: { type: "asc" }
797
- }
798
- ],
799
- "yml/sort-keys": [
800
- "error",
801
- {
802
- pathPattern: ".*",
803
- order: { type: "asc" }
804
- }
805
- ]
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
+ }
801
+ },
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
+ }
806
814
  }
807
- });
815
+ );
808
816
  }
809
817
  return configs;
810
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.0",
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
  },