@meteorlxy/eslint-config 7.3.0 → 7.4.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
@@ -31,20 +31,20 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
31
31
  }) : target, mod));
32
32
  //#endregion
33
33
  let eslint_plugin_import_x = require("eslint-plugin-import-x");
34
- eslint_plugin_import_x = __toESM(eslint_plugin_import_x);
34
+ eslint_plugin_import_x = __toESM(eslint_plugin_import_x, 1);
35
35
  let confusing_browser_globals = require("confusing-browser-globals");
36
- confusing_browser_globals = __toESM(confusing_browser_globals);
36
+ confusing_browser_globals = __toESM(confusing_browser_globals, 1);
37
37
  let _typescript_eslint_eslint_plugin = require("@typescript-eslint/eslint-plugin");
38
- _typescript_eslint_eslint_plugin = __toESM(_typescript_eslint_eslint_plugin);
38
+ _typescript_eslint_eslint_plugin = __toESM(_typescript_eslint_eslint_plugin, 1);
39
39
  let eslint_plugin_eslint_comments = require("eslint-plugin-eslint-comments");
40
- eslint_plugin_eslint_comments = __toESM(eslint_plugin_eslint_comments);
40
+ eslint_plugin_eslint_comments = __toESM(eslint_plugin_eslint_comments, 1);
41
41
  let globals = require("globals");
42
- globals = __toESM(globals);
42
+ globals = __toESM(globals, 1);
43
43
  let eslint_merge_processors = require("eslint-merge-processors");
44
44
  let eslint_config_prettier_flat = require("eslint-config-prettier/flat");
45
- eslint_config_prettier_flat = __toESM(eslint_config_prettier_flat);
45
+ eslint_config_prettier_flat = __toESM(eslint_config_prettier_flat, 1);
46
46
  let _typescript_eslint_parser = require("@typescript-eslint/parser");
47
- _typescript_eslint_parser = __toESM(_typescript_eslint_parser);
47
+ _typescript_eslint_parser = __toESM(_typescript_eslint_parser, 1);
48
48
  //#region src/utils.ts
49
49
  var utils_exports = /* @__PURE__ */ __exportAll({ interopDefault: () => interopDefault });
