@lincy/eslint-config 5.2.1 → 5.2.3

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
@@ -99,7 +99,7 @@ __export(src_exports, {
99
99
  });
100
100
  module.exports = __toCommonJS(src_exports);
101
101
 
102
- // node_modules/.pnpm/tsup@8.2.4_jiti@1.21.6_postcss@8.4.45_tsx@4.19.1_typescript@5.6.2_yaml@2.5.1/node_modules/tsup/assets/cjs_shims.js
102
+ // node_modules/.pnpm/tsup@8.2.4_jiti@1.21.6_postcss@8.4.47_tsx@4.19.1_typescript@5.6.2_yaml@2.5.1/node_modules/tsup/assets/cjs_shims.js
103
103
  var getImportMetaUrl = () => typeof document === "undefined" ? new URL(`file:${__filename}`).href : document.currentScript && document.currentScript.src || new URL("main.js", document.baseURI).href;
104
104
  var importMetaUrl = /* @__PURE__ */ getImportMetaUrl();
105
105
 
@@ -215,7 +215,7 @@ var GLOB_EXCLUDE = [
215
215
  async function disables() {
216
216
  return [
217
217
  {
218
- files: [`scripts/${GLOB_SRC}`],
218
+ files: [`**/scripts/${GLOB_SRC}`],
219
219
  name: "eslint/disables/scripts",
220
220
  rules: {
221
221
  "no-console": "off",
@@ -223,7 +223,7 @@ async function disables() {
223
223
  }
224
224
  },
225
225
  {
226
- files: [`cli/${GLOB_SRC}`, `cli.${GLOB_SRC_EXT}`],
226
+ files: [`**/cli/${GLOB_SRC}`, `**/cli.${GLOB_SRC_EXT}`],
227
227
  name: "eslint/disables/cli",
228
228
  rules: {
229
229
  "no-console": "off"
@@ -1055,6 +1055,7 @@ async function markdown(options = {}) {
1055
1055
  "style/comma-dangle": "off",
1056
1056
  "style/eol-last": "off",
1057
1057
  "ts/consistent-type-imports": "off",
1058
+ "ts/explicit-function-return-type": "off",
1058
1059
  "ts/no-namespace": "off",
1059
1060
  "ts/no-redeclare": "off",
1060
1061
  "ts/no-require-imports": "off",
@@ -1130,16 +1131,18 @@ async function perfectionist(options = {}) {
1130
1131
  "perfectionist/sort-imports": ["error", {
1131
1132
  groups: [
1132
1133
  "type",
1133
- ["parent-type", "sibling-type", "index-type", "internal-type"],
1134
+ "builtin-type",
1135
+ ["index-type", "parent-type", "sibling-type", "internal-type"],
1134
1136
  "builtin",
1135
1137
  "external",
1136
- ["internal"],
1137
- ["parent", "sibling", "index"],
1138
+ "internal",
1139
+ ["index", "parent", "sibling"],
1138
1140
  "side-effect",
1139
1141
  "object",
1140
1142
  "unknown"
1141
1143
  ],
1142
- // newlinesBetween: 'ignore',
1144
+ internalPattern: ["~/**", "@/**"],
1145
+ newlinesBetween: "ignore",
1143
1146
  order: "asc",
1144
1147
  type: "natural"
1145
1148
  }],
@@ -1763,7 +1766,7 @@ async function typescript(options = {}) {
1763
1766
  "ts/no-import-type-side-effects": "error",
1764
1767
  "ts/no-invalid-void-type": "off",
1765
1768
  "ts/no-non-null-assertion": "off",
1766
- "ts/no-redeclare": "error",
1769
+ "ts/no-redeclare": ["error", { builtinGlobals: false }],
1767
1770
  "ts/no-require-imports": "error",
1768
1771
  "ts/no-unused-expressions": ["error", {
1769
1772
  // allowShortCircuit 设置为 true 将允许你在表达式中使用短路计算(默认值:false)
@@ -1956,6 +1959,7 @@ async function vue(options = {}) {
1956
1959
  ...pluginVue.configs.recommended.rules
1957
1960
  },
1958
1961
  "node/prefer-global/process": "off",
1962
+ "ts/explicit-function-return-type": "off",
1959
1963
  "vue/block-order": ["error", {
1960
1964
  order: ["template", "script", "style"]
1961
1965
  }],
package/dist/index.js CHANGED
@@ -110,7 +110,7 @@ var GLOB_EXCLUDE = [
110
110
  async function disables() {
111
111
  return [
112
112
  {
113
- files: [`scripts/${GLOB_SRC}`],
113
+ files: [`**/scripts/${GLOB_SRC}`],
114
114
  name: "eslint/disables/scripts",
115
115
  rules: {
116
116
  "no-console": "off",
@@ -118,7 +118,7 @@ async function disables() {
118
118
  }
119
119
  },
120
120
  {
121
- files: [`cli/${GLOB_SRC}`, `cli.${GLOB_SRC_EXT}`],
121
+ files: [`**/cli/${GLOB_SRC}`, `**/cli.${GLOB_SRC_EXT}`],
122
122
  name: "eslint/disables/cli",
123
123
  rules: {
124
124
  "no-console": "off"
@@ -950,6 +950,7 @@ async function markdown(options = {}) {
950
950
  "style/comma-dangle": "off",
951
951
  "style/eol-last": "off",
952
952
  "ts/consistent-type-imports": "off",
953
+ "ts/explicit-function-return-type": "off",
953
954
  "ts/no-namespace": "off",
954
955
  "ts/no-redeclare": "off",
955
956
  "ts/no-require-imports": "off",
@@ -1025,16 +1026,18 @@ async function perfectionist(options = {}) {
1025
1026
  "perfectionist/sort-imports": ["error", {
1026
1027
  groups: [
1027
1028
  "type",
1028
- ["parent-type", "sibling-type", "index-type", "internal-type"],
1029
+ "builtin-type",
1030
+ ["index-type", "parent-type", "sibling-type", "internal-type"],
1029
1031
  "builtin",
1030
1032
  "external",
1031
- ["internal"],
1032
- ["parent", "sibling", "index"],
1033
+ "internal",
1034
+ ["index", "parent", "sibling"],
1033
1035
  "side-effect",
1034
1036
  "object",
1035
1037
  "unknown"
1036
1038
  ],
1037
- // newlinesBetween: 'ignore',
1039
+ internalPattern: ["~/**", "@/**"],
1040
+ newlinesBetween: "ignore",
1038
1041
  order: "asc",
1039
1042
  type: "natural"
1040
1043
  }],
@@ -1658,7 +1661,7 @@ async function typescript(options = {}) {
1658
1661
  "ts/no-import-type-side-effects": "error",
1659
1662
  "ts/no-invalid-void-type": "off",
1660
1663
  "ts/no-non-null-assertion": "off",
1661
- "ts/no-redeclare": "error",
1664
+ "ts/no-redeclare": ["error", { builtinGlobals: false }],
1662
1665
  "ts/no-require-imports": "error",
1663
1666
  "ts/no-unused-expressions": ["error", {
1664
1667
  // allowShortCircuit 设置为 true 将允许你在表达式中使用短路计算(默认值:false)
@@ -1851,6 +1854,7 @@ async function vue(options = {}) {
1851
1854
  ...pluginVue.configs.recommended.rules
1852
1855
  },
1853
1856
  "node/prefer-global/process": "off",
1857
+ "ts/explicit-function-return-type": "off",
1854
1858
  "vue/block-order": ["error", {
1855
1859
  order: ["template", "script", "style"]
1856
1860
  }],
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@lincy/eslint-config",
3
3
  "type": "module",
4
- "version": "5.2.1",
4
+ "version": "5.2.3",
5
5
  "packageManager": "pnpm@9.1.0",
6
6
  "description": "LinCenYing's ESLint config",
7
7
  "author": "LinCenYing <lincenying@gmail.com> (https://github.com/lincenying/)",
@@ -74,22 +74,22 @@
74
74
  "@stylistic/eslint-plugin": "2.8.0",
75
75
  "@typescript-eslint/eslint-plugin": "8.5.0",
76
76
  "@typescript-eslint/parser": "8.5.0",
77
- "@vitest/eslint-plugin": "^1.1.3",
77
+ "@vitest/eslint-plugin": "^1.1.4",
78
78
  "eslint-config-flat-gitignore": "^0.3.0",
79
79
  "eslint-flat-config-utils": "^0.4.0",
80
80
  "eslint-merge-processors": "^0.1.0",
81
81
  "eslint-parser-plain": "^0.1.0",
82
82
  "eslint-plugin-antfu": "^2.6.0",
83
83
  "eslint-plugin-import-x": "^4.2.1",
84
- "eslint-plugin-jsdoc": "^50.2.2",
84
+ "eslint-plugin-jsdoc": "^50.2.3",
85
85
  "eslint-plugin-jsonc": "^2.16.0",
86
86
  "eslint-plugin-n": "^17.10.2",
87
87
  "eslint-plugin-no-only-tests": "^3.3.0",
88
- "eslint-plugin-perfectionist": "^3.5.0",
88
+ "eslint-plugin-perfectionist": "^3.6.0",
89
89
  "eslint-plugin-regexp": "^2.6.0",
90
90
  "eslint-plugin-toml": "^0.11.1",
91
91
  "eslint-plugin-unicorn": "^55.0.0",
92
- "eslint-plugin-unused-imports": "^4.1.3",
92
+ "eslint-plugin-unused-imports": "^4.1.4",
93
93
  "eslint-plugin-vue": "^9.28.0",
94
94
  "eslint-plugin-yml": "^1.14.0",
95
95
  "eslint-processor-vue-blocks": "^0.1.2",
@@ -111,14 +111,14 @@
111
111
  "@lincy/eslint-config": "workspace:*",
112
112
  "@prettier/plugin-xml": "^3.4.1",
113
113
  "@stylistic/eslint-plugin-migrate": "^2.8.0",
114
- "@types/node": "^22.5.4",
114
+ "@types/node": "^22.5.5",
115
115
  "@types/prompts": "^2.4.9",
116
- "@unocss/eslint-plugin": "^0.62.3",
116
+ "@unocss/eslint-plugin": "^0.62.4",
117
117
  "bumpp": "^9.5.2",
118
118
  "eslint": "^9.10.0",
119
119
  "eslint-plugin-format": "^0.1.2",
120
120
  "eslint-plugin-react-hooks": "^4.6.2",
121
- "eslint-plugin-react-refresh": "^0.4.11",
121
+ "eslint-plugin-react-refresh": "^0.4.12",
122
122
  "eslint-ts-patch": "9.8.0-1",
123
123
  "eslint-typegen": "^0.3.2",
124
124
  "esno": "^4.7.0",
@@ -132,8 +132,8 @@
132
132
  "tsup": "^8.2.4",
133
133
  "typescript": "^5.6.2",
134
134
  "unbuild": "^2.0.0",
135
- "vitest": "^2.1.0",
136
- "vue": "^3.5.4"
135
+ "vitest": "^2.1.1",
136
+ "vue": "^3.5.6"
137
137
  },
138
138
  "pnpm": {
139
139
  "peerDependencyRules": {