@debbl/eslint-config 3.8.5 → 3.8.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.
package/README.md CHANGED
@@ -2,19 +2,19 @@
2
2
 
3
3
  [![npm](https://img.shields.io/npm/v/@debbl/eslint-config?label=@debbl/eslint-config&color=444&logo=npm)](https://npmjs.com/package/@debbl/eslint-config)
4
4
 
5
- ## 参考
5
+ ## Credits
6
6
 
7
7
  > https://github.com/antfu/eslint-config
8
8
 
9
- ## 安装
9
+ ## Install
10
10
 
11
11
  ```bash
12
12
  pnpm i eslint @debbl/eslint-config -D
13
13
  ```
14
14
 
15
- ## 配置 `eslint.config.js`
15
+ ## Config `eslint.config.js`
16
16
 
17
- ### 默认启动配置
17
+ ### Default config
18
18
 
19
19
  - ignores
20
20
  - javascript
@@ -37,7 +37,7 @@ import { defineConfig } from "@debbl/eslint-config";
37
37
  export default defineConfig();
38
38
  ```
39
39
 
40
- ## 配置 `Prettier`, 会覆盖默认的规则
40
+ ## Config `Prettier`, will override default rules
41
41
 
42
42
  ```js
43
43
  import { defineConfig } from "@debbl/eslint-config";
@@ -50,107 +50,6 @@ export default defineConfig({
50
50
  });
51
51
  ```
52
52
 
53
- ## 完整的 OptionConfig
53
+ ## Full OptionConfig
54
54
 
55
- [types.ts](./src/types.ts#L70)
56
-
57
- ```ts
58
- export interface OptionsConfig extends OptionsComponentExts {
59
- /**
60
- * Enable gitignore support.
61
- * Passing an object to configure the options.
62
- * @default true
63
- */
64
- ignores?: boolean | GetConfigOption<IgnoresConfig>;
65
-
66
- /**
67
- * Enable JavaScript support.
68
- * Passing an object to configure the options.
69
- * @default true
70
- */
71
- javascript?: GetConfigOption<JavascriptConfig>;
72
-
73
- /**
74
- * Enable TypeScript support.
75
- *
76
- * Passing an object to enable TypeScript Language Server support.
77
- *
78
- * @default false
79
- */
80
- typescript?: boolean | GetConfigOption<TypeScriptConfig>;
81
-
82
- /**
83
- * Enable test support.
84
- *
85
- * @default true
86
- */
87
- test?: boolean | GetConfigOption<TestConfig>;
88
-
89
- /**
90
- * Enable Vue support.
91
- *
92
- * @default false
93
- */
94
- vue?: boolean | GetConfigOption<VueConfig>;
95
-
96
- /**
97
- * Enable React support, Passing an object to enable Next.js support.
98
- *
99
- * @default false
100
- */
101
- react?: boolean | GetConfigOption<ReactConfig>;
102
-
103
- /**
104
- * Enable solid support, Passing an object to enable Next.js support.
105
- *
106
- * @default false
107
- */
108
- solid?: boolean;
109
-
110
- /**
111
- * Enable JSONC support.
112
- *
113
- * @default true
114
- */
115
- jsonc?: boolean | GetConfigOption<JsoncConfig>;
116
-
117
- /**
118
- * Enable YML support.
119
- *
120
- * @default true
121
- */
122
- yml?: boolean | GetConfigOption<YmlConfig>;
123
-
124
- /**
125
- * Enable TOML support.
126
- * @default true
127
- */
128
- toml?: boolean | GetConfigOption<TomlConfig>;
129
-
130
- /**
131
- * Enable Markdown support.
132
- *
133
- * @default true
134
- */
135
- markdown?: boolean | GetConfigOption<MarkdownConfig>;
136
-
137
- /**
138
- * Enable prettier rules.
139
- *
140
- * @default true
141
- */
142
- prettier?: boolean | Omit<GetConfigOption<PrettierConfig>, "tailwindcss">;
143
-
144
- /**
145
- * Enable Tailwind CSS support.
146
- * if set to "prettier", it will use `prettier-plugin-tailwindcss` @see https://github.com/tailwindlabs/prettier-plugin-tailwindcss
147
- * @default false
148
- */
149
- tailwindcss?: boolean | "prettier";
150
-
151
- /**
152
- * Custom config
153
- */
154
- customConfig?: ConfigItem[] | ConfigItem;
155
- }
156
- ```
55
+ [types.ts](./src/types.ts#L65)
package/dist/index.cjs CHANGED
@@ -115,7 +115,7 @@ async function interopDefault(m) {
115
115
  async function comments() {
116
116
  const pluginComments = await interopDefault(
117
117
  // @ts-expect-error missing types
118
- import("eslint-plugin-eslint-comments")
118
+ import("@eslint-community/eslint-plugin-eslint-comments")
119
119
  );
120
120
  return [
121
121
  {
@@ -628,10 +628,7 @@ var markdown = async (options) => {
628
628
  componentExts = [],
629
629
  overrides = {}
630
630
  } = options;
631
- const pluginMarkdown = await Promise.all([
632
- interopDefault(import("eslint-plugin-mdx")),
633
- interopDefault(import("@eslint/markdown"))
634
- ]);
631
+ const pluginMarkdown = await interopDefault(import("@eslint/markdown"));
635
632
  const _markdown = [
636
633
  {
637
634
  name: "eslint/markdown/setup",
package/dist/index.d.cts CHANGED
@@ -195,7 +195,10 @@ interface OptionsConfig extends OptionsComponentExts {
195
195
  prettier?: boolean | Omit<GetConfigOption<PrettierConfig>, "tailwindcss">;
196
196
  /**
197
197
  * Enable Tailwind CSS support.
198
- * if set to "prettier", it will use `prettier-plugin-tailwindcss` @see https://github.com/tailwindlabs/prettier-plugin-tailwindcss
198
+ *
199
+ * if set to "prettier", it will use `prettier-plugin-tailwindcss`
200
+ * @see https://github.com/tailwindlabs/prettier-plugin-tailwindcss
201
+ *
199
202
  * @default false
200
203
  */
201
204
  tailwindcss?: boolean | "prettier";
package/dist/index.d.ts CHANGED
@@ -195,7 +195,10 @@ interface OptionsConfig extends OptionsComponentExts {
195
195
  prettier?: boolean | Omit<GetConfigOption<PrettierConfig>, "tailwindcss">;
196
196
  /**
197
197
  * Enable Tailwind CSS support.
198
- * if set to "prettier", it will use `prettier-plugin-tailwindcss` @see https://github.com/tailwindlabs/prettier-plugin-tailwindcss
198
+ *
199
+ * if set to "prettier", it will use `prettier-plugin-tailwindcss`
200
+ * @see https://github.com/tailwindlabs/prettier-plugin-tailwindcss
201
+ *
199
202
  * @default false
200
203
  */
201
204
  tailwindcss?: boolean | "prettier";
package/dist/index.js CHANGED
@@ -32,7 +32,7 @@ async function interopDefault(m) {
32
32
  async function comments() {
33
33
  const pluginComments = await interopDefault(
34
34
  // @ts-expect-error missing types
35
- import("eslint-plugin-eslint-comments")
35
+ import("@eslint-community/eslint-plugin-eslint-comments")
36
36
  );
37
37
  return [
38
38
  {
@@ -545,10 +545,7 @@ var markdown = async (options) => {
545
545
  componentExts = [],
546
546
  overrides = {}
547
547
  } = options;
548
- const pluginMarkdown = await Promise.all([
549
- interopDefault(import("eslint-plugin-mdx")),
550
- interopDefault(import("@eslint/markdown"))
551
- ]);
548
+ const pluginMarkdown = await interopDefault(import("@eslint/markdown"));
552
549
  const _markdown = [
553
550
  {
554
551
  name: "eslint/markdown/setup",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@debbl/eslint-config",
3
3
  "type": "module",
4
- "version": "3.8.5",
4
+ "version": "3.8.6",
5
5
  "description": "Brendan Dash's ESLint config",
6
6
  "author": "Debbl <me@aiwan.run> (https://github.com/Debbl/)",
7
7
  "license": "MIT",
@@ -32,20 +32,20 @@
32
32
  }
33
33
  },
34
34
  "dependencies": {
35
- "@eslint-react/eslint-plugin": "^1.19.0",
35
+ "@eslint-community/eslint-plugin-eslint-comments": "^4.4.1",
36
+ "@eslint-react/eslint-plugin": "^1.22.1",
36
37
  "@eslint/markdown": "^6.2.1",
37
- "@next/eslint-plugin-next": "^15.1.0",
38
- "@typescript-eslint/eslint-plugin": "^8.18.0",
39
- "@typescript-eslint/parser": "^8.18.0",
40
- "@vitest/eslint-plugin": "^1.1.16",
38
+ "@next/eslint-plugin-next": "^15.1.2",
39
+ "@typescript-eslint/eslint-plugin": "^8.18.2",
40
+ "@typescript-eslint/parser": "^8.18.2",
41
+ "@vitest/eslint-plugin": "^1.1.20",
41
42
  "eslint-config-prettier": "^9.1.0",
42
- "eslint-plugin-eslint-comments": "^3.2.0",
43
- "eslint-plugin-import-x": "^4.5.0",
43
+ "eslint-plugin-import-x": "^4.6.1",
44
44
  "eslint-plugin-jsdoc": "^50.6.1",
45
45
  "eslint-plugin-jsonc": "^2.18.2",
46
- "eslint-plugin-n": "^17.15.0",
46
+ "eslint-plugin-n": "^17.15.1",
47
47
  "eslint-plugin-no-only-tests": "^3.3.0",
48
- "eslint-plugin-perfectionist": "^4.3.0",
48
+ "eslint-plugin-perfectionist": "^4.4.0",
49
49
  "eslint-plugin-prettier": "^5.2.1",
50
50
  "eslint-plugin-react-compiler": "latest",
51
51
  "eslint-plugin-react-hooks": "^5.1.0",
@@ -57,7 +57,7 @@
57
57
  "eslint-plugin-unused-imports": "^4.1.4",
58
58
  "eslint-plugin-vue": "^9.32.0",
59
59
  "eslint-plugin-yml": "^1.16.0",
60
- "globals": "^15.13.0",
60
+ "globals": "^15.14.0",
61
61
  "jsonc-eslint-parser": "^2.4.0",
62
62
  "prettier": "^3.4.2",
63
63
  "prettier-plugin-tailwindcss": "^0.6.9",
@@ -69,9 +69,9 @@
69
69
  "@eslint/config-inspector": "^0.6.0",
70
70
  "@types/eslint": "^9.6.1",
71
71
  "@types/node": "^22.10.2",
72
- "@types/react": "^19.0.1",
73
- "bumpp": "^9.9.1",
74
- "eslint": "^9.16.0",
72
+ "@types/react": "^19.0.2",
73
+ "bumpp": "^9.9.2",
74
+ "eslint": "^9.17.0",
75
75
  "eslint-plugin-mdx": "^3.1.5",
76
76
  "execa": "^9.5.2",
77
77
  "fast-glob": "^3.3.2",