@jiakun-zhao/eslint-config 4.0.8 → 4.0.9

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.mjs CHANGED
@@ -373,7 +373,7 @@ function jsonc() {
373
373
  ];
374
374
  }
375
375
 
376
- const version = "4.0.8";
376
+ const version = "4.0.9";
377
377
 
378
378
  const name$3 = "astro-multi-top-level-element-indent";
379
379
  const _astroMultiTopLevelElementIndent = createRule({
@@ -393,7 +393,7 @@ const _astroMultiTopLevelElementIndent = createRule({
393
393
  return {
394
394
  AstroFragment(node) {
395
395
  const children = node.children.filter((it) => it.type === "JSXElement" && it.loc.start.column !== 0);
396
- if (!children.length)
396
+ if (children.length === 0)
397
397
  return;
398
398
  context.report({
399
399
  loc: { line: 0, column: 0 },
@@ -512,7 +512,7 @@ const _noSpaceInEmptyObject = createRule({
512
512
  create(context) {
513
513
  return {
514
514
  ObjectExpression(node) {
515
- if (node.properties.length)
515
+ if (node.properties.length > 0)
516
516
  return;
517
517
  const code = context.sourceCode.getText(node);
518
518
  const replaceValue = "{}";
@@ -525,7 +525,7 @@ const _noSpaceInEmptyObject = createRule({
525
525
  }
526
526
  },
527
527
  ExportNamedDeclaration(node) {
528
- if (node.declaration || node.specifiers.length) {
528
+ if (node.declaration || node.specifiers.length > 0) {
529
529
  return;
530
530
  }
531
531
  const code = context.sourceCode.getText(node);
@@ -563,7 +563,8 @@ function mine() {
563
563
  mine: pluginMine
564
564
  },
565
565
  rules: {
566
- "mine/no-space-in-empty-block": "warn"
566
+ // use unicorn/empty-brace-spaces
567
+ // 'mine/no-space-in-empty-block': 'warn',
567
568
  }
568
569
  };
569
570
  }
@@ -576,7 +577,7 @@ function overrides() {
576
577
  name: "override/sort-config-files",
577
578
  files: [
578
579
  ...configFileNames.reduce(
579
- (acc, cur) => acc.concat(...extensions.map((ext) => `${cur}.config.${ext}`)),
580
+ (acc, cur) => [...acc, ...extensions.map((ext) => `${cur}.config.${ext}`)],
580
581
  []
581
582
  )
582
583
  ],
@@ -630,7 +631,8 @@ function perfectionist() {
630
631
  type: "natural"
631
632
  }],
632
633
  "perfectionist/sort-named-exports": ["warn", { order: "asc", type: "natural" }],
633
- "perfectionist/sort-named-imports": ["warn", { order: "asc", type: "natural" }]
634
+ // 'perfectionist/sort-named-imports': ['warn', { order: 'asc', type: 'natural' }],
635
+ "sort-imports": ["warn", { ignoreCase: false, ignoreDeclarationSort: true, ignoreMemberSort: false }]
634
636
  }
635
637
  };
636
638
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@jiakun-zhao/eslint-config",
3
3
  "type": "module",
4
- "version": "4.0.8",
4
+ "version": "4.0.9",
5
5
  "description": "Jiakun Zhao's ESLint config.",
6
6
  "author": "Jiakun Zhao <hi@zhaojiakun.com>",
7
7
  "license": "MIT",
@@ -56,7 +56,7 @@
56
56
  "@types/node": "^22.14.1",
57
57
  "@typescript-eslint/types": "^8.30.1",
58
58
  "bumpp": "^10.1.0",
59
- "eslint": "^9.24.0",
59
+ "eslint": "^9.25.0",
60
60
  "eslint-plugin-astro": "^1.3.1",
61
61
  "eslint-plugin-vue": "^10.0.0",
62
62
  "eslint-typegen": "^2.1.0",