@sxzz/eslint-config 3.8.7 → 3.9.1

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);
@@ -358,7 +358,6 @@ var javascript = [
358
358
  "no-redeclare": "error",
359
359
  "no-regex-spaces": "error",
360
360
  "no-restricted-syntax": ["error", ...restrictedSyntaxJs],
361
- "no-return-await": "warn",
362
361
  "no-self-assign": "error",
363
362
  "no-setter-return": "error",
364
363
  "no-shadow-restricted-names": "error",
@@ -835,6 +834,7 @@ var unicorn = [
835
834
  "unicorn/no-array-callback-reference": "error",
836
835
  "unicorn/no-array-method-this-argument": "error",
837
836
  "unicorn/no-array-push-push": "error",
837
+ "unicorn/no-await-in-promise-methods": "error",
838
838
  "unicorn/no-console-spaces": "error",
839
839
  "unicorn/no-for-loop": "error",
840
840
  "unicorn/no-hex-escape": "error",
@@ -843,6 +843,7 @@ var unicorn = [
843
843
  "unicorn/no-lonely-if": "error",
844
844
  "unicorn/no-new-array": "error",
845
845
  "unicorn/no-new-buffer": "error",
846
+ "unicorn/no-single-promise-in-promise-methods": "error",
846
847
  "unicorn/no-static-only-class": "error",
847
848
  "unicorn/no-unnecessary-await": "error",
848
849
  "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";
@@ -251,7 +251,6 @@ var javascript = [
251
251
  "no-redeclare": "error",
252
252
  "no-regex-spaces": "error",
253
253
  "no-restricted-syntax": ["error", ...restrictedSyntaxJs],
254
- "no-return-await": "warn",
255
254
  "no-self-assign": "error",
256
255
  "no-setter-return": "error",
257
256
  "no-shadow-restricted-names": "error",
@@ -728,6 +727,7 @@ var unicorn = [
728
727
  "unicorn/no-array-callback-reference": "error",
729
728
  "unicorn/no-array-method-this-argument": "error",
730
729
  "unicorn/no-array-push-push": "error",
730
+ "unicorn/no-await-in-promise-methods": "error",
731
731
  "unicorn/no-console-spaces": "error",
732
732
  "unicorn/no-for-loop": "error",
733
733
  "unicorn/no-hex-escape": "error",
@@ -736,6 +736,7 @@ var unicorn = [
736
736
  "unicorn/no-lonely-if": "error",
737
737
  "unicorn/no-new-array": "error",
738
738
  "unicorn/no-new-buffer": "error",
739
+ "unicorn/no-single-promise-in-promise-methods": "error",
739
740
  "unicorn/no-static-only-class": "error",
740
741
  "unicorn/no-unnecessary-await": "error",
741
742
  "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.7",
4
- "packageManager": "pnpm@8.15.3",
3
+ "version": "3.9.1",
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",
39
+ "eslint-plugin-import-x": "^0.5.0",
40
+ "eslint-plugin-jsonc": "^2.15.0",
41
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"