@vp-tw/eslint-config 0.1.3 → 0.1.6

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.
@@ -41,16 +41,24 @@ const mdx = async ({
41
41
  });
42
42
  const configs = [setupConfig, processorConfig, rulesConfig];
43
43
  if (codeBlocks) {
44
- const codeBlocksConfig = (0, _mergeConfig.mergeConfig)(codeBlocksOptions, {
45
- rules: {
46
- "import/no-default-export": "off"
47
- },
48
- ignores: [
49
- /**
50
- * Handled by `@eslint/markdown`.
51
- */
52
- _eslintConfig.GLOB_MARKDOWN_CODE]
53
- }, {
44
+ const codeBlocksConfig = (0, _mergeConfig.mergeConfig)(codeBlocksOptions,
45
+ /**
46
+ * `eslint-plugin-import-x` has been removed from `antfu/eslint-config`.
47
+ *
48
+ * See: [fix: remove eslint-plugin-import-x](https://github.com/antfu/eslint-config/commit/db5a31d)
49
+ */
50
+ // {
51
+ // rules: {
52
+ // "import/no-default-export": "off",
53
+ // },
54
+ // ignores: [
55
+ // /**
56
+ // * Handled by `@eslint/markdown`.
57
+ // */
58
+ // GLOB_MARKDOWN_CODE,
59
+ // ],
60
+ // },
61
+ {
54
62
  ...mdxPlugin.flatCodeBlocks,
55
63
  name: "vdustr/mdx/code-blocks",
56
64
  rules: (0, _renameRules.renameRules)(mdxPlugin.flatCodeBlocks.rules ?? {}),
@@ -27,7 +27,12 @@ const storybook = async options => {
27
27
  const storyRulesConfig = (0, _mergeConfig.mergeConfig)(options?.stories, {
28
28
  name: "vdustr/storybook/stories/rules",
29
29
  rules: {
30
- "import/no-default-export": "off"
30
+ /**
31
+ * `eslint-plugin-import-x` has been removed from `antfu/eslint-config`.
32
+ *
33
+ * See: [fix: remove eslint-plugin-import-x](https://github.com/antfu/eslint-config/commit/db5a31d)
34
+ */
35
+ // "import/no-default-export": "off",
31
36
  }
32
37
  }, {
33
38
  ...originalStoryRulesConfig,
@@ -1,7 +1,6 @@
1
1
  import {
2
2
  ensurePackages,
3
3
  GLOB_MARKDOWN,
4
- GLOB_MARKDOWN_CODE,
5
4
  interopDefault
6
5
  } from "@antfu/eslint-config";
7
6
  import { omit, pick } from "es-toolkit";
@@ -47,17 +46,22 @@ const mdx = async ({
47
46
  if (codeBlocks) {
48
47
  const codeBlocksConfig = mergeConfig(
49
48
  codeBlocksOptions,
50
- {
51
- rules: {
52
- "import/no-default-export": "off"
53
- },
54
- ignores: [
55
- /**
56
- * Handled by `@eslint/markdown`.
57
- */
58
- GLOB_MARKDOWN_CODE
59
- ]
60
- },
49
+ /**
50
+ * `eslint-plugin-import-x` has been removed from `antfu/eslint-config`.
51
+ *
52
+ * See: [fix: remove eslint-plugin-import-x](https://github.com/antfu/eslint-config/commit/db5a31d)
53
+ */
54
+ // {
55
+ // rules: {
56
+ // "import/no-default-export": "off",
57
+ // },
58
+ // ignores: [
59
+ // /**
60
+ // * Handled by `@eslint/markdown`.
61
+ // */
62
+ // GLOB_MARKDOWN_CODE,
63
+ // ],
64
+ // },
61
65
  {
62
66
  ...mdxPlugin.flatCodeBlocks,
63
67
  name: "vdustr/mdx/code-blocks",
@@ -25,7 +25,12 @@ const storybook = async (options) => {
25
25
  {
26
26
  name: "vdustr/storybook/stories/rules",
27
27
  rules: {
28
- "import/no-default-export": "off"
28
+ /**
29
+ * `eslint-plugin-import-x` has been removed from `antfu/eslint-config`.
30
+ *
31
+ * See: [fix: remove eslint-plugin-import-x](https://github.com/antfu/eslint-config/commit/db5a31d)
32
+ */
33
+ // "import/no-default-export": "off",
29
34
  }
30
35
  },
31
36
  {
@@ -24,14 +24,20 @@ const imports = (composer, options) => {
24
24
  name: "vdustr/imports/rules",
25
25
  rules: {
26
26
  /**
27
- * Forbid `import {} from "module"`.
27
+ * `eslint-plugin-import-x` has been removed from `antfu/eslint-config`.
28
+ *
29
+ * See: [fix: remove eslint-plugin-import-x](https://github.com/antfu/eslint-config/commit/db5a31d)
28
30
  */
29
- "import/no-empty-named-blocks": "error",
30
- /**
31
- * Wildcard imports can prevent tree shaking and cause name conflicts.
32
- * Consider using named imports instead.
33
- */
34
- "import/no-namespace": "error"
31
+ // /**
32
+ // * Forbid `import {} from "module"`.
33
+ // */
34
+ // "import/no-empty-named-blocks": "error",
35
+ //
36
+ // /**
37
+ // * Wildcard imports can prevent tree shaking and cause name conflicts.
38
+ // * Consider using named imports instead.
39
+ // */
40
+ // "import/no-namespace": "error",
35
41
  }
36
42
  },
37
43
  omittedConfig
@@ -41,13 +47,18 @@ const imports = (composer, options) => {
41
47
  {
42
48
  name: "vdustr/imports/no-default-export/rules",
43
49
  rules: {
50
+ /**
51
+ * `eslint-plugin-import-x` has been removed from `antfu/eslint-config`.
52
+ *
53
+ * See: [fix: remove eslint-plugin-import-x](https://github.com/antfu/eslint-config/commit/db5a31d)
54
+ */
44
55
  /**
45
56
  * Enforcing named exports improves consistency, enhances
46
57
  * auto-completion and refactoring, and avoids issues with default
47
58
  * export renaming. Additionally, default exports might lead to
48
59
  * different behavior when transformed to CJS.
49
60
  */
50
- "import/no-default-export": "error"
61
+ // "import/no-default-export": "error",
51
62
  },
52
63
  files: [GLOB_JS, GLOB_JSX, GLOB_TS, GLOB_TSX],
53
64
  ignores: [
@@ -18,26 +18,37 @@ const imports = (composer, options) => {
18
18
  name: "vdustr/imports/rules",
19
19
  rules: {
20
20
  /**
21
- * Forbid `import {} from "module"`.
21
+ * `eslint-plugin-import-x` has been removed from `antfu/eslint-config`.
22
+ *
23
+ * See: [fix: remove eslint-plugin-import-x](https://github.com/antfu/eslint-config/commit/db5a31d)
22
24
  */
23
- "import/no-empty-named-blocks": "error",
24
- /**
25
- * Wildcard imports can prevent tree shaking and cause name conflicts.
26
- * Consider using named imports instead.
27
- */
28
- "import/no-namespace": "error"
25
+ // /**
26
+ // * Forbid `import {} from "module"`.
27
+ // */
28
+ // "import/no-empty-named-blocks": "error",
29
+ //
30
+ // /**
31
+ // * Wildcard imports can prevent tree shaking and cause name conflicts.
32
+ // * Consider using named imports instead.
33
+ // */
34
+ // "import/no-namespace": "error",
29
35
  }
30
36
  }, omittedConfig);
31
37
  const noDefaultExportConfig = (0, _mergeConfig.mergeConfig)(options?.noDefaultExport, {
32
38
  name: "vdustr/imports/no-default-export/rules",
33
39
  rules: {
40
+ /**
41
+ * `eslint-plugin-import-x` has been removed from `antfu/eslint-config`.
42
+ *
43
+ * See: [fix: remove eslint-plugin-import-x](https://github.com/antfu/eslint-config/commit/db5a31d)
44
+ */
34
45
  /**
35
46
  * Enforcing named exports improves consistency, enhances
36
47
  * auto-completion and refactoring, and avoids issues with default
37
48
  * export renaming. Additionally, default exports might lead to
38
49
  * different behavior when transformed to CJS.
39
50
  */
40
- "import/no-default-export": "error"
51
+ // "import/no-default-export": "error",
41
52
  },
42
53
  files: [_eslintConfig.GLOB_JS, _eslintConfig.GLOB_JSX, _eslintConfig.GLOB_TS, _eslintConfig.GLOB_TSX],
43
54
  ignores: [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vp-tw/eslint-config",
3
- "version": "0.1.3",
3
+ "version": "0.1.6",
4
4
  "description": "ViPro's ESLint configuration",
5
5
  "homepage": "https://github.com/vdustr/eslint-config",
6
6
  "author": {
@@ -41,7 +41,7 @@
41
41
  ],
42
42
  "dependencies": {
43
43
  "@mui/types": "^7.4.2",
44
- "es-toolkit": "^1.38.0",
44
+ "es-toolkit": "^1.39.7",
45
45
  "eslint-flat-config-utils": "^2.1.0",
46
46
  "local-pkg": "^1.1.1"
47
47
  },
@@ -50,18 +50,18 @@
50
50
  "unbuild": "^3.5.0"
51
51
  },
52
52
  "peerDependencies": {
53
- "@antfu/eslint-config": "^4.13.2",
53
+ "@antfu/eslint-config": "^4.17.0",
54
54
  "@emotion/eslint-plugin": "^11.12.0",
55
- "@tanstack/eslint-plugin-query": "^5.78.0",
55
+ "@tanstack/eslint-plugin-query": "^5.81.2",
56
56
  "@types/eslint-config-prettier": "^6.11.3",
57
- "eslint": "^9.28.0",
58
- "eslint-config-prettier": "^10.1.5",
59
- "eslint-plugin-mdx": "^3.4.2",
60
- "eslint-plugin-package-json": "^0.33.0",
61
- "eslint-plugin-react-compiler": "^19.1.0-rc.2",
62
- "eslint-plugin-storybook": "^9.0.3",
57
+ "eslint": "^9.31.0",
58
+ "eslint-config-prettier": "^10.1.8",
59
+ "eslint-plugin-mdx": "^3.6.2",
60
+ "eslint-plugin-package-json": "^0.40.5",
61
+ "eslint-plugin-react-compiler": "19.1.0-rc.2",
62
+ "eslint-plugin-storybook": "^9.0.17",
63
63
  "eslint-plugin-yml": "^1.18.0",
64
- "storybook": "^9.0.3"
64
+ "storybook": "^9.0.17"
65
65
  },
66
66
  "peerDependenciesMeta": {
67
67
  "@emotion/eslint-plugin": {