@luxass/eslint-config 4.2.11 → 4.2.12

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/README.md CHANGED
@@ -225,7 +225,7 @@ Since flat config requires us to explicitly provide the plugin names (instead of
225
225
 
226
226
  | New Prefix | Original Prefix | Source Plugin |
227
227
  | ---------- | ---------------------- | ------------------------------------------------------------------------------------------ |
228
- | `import/*` | `i/*` | [eslint-plugin-i](https://github.com/un-es/eslint-plugin-i) |
228
+ | `import/*` | `import-x/*` | [eslint-plugin-import-x](https://github.com/un-es/eslint-plugin-import-x) |
229
229
  | `node/*` | `n/*` | [eslint-plugin-n](https://github.com/eslint-community/eslint-plugin-n) |
230
230
  | `yaml/*` | `yml/*` | [eslint-plugin-yml](https://github.com/ota-meshi/eslint-plugin-yml) |
231
231
  | `ts/*` | `@typescript-eslint/*` | [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint) |
package/dist/index.cjs CHANGED
@@ -365,6 +365,22 @@ function sortPackageJson() {
365
365
  {
366
366
  order: ["types", "import", "require", "default"],
367
367
  pathPattern: "^exports.*$"
368
+ },
369
+ {
370
+ order: [
371
+ // client hooks only
372
+ "pre-commit",
373
+ "prepare-commit-msg",
374
+ "commit-msg",
375
+ "post-commit",
376
+ "pre-rebase",
377
+ "post-rewrite",
378
+ "post-checkout",
379
+ "post-merge",
380
+ "pre-push",
381
+ "pre-auto-gc"
382
+ ],
383
+ pathPattern: "^(?:gitHooks|husky|simple-git-hooks)$"
368
384
  }
369
385
  ]
370
386
  }
@@ -498,7 +514,7 @@ function sortTsconfig() {
498
514
  }
499
515
 
500
516
  // src/configs/imports.ts
501
- var import_eslint_plugin_i = __toESM(require("eslint-plugin-i"), 1);
517
+ var import_eslint_plugin_import_x = __toESM(require("eslint-plugin-import-x"), 1);
502
518
  var import_eslint_plugin_antfu = __toESM(require("eslint-plugin-antfu"), 1);
503
519
  async function imports(options = {}) {
504
520
  const {
@@ -509,7 +525,7 @@ async function imports(options = {}) {
509
525
  name: "luxass:imports",
510
526
  plugins: {
511
527
  antfu: import_eslint_plugin_antfu.default,
512
- import: import_eslint_plugin_i.default
528
+ import: import_eslint_plugin_import_x.default
513
529
  },
514
530
  rules: {
515
531
  "antfu/import-dedupe": "error",
package/dist/index.js CHANGED
@@ -273,6 +273,22 @@ function sortPackageJson() {
273
273
  {
274
274
  order: ["types", "import", "require", "default"],
275
275
  pathPattern: "^exports.*$"
276
+ },
277
+ {
278
+ order: [
279
+ // client hooks only
280
+ "pre-commit",
281
+ "prepare-commit-msg",
282
+ "commit-msg",
283
+ "post-commit",
284
+ "pre-rebase",
285
+ "post-rewrite",
286
+ "post-checkout",
287
+ "post-merge",
288
+ "pre-push",
289
+ "pre-auto-gc"
290
+ ],
291
+ pathPattern: "^(?:gitHooks|husky|simple-git-hooks)$"
276
292
  }
277
293
  ]
278
294
  }
@@ -406,7 +422,7 @@ function sortTsconfig() {
406
422
  }
407
423
 
408
424
  // src/configs/imports.ts
409
- import pluginImport from "eslint-plugin-i";
425
+ import pluginImport from "eslint-plugin-import-x";
410
426
  import pluginAntfu from "eslint-plugin-antfu";
411
427
  async function imports(options = {}) {
412
428
  const {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@luxass/eslint-config",
3
- "version": "4.2.11",
3
+ "version": "4.2.12",
4
4
  "description": "ESLint config for @luxass",
5
5
  "type": "module",
6
6
  "author": {
@@ -104,7 +104,7 @@
104
104
  "eslint-merge-processors": "^0.1.0",
105
105
  "eslint-parser-plain": "^0.1.0",
106
106
  "eslint-plugin-antfu": "^2.1.2",
107
- "eslint-plugin-i": "^2.29.1",
107
+ "eslint-plugin-import-x": "^0.4.1",
108
108
  "eslint-plugin-jsdoc": "^48.2.1",
109
109
  "eslint-plugin-jsonc": "^2.13.0",
110
110
  "eslint-plugin-jsx-a11y": "^6.8.0",