@icebreakers/eslint-config 0.4.4 → 0.5.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 +3 -2
- package/dist/index.js +3 -2
- package/package.json +6 -2
package/dist/index.cjs
CHANGED
|
@@ -116,7 +116,8 @@ function getPresets(options) {
|
|
|
116
116
|
mdx: enableMDX,
|
|
117
117
|
a11y: enableA11y,
|
|
118
118
|
vue: enableVue,
|
|
119
|
-
|
|
119
|
+
react: enableReact
|
|
120
|
+
// ...opts
|
|
120
121
|
} = options;
|
|
121
122
|
const presetRules = {
|
|
122
123
|
"curly": ["error", "all"],
|
|
@@ -199,7 +200,7 @@ function getPresets(options) {
|
|
|
199
200
|
})
|
|
200
201
|
);
|
|
201
202
|
}
|
|
202
|
-
if (
|
|
203
|
+
if (enableReact) {
|
|
203
204
|
presets.push(
|
|
204
205
|
(0, antfu_exports.interopDefault)(
|
|
205
206
|
// @ts-ignore
|
package/dist/index.js
CHANGED
|
@@ -92,7 +92,8 @@ function getPresets(options) {
|
|
|
92
92
|
mdx: enableMDX,
|
|
93
93
|
a11y: enableA11y,
|
|
94
94
|
vue: enableVue,
|
|
95
|
-
|
|
95
|
+
react: enableReact
|
|
96
|
+
// ...opts
|
|
96
97
|
} = options;
|
|
97
98
|
const presetRules = {
|
|
98
99
|
"curly": ["error", "all"],
|
|
@@ -175,7 +176,7 @@ function getPresets(options) {
|
|
|
175
176
|
})
|
|
176
177
|
);
|
|
177
178
|
}
|
|
178
|
-
if (
|
|
179
|
+
if (enableReact) {
|
|
179
180
|
presets.push(
|
|
180
181
|
(0, antfu_exports.interopDefault)(
|
|
181
182
|
// @ts-ignore
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@icebreakers/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.5.0",
|
|
5
5
|
"description": "icebreakers's eslint config",
|
|
6
6
|
"author": "ice breaker <1324318532@qq.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -40,10 +40,14 @@
|
|
|
40
40
|
"dist"
|
|
41
41
|
],
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@antfu/eslint-config": "3.
|
|
43
|
+
"@antfu/eslint-config": "3.6.1",
|
|
44
|
+
"@eslint-react/eslint-plugin": "^1.14.1",
|
|
45
|
+
"@unocss/eslint-plugin": "^0.62.3",
|
|
44
46
|
"eslint-plugin-format": "0.1.2",
|
|
45
47
|
"eslint-plugin-jsx-a11y": "^6.10.0",
|
|
46
48
|
"eslint-plugin-mdx": "3.1.5",
|
|
49
|
+
"eslint-plugin-react-hooks": "^4.6.2",
|
|
50
|
+
"eslint-plugin-react-refresh": "^0.4.12",
|
|
47
51
|
"eslint-plugin-tailwindcss": "3.17.4",
|
|
48
52
|
"eslint-plugin-vuejs-accessibility": "^2.4.1",
|
|
49
53
|
"globals": "^15.9.0",
|