50
50
  const interopDefault = async (m) => {
@@ -1081,6 +1081,9 @@ const reactRules = {
1081
1081
  //#endregion
1082
1082
  //#region src/rules/typescript-shim.ts
1083
1083
  const typescriptShimRules = {
1084
+ /**
1085
+ * Rules that are checked by typescript or recommended to disable in typescript.
1086
+ */
1084
1087
  "constructor-super": "off",
1085
1088
  "getter-return": "off",
1086
1089
  "no-const-assign": "off",
@@ -1099,6 +1102,11 @@ const typescriptShimRules = {
1099
1102
  "no-unreachable": "off",
1100
1103
  "no-unsafe-negation": "off",
1101
1104
  "valid-typeof": "off",
1105
+ /**
1106
+ * Rules from eslint-plugin-import that should be disabled
1107
+ *
1108
+ * @see https://typescript-eslint.io/troubleshooting/performance-troubleshooting#eslint-plugin-import
1109
+ */
1102
1110
  "import/default": "off",
1103
1111
  "import/named": "off",
1104
1112
  "import/namespace": "off",
@@ -1108,6 +1116,9 @@ const typescriptShimRules = {
1108
1116
  "import/no-deprecated": "off",
1109
1117
  "import/no-named-as-default": "off",
1110
1118
  "import/no-unused-modules": "off",
1119
+ /**
1120
+ * Rules that have equivalents in typescript-eslint plugin.
1121
+ */
1111
1122
  "brace-style": "off",
1112
1123
  "camelcase": "off",
1113
1124
  "class-methods-use-this": "off",
package/dist/index.d.cts CHANGED
@@ -371,7 +371,7 @@ declare const builtinRules: {
371
371
  name: string;
372
372
  message: string;
373
373
  }, ...{
374
- name: "name" | "addEventListener" | "blur" | "close" | "closed" | "confirm" | "defaultStatus" | "defaultstatus" | "event" | "external" | "find" | "focus" | "frameElement" | "frames" | "history" | "innerHeight" | "innerWidth" | "length" | "location" | "locationbar" | "menubar" | "moveBy" | "moveTo" | "onblur" | "onerror" | "onfocus" | "onload" | "onresize" | "onunload" | "open" | "opener" | "opera" | "outerHeight" | "outerWidth" | "pageXOffset" | "pageYOffset" | "parent" | "print" | "removeEventListener" | "resizeBy" | "resizeTo" | "screen" | "screenLeft" | "screenTop" | "screenX" | "screenY" | "scroll" | "scrollbars" | "scrollBy" | "scrollTo" | "scrollX" | "scrollY" | "self" | "status" | "statusbar" | "stop" | "toolbar" | "top";
374
+ name: "external" | "parent" | "name" | "addEventListener" | "blur" | "close" | "closed" | "confirm" | "defaultStatus" | "defaultstatus" | "event" | "find" | "focus" | "frameElement" | "frames" | "history" | "innerHeight" | "innerWidth" | "length" | "location" | "locationbar" | "menubar" | "moveBy" | "moveTo" | "onblur" | "onerror" | "onfocus" | "onload" | "onresize" | "onunload" | "open" | "opener" | "opera" | "outerHeight" | "outerWidth" | "pageXOffset" | "pageYOffset" | "print" | "removeEventListener" | "resizeBy" | "resizeTo" | "screen" | "screenLeft" | "screenTop" | "screenX" | "screenY" | "scroll" | "scrollbars" | "scrollBy" | "scrollTo" | "scrollX" | "scrollY" | "self" | "status" | "statusbar" | "stop" | "toolbar" | "top";
375
375
  message: string;
376
376
  }[]];
377
377
  'no-restricted-imports': ["off", {
package/dist/index.d.mts CHANGED
@@ -369,7 +369,7 @@ declare const builtinRules: {
369
369
  name: string;
370
370
  message: string;
371
371
  }, ...{
372
- name: "name" | "addEventListener" | "blur" | "close" | "closed" | "confirm" | "defaultStatus" | "defaultstatus" | "event" | "external" | "find" | "focus" | "frameElement" | "frames" | "history" | "innerHeight" | "innerWidth" | "length" | "location" | "locationbar" | "menubar" | "moveBy" | "moveTo" | "onblur" | "onerror" | "onfocus" | "onload" | "onresize" | "onunload" | "open" | "opener" | "opera" | "outerHeight" | "outerWidth" | "pageXOffset" | "pageYOffset" | "parent" | "print" | "removeEventListener" | "resizeBy" | "resizeTo" | "screen" | "screenLeft" | "screenTop" | "screenX" | "screenY" | "scroll" | "scrollbars" | "scrollBy" | "scrollTo" | "scrollX" | "scrollY" | "self" | "status" | "statusbar" | "stop" | "toolbar" | "top";
372
+ name: "external" | "parent" | "name" | "addEventListener" | "blur" | "close" | "closed" | "confirm" | "defaultStatus" | "defaultstatus" | "event" | "find" | "focus" | "frameElement" | "frames" | "history" | "innerHeight" | "innerWidth" | "length" | "location" | "locationbar" | "menubar" | "moveBy" | "moveTo" | "onblur" | "onerror" | "onfocus" | "onload" | "onresize" | "onunload" | "open" | "opener" | "opera" | "outerHeight" | "outerWidth" | "pageXOffset" | "pageYOffset" | "print" | "removeEventListener" | "resizeBy" | "resizeTo" | "screen" | "screenLeft" | "screenTop" | "screenX" | "screenY" | "scroll" | "scrollbars" | "scrollBy" | "scrollTo" | "scrollX" | "scrollY" | "self" | "status" | "statusbar" | "stop" | "toolbar" | "top";
373
373
  message: string;
374
374
  }[]];
375
375
  'no-restricted-imports': ["off", {
package/dist/index.mjs CHANGED
@@ -1043,6 +1043,9 @@ const reactRules = {
1043
1043
  //#endregion
1044
1044
  //#region src/rules/typescript-shim.ts
1045
1045
  const typescriptShimRules = {
1046
+ /**
1047
+ * Rules that are checked by typescript or recommended to disable in typescript.
1048
+ */
1046
1049
  "constructor-super": "off",
1047
1050
  "getter-return": "off",
1048
1051
  "no-const-assign": "off",
@@ -1061,6 +1064,11 @@ const typescriptShimRules = {
1061
1064
  "no-unreachable": "off",
1062
1065
  "no-unsafe-negation": "off",
1063
1066
  "valid-typeof": "off",
1067
+ /**
1068
+ * Rules from eslint-plugin-import that should be disabled
1069
+ *
1070
+ * @see https://typescript-eslint.io/troubleshooting/performance-troubleshooting#eslint-plugin-import
1071
+ */
1064
1072
  "import/default": "off",
1065
1073
  "import/named": "off",
1066
1074
  "import/namespace": "off",
@@ -1070,6 +1078,9 @@ const typescriptShimRules = {
1070
1078
  "import/no-deprecated": "off",
1071
1079
  "import/no-named-as-default": "off",
1072
1080
  "import/no-unused-modules": "off",
1081
+ /**
1082
+ * Rules that have equivalents in typescript-eslint plugin.
1083
+ */
1073
1084
  "brace-style": "off",
1074
1085
  "camelcase": "off",
1075
1086
  "class-methods-use-this": "off",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meteorlxy/eslint-config",
3
- "version": "7.3.0",
3
+ "version": "7.4.0",
4
4
  "description": "meteorlxy eslint config",
5
5
  "keywords": [
6
6
  "config",
@@ -34,8 +34,8 @@
34
34
  "dependencies": {
35
35
  "@eslint/core": "^0.17.0",
36
36
  "@eslint/markdown": "^7.5.1",
37
- "@typescript-eslint/eslint-plugin": "^8.57.2",
38
- "@typescript-eslint/parser": "^8.57.2",
37
+ "@typescript-eslint/eslint-plugin": "^8.59.1",
38
+ "@typescript-eslint/parser": "^8.59.1",
39
39
  "confusing-browser-globals": "^1.0.11",
40
40
  "eslint-config-flat-gitignore": "^2.3.0",
41
41
  "eslint-config-prettier": "^10.1.8",
@@ -43,25 +43,25 @@
43
43
  "eslint-plugin-eslint-comments": "^3.2.0",
44
44
  "eslint-plugin-import-x": "^4.16.2",
45
45
  "eslint-plugin-jsonc": "^3.1.2",
46
- "globals": "^17.4.0",
46
+ "globals": "^17.5.0",
47
47
  "jsonc-eslint-parser": "^3.1.0"
48
48
  },
49
49
  "devDependencies": {
50
50
  "@types/confusing-browser-globals": "^1.0.3",
51
51
  "eslint": "^9.39.4",
52
52
  "eslint-plugin-react": "^7.37.5",
53
- "eslint-plugin-react-hooks": "^7.0.1",
53
+ "eslint-plugin-react-hooks": "^7.1.1",
54
54
  "eslint-plugin-react-refresh": "^0.5.2",
55
- "eslint-plugin-vue": "^10.8.0",
56
- "tsdown": "^0.21.5",
55
+ "eslint-plugin-vue": "^10.9.0",
56
+ "tsdown": "^0.21.10",
57
57
  "vue-eslint-parser": "^10.4.0"
58
58
  },
59
59
  "peerDependencies": {
60
60
  "eslint": "^9.39.4",
61
61
  "eslint-plugin-react": "^7.37.5",
62
- "eslint-plugin-react-hooks": "^7.0.1",
62
+ "eslint-plugin-react-hooks": "^7.1.1",
63
63
  "eslint-plugin-react-refresh": "^0.5.2",
64
- "eslint-plugin-vue": "^10.8.0",
64
+ "eslint-plugin-vue": "^10.9.0",
65
65
  "vue-eslint-parser": "^10.4.0"
66
66
  },
67
67
  "peerDependenciesMeta": {