@ntnyq/eslint-config 3.1.0 → 3.1.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
@@ -810,6 +810,21 @@ var sort = (options = {}) => {
810
810
  }
811
811
  );
812
812
  }
813
+ if (options.pnpmWorkspace ?? true) {
814
+ configs.push({
815
+ name: "ntnyq/sort/pnpm-workspace",
816
+ files: ["**/pnpm-workspace.yaml"],
817
+ rules: {
818
+ "yml/sort-keys": [
819
+ "error",
820
+ {
821
+ pathPattern: ".*",
822
+ order: { type: "asc" }
823
+ }
824
+ ]
825
+ }
826
+ });
827
+ }
813
828
  return configs;
814
829
  };
815
830
 
@@ -1333,12 +1348,15 @@ var prettier = (options = {}) => {
1333
1348
 
1334
1349
  // src/configs/gitignore.ts
1335
1350
  import createGitIgnoreConfig from "eslint-config-flat-gitignore";
1336
- var gitignore = (options = {}) => [
1337
- {
1338
- ...createGitIgnoreConfig(options),
1339
- name: "ntnyq/gitignore"
1340
- }
1341
- ];
1351
+ var gitignore = (options = {}) => {
1352
+ options.strict ??= false;
1353
+ return [
1354
+ {
1355
+ ...createGitIgnoreConfig(options),
1356
+ name: "ntnyq/gitignore"
1357
+ }
1358
+ ];
1359
+ };
1342
1360
 
1343
1361
  // src/configs/javascript.ts
1344
1362
  import jsConfig from "@eslint/js";
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@ntnyq/eslint-config",
3
3
  "type": "module",
4
- "version": "3.1.0",
5
- "packageManager": "pnpm@9.12.2",
4
+ "version": "3.1.2",
5
+ "packageManager": "pnpm@9.12.3",
6
6
  "description": "An opinionated ESLint config preset of ntnyq",
7
7
  "keywords": [
8
8
  "eslint",
@@ -55,21 +55,21 @@
55
55
  "eslint": "^9.0.0"
56
56
  },
57
57
  "dependencies": {
58
- "@eslint-community/eslint-plugin-eslint-comments": "^4.4.0",
59
- "@eslint/js": "^9.12.0",
58
+ "@eslint-community/eslint-plugin-eslint-comments": "^4.4.1",
59
+ "@eslint/js": "^9.13.0",
60
60
  "@eslint/markdown": "^6.2.1",
61
61
  "@types/eslint__js": "^8.42.3",
62
- "@unocss/eslint-plugin": "^0.63.4",
62
+ "@unocss/eslint-plugin": "^0.63.6",
63
63
  "@vitest/eslint-plugin": "^1.1.7",
64
64
  "eslint-config-flat-gitignore": "^0.3.0",
65
65
  "eslint-flat-config-utils": "^0.4.0",
66
66
  "eslint-merge-processors": "^0.1.0",
67
67
  "eslint-plugin-antfu": "^2.7.0",
68
68
  "eslint-plugin-command": "^0.2.6",
69
- "eslint-plugin-import-x": "^4.3.1",
69
+ "eslint-plugin-import-x": "^4.4.0",
70
70
  "eslint-plugin-jsdoc": "^50.4.3",
71
71
  "eslint-plugin-jsonc": "^2.16.0",
72
- "eslint-plugin-n": "^17.11.1",
72
+ "eslint-plugin-n": "^17.12.0",
73
73
  "eslint-plugin-ntnyq": "^0.5.0",
74
74
  "eslint-plugin-perfectionist": "^3.9.1",
75
75
  "eslint-plugin-prettier": "^5.2.1",
@@ -77,30 +77,30 @@
77
77
  "eslint-plugin-toml": "^0.11.1",
78
78
  "eslint-plugin-unicorn": "^56.0.0",
79
79
  "eslint-plugin-unused-imports": "^4.1.4",
80
- "eslint-plugin-vue": "^9.29.0",
81
- "eslint-plugin-yml": "^1.14.0",
80
+ "eslint-plugin-vue": "^9.30.0",
81
+ "eslint-plugin-yml": "^1.15.0",
82
82
  "globals": "^15.11.0",
83
83
  "jsonc-eslint-parser": "^2.4.0",
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.10.0",
87
+ "typescript-eslint": "^8.12.2",
88
88
  "vue-eslint-parser": "^9.4.3",
89
89
  "yaml-eslint-parser": "^1.2.3"
90
90
  },
91
91
  "devDependencies": {
92
92
  "@ntnyq/prettier-config": "^1.21.3",
93
- "@types/node": "^22.7.6",
94
- "bumpp": "^9.7.1",
95
- "eslint": "^9.12.0",
93
+ "@types/node": "^22.8.6",
94
+ "bumpp": "^9.8.0",
95
+ "eslint": "^9.13.0",
96
96
  "eslint-typegen": "^0.3.2",
97
97
  "husky": "^9.1.6",
98
98
  "jiti": "^2.3.3",
99
99
  "nano-staged": "^0.8.0",
100
- "npm-run-all2": "^6.2.4",
100
+ "npm-run-all2": "^7.0.1",
101
101
  "rimraf": "^6.0.1",
102
- "tsup": "^8.3.0",
103
- "tsx": "^4.19.1",
102
+ "tsup": "^8.3.5",
103
+ "tsx": "^4.19.2",
104
104
  "typescript": "^5.6.3",
105
105
  "zx": "^8.1.9"
106
106
  },