@sxzz/eslint-config 3.8.6 → 3.9.0

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.cjs CHANGED
@@ -117,7 +117,7 @@ var _pluginPerfectionist = __toESM(require("eslint-plugin-perfectionist"), 1);
117
117
  var _pluginUnocss = __toESM(require("@unocss/eslint-plugin"), 1);
118
118
  var _pluginPrettier = __toESM(require("eslint-plugin-prettier"), 1);
119
119
  var _configPrettier = __toESM(require("eslint-config-prettier"), 1);
120
- var pluginImport = __toESM(require("eslint-plugin-i"), 1);
120
+ var pluginImport = __toESM(require("eslint-plugin-import-x"), 1);
121
121
  var pluginJsonc = __toESM(require("eslint-plugin-jsonc"), 1);
122
122
  var pluginUnusedImports = __toESM(require("eslint-plugin-unused-imports"), 1);
123
123
  var pluginYml = __toESM(require("eslint-plugin-yml"), 1);
@@ -464,24 +464,10 @@ var jsonc = [
464
464
 
465
465
  // src/configs/markdown.ts
466
466
  var markdown = [
467
- {
468
- files: [GLOB_MARKDOWN],
469
- plugins: {
470
- markdown: pluginMarkdown
471
- },
472
- processor: "markdown/markdown"
473
- },
467
+ ...pluginMarkdown.configs.recommended,
474
468
  {
475
469
  files: [`${GLOB_MARKDOWN}/${GLOB_SRC}`, `${GLOB_MARKDOWN}/${GLOB_VUE}`],
476
- languageOptions: {
477
- parserOptions: {
478
- ecmaFeatures: {
479
- impliedStrict: true
480
- }
481
- }
482
- },
483
470
  rules: {
484
- ...pluginMarkdown.configs.recommended.overrides[1].rules,
485
471
  "@typescript-eslint/comma-dangle": "off",
486
472
  "@typescript-eslint/consistent-type-imports": "off",
487
473
  "@typescript-eslint/no-extraneous-class": "off",
@@ -497,6 +483,8 @@ var markdown = [
497
483
  "no-undef": "off",
498
484
  "no-unused-expressions": "off",
499
485
  "no-unused-vars": "off",
486
+ "node/prefer-global/buffer": "off",
487
+ "node/prefer-global/process": "off",
500
488
  "unused-imports/no-unused-imports": "off",
501
489
  "unused-imports/no-unused-vars": "off"
502
490
  }
@@ -847,6 +835,7 @@ var unicorn = [
847
835
  "unicorn/no-array-callback-reference": "error",
848
836
  "unicorn/no-array-method-this-argument": "error",
849
837
  "unicorn/no-array-push-push": "error",
838
+ "unicorn/no-await-in-promise-methods": "error",
850
839
  "unicorn/no-console-spaces": "error",
851
840
  "unicorn/no-for-loop": "error",
852
841
  "unicorn/no-hex-escape": "error",
@@ -855,6 +844,7 @@ var unicorn = [
855
844
  "unicorn/no-lonely-if": "error",
856
845
  "unicorn/no-new-array": "error",
857
846
  "unicorn/no-new-buffer": "error",
847
+ "unicorn/no-single-promise-in-promise-methods": "error",
858
848
  "unicorn/no-static-only-class": "error",
859
849
  "unicorn/no-unnecessary-await": "error",
860
850
  "unicorn/no-zero-fractions": `error`,
package/dist/index.d.cts CHANGED
@@ -1,8 +1,8 @@
1
1
  import { FlatESLintConfigItem } from 'eslint-define-config';
2
2
  import * as _unocss_eslint_plugin from '@unocss/eslint-plugin';
3
3
  import * as eslint_plugin_antfu from 'eslint-plugin-antfu';
4
- import * as eslintPluginI from 'eslint-plugin-i';
5
- export { eslintPluginI as pluginImport };
4
+ import * as eslintPluginImportX from 'eslint-plugin-import-x';
5
+ export { eslintPluginImportX as pluginImport };
6
6
  import * as eslintPluginJsonc from 'eslint-plugin-jsonc';
7
7
  export { eslintPluginJsonc as pluginJsonc };
8
8
  import * as eslintPluginUnusedImports from 'eslint-plugin-unused-imports';
package/dist/index.d.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  import { FlatESLintConfigItem } from 'eslint-define-config';
2
2
  import * as _unocss_eslint_plugin from '@unocss/eslint-plugin';
3
3
  import * as eslint_plugin_antfu from 'eslint-plugin-antfu';
4
- import * as eslintPluginI from 'eslint-plugin-i';
5
- export { eslintPluginI as pluginImport };
4
+ import * as eslintPluginImportX from 'eslint-plugin-import-x';
5
+ export { eslintPluginImportX as pluginImport };
6
6
  import * as eslintPluginJsonc from 'eslint-plugin-jsonc';
7
7
  export { eslintPluginJsonc as pluginJsonc };
8
8
  import * as eslintPluginUnusedImports from 'eslint-plugin-unused-imports';
package/dist/index.js CHANGED
@@ -10,7 +10,7 @@ import * as _pluginPerfectionist from "eslint-plugin-perfectionist";
10
10
  import * as _pluginUnocss from "@unocss/eslint-plugin";
11
11
  import * as _pluginPrettier from "eslint-plugin-prettier";
12
12
  import * as _configPrettier from "eslint-config-prettier";
13
- import * as pluginImport from "eslint-plugin-i";
13
+ import * as pluginImport from "eslint-plugin-import-x";
14
14
  import * as pluginJsonc from "eslint-plugin-jsonc";
15
15
  import * as pluginUnusedImports from "eslint-plugin-unused-imports";
16
16
  import * as pluginYml from "eslint-plugin-yml";
@@ -357,24 +357,10 @@ var jsonc = [
357
357
 
358
358
  // src/configs/markdown.ts
359
359
  var markdown = [
360
- {
361
- files: [GLOB_MARKDOWN],
362
- plugins: {
363
- markdown: pluginMarkdown
364
- },
365
- processor: "markdown/markdown"
366
- },
360
+ ...pluginMarkdown.configs.recommended,
367
361
  {
368
362
  files: [`${GLOB_MARKDOWN}/${GLOB_SRC}`, `${GLOB_MARKDOWN}/${GLOB_VUE}`],
369
- languageOptions: {
370
- parserOptions: {
371
- ecmaFeatures: {
372
- impliedStrict: true
373
- }
374
- }
375
- },
376
363
  rules: {
377
- ...pluginMarkdown.configs.recommended.overrides[1].rules,
378
364
  "@typescript-eslint/comma-dangle": "off",
379
365
  "@typescript-eslint/consistent-type-imports": "off",
380
366
  "@typescript-eslint/no-extraneous-class": "off",
@@ -390,6 +376,8 @@ var markdown = [
390
376
  "no-undef": "off",
391
377
  "no-unused-expressions": "off",
392
378
  "no-unused-vars": "off",
379
+ "node/prefer-global/buffer": "off",
380
+ "node/prefer-global/process": "off",
393
381
  "unused-imports/no-unused-imports": "off",
394
382
  "unused-imports/no-unused-vars": "off"
395
383
  }
@@ -740,6 +728,7 @@ var unicorn = [
740
728
  "unicorn/no-array-callback-reference": "error",
741
729
  "unicorn/no-array-method-this-argument": "error",
742
730
  "unicorn/no-array-push-push": "error",
731
+ "unicorn/no-await-in-promise-methods": "error",
743
732
  "unicorn/no-console-spaces": "error",
744
733
  "unicorn/no-for-loop": "error",
745
734
  "unicorn/no-hex-escape": "error",
@@ -748,6 +737,7 @@ var unicorn = [
748
737
  "unicorn/no-lonely-if": "error",
749
738
  "unicorn/no-new-array": "error",
750
739
  "unicorn/no-new-buffer": "error",
740
+ "unicorn/no-single-promise-in-promise-methods": "error",
751
741
  "unicorn/no-static-only-class": "error",
752
742
  "unicorn/no-unnecessary-await": "error",
753
743
  "unicorn/no-zero-fractions": `error`,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sxzz/eslint-config",
3
- "version": "3.8.6",
4
- "packageManager": "pnpm@8.15.3",
3
+ "version": "3.9.0",
4
+ "packageManager": "pnpm@8.15.6",
5
5
  "description": "ESLint config for @sxzz.",
6
6
  "type": "module",
7
7
  "license": "MIT",
@@ -31,37 +31,37 @@
31
31
  "eslint": "^8.56.0 || ^9.0.0"
32
32
  },
33
33
  "dependencies": {
34
- "@unocss/eslint-plugin": "^0.58.5",
34
+ "@unocss/eslint-plugin": "^0.59.0",
35
35
  "eslint-config-prettier": "^9.1.0",
36
36
  "eslint-define-config": "^1.24.1",
37
37
  "eslint-plugin-antfu": "^2.1.2",
38
38
  "eslint-plugin-eslint-comments": "^3.2.0",
39
- "eslint-plugin-i": "^2.29.1",
40
- "eslint-plugin-jsonc": "^2.13.0",
41
- "eslint-plugin-markdown": "^3.0.1",
39
+ "eslint-plugin-import-x": "^0.5.0",
40
+ "eslint-plugin-jsonc": "^2.15.0",
41
+ "eslint-plugin-markdown": "^4.0.1",
42
42
  "eslint-plugin-n": "^16.6.2",
43
- "eslint-plugin-perfectionist": "^2.5.0",
43
+ "eslint-plugin-perfectionist": "^2.8.0",
44
44
  "eslint-plugin-prettier": "^5.1.3",
45
- "eslint-plugin-unicorn": "^51.0.1",
45
+ "eslint-plugin-unicorn": "^52.0.0",
46
46
  "eslint-plugin-unused-imports": "^3.1.0",
47
- "eslint-plugin-vue": "^9.21.1",
48
- "eslint-plugin-yml": "^1.12.2",
49
- "globals": "^14.0.0",
47
+ "eslint-plugin-vue": "^9.24.0",
48
+ "eslint-plugin-yml": "^1.14.0",
49
+ "globals": "^15.0.0",
50
50
  "jsonc-eslint-parser": "^2.4.0",
51
51
  "local-pkg": "^0.5.0",
52
52
  "prettier": "^3.2.5",
53
- "typescript-eslint": "^7.0.1",
53
+ "typescript-eslint": "^7.5.0",
54
54
  "vue-eslint-parser": "^9.4.2",
55
55
  "yaml-eslint-parser": "^1.2.2"
56
56
  },
57
57
  "devDependencies": {
58
- "@sxzz/prettier-config": "^2.0.0",
59
- "@types/node": "^20.11.19",
60
- "bumpp": "^9.3.0",
61
- "eslint": "^8.56.0",
58
+ "@sxzz/prettier-config": "^2.0.1",
59
+ "@types/node": "^20.12.5",
60
+ "bumpp": "^9.4.0",
61
+ "eslint": "^9.0.0",
62
62
  "sucrase": "^3.35.0",
63
63
  "tsup": "^8.0.2",
64
- "typescript": "^5.3.3"
64
+ "typescript": "^5.4.4"
65
65
  },
66
66
  "engines": {
67
67
  "node": "^18.18.0 || >=20.0.0"