@jimmy.codes/eslint-config 5.6.0 → 5.7.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.d.ts +22 -0
- package/dist/index.js +1 -1
- package/dist/{react-7A5RCHOX.js → react-NYHAKXFD.js} +11 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -2169,6 +2169,17 @@ declare function reactConfig(): Promise<{
|
|
|
2169
2169
|
};
|
|
2170
2170
|
};
|
|
2171
2171
|
rules: {
|
|
2172
|
+
"@eslint-react/avoid-shorthand-boolean": "off";
|
|
2173
|
+
"@eslint-react/avoid-shorthand-fragment": "off";
|
|
2174
|
+
"@eslint-react/hooks-extra/no-unnecessary-use-callback": "error";
|
|
2175
|
+
"@eslint-react/hooks-extra/no-unnecessary-use-memo": "error";
|
|
2176
|
+
"@eslint-react/hooks-extra/no-unnecessary-use-prefix": "error";
|
|
2177
|
+
"@eslint-react/hooks-extra/prefer-use-state-lazy-initialization": "error";
|
|
2178
|
+
"@eslint-react/no-children-prop": "error";
|
|
2179
|
+
"@eslint-react/no-complex-conditional-rendering": "error";
|
|
2180
|
+
"@eslint-react/prefer-react-namespace-import": "error";
|
|
2181
|
+
"@eslint-react/prefer-shorthand-boolean": "error";
|
|
2182
|
+
"@eslint-react/prefer-shorthand-fragment": "error";
|
|
2172
2183
|
"react-compiler/react-compiler": "error";
|
|
2173
2184
|
"react-hooks/exhaustive-deps": "error";
|
|
2174
2185
|
"react-hooks/rules-of-hooks": "error";
|
|
@@ -19312,6 +19323,17 @@ declare const defineConfig: ({ astro, autoDetect, ignores, jest, nextjs, overrid
|
|
|
19312
19323
|
};
|
|
19313
19324
|
};
|
|
19314
19325
|
rules: {
|
|
19326
|
+
"@eslint-react/avoid-shorthand-boolean": "off";
|
|
19327
|
+
"@eslint-react/avoid-shorthand-fragment": "off";
|
|
19328
|
+
"@eslint-react/hooks-extra/no-unnecessary-use-callback": "error";
|
|
19329
|
+
"@eslint-react/hooks-extra/no-unnecessary-use-memo": "error";
|
|
19330
|
+
"@eslint-react/hooks-extra/no-unnecessary-use-prefix": "error";
|
|
19331
|
+
"@eslint-react/hooks-extra/prefer-use-state-lazy-initialization": "error";
|
|
19332
|
+
"@eslint-react/no-children-prop": "error";
|
|
19333
|
+
"@eslint-react/no-complex-conditional-rendering": "error";
|
|
19334
|
+
"@eslint-react/prefer-react-namespace-import": "error";
|
|
19335
|
+
"@eslint-react/prefer-shorthand-boolean": "error";
|
|
19336
|
+
"@eslint-react/prefer-shorthand-fragment": "error";
|
|
19315
19337
|
"react-compiler/react-compiler": "error";
|
|
19316
19338
|
"react-hooks/exhaustive-deps": "error";
|
|
19317
19339
|
"react-hooks/rules-of-hooks": "error";
|
package/dist/index.js
CHANGED
|
@@ -582,7 +582,7 @@ var defineConfig = async ({
|
|
|
582
582
|
];
|
|
583
583
|
const featureConfigs = await Promise.all([
|
|
584
584
|
isTypescriptEnabled && unwrap(import("./typescript-IBCLQD7Q.js")),
|
|
585
|
-
isReactEnabled && unwrap(import("./react-
|
|
585
|
+
isReactEnabled && unwrap(import("./react-NYHAKXFD.js")),
|
|
586
586
|
isTanstackQueryEnabled && unwrap(import("./tanstack-query-P4IBOLDK.js")),
|
|
587
587
|
isAstroEnabled && unwrap(import("./astro-Z5RFF624.js")),
|
|
588
588
|
isJestEnabled && unwrap(import("./jest-AHG2WRSU.js")),
|
|
@@ -45,6 +45,17 @@ var reactRules = async () => {
|
|
|
45
45
|
return {
|
|
46
46
|
...jsxA11yPlugin.configs.recommended.rules,
|
|
47
47
|
...upwarn(reactPluginRules),
|
|
48
|
+
"@eslint-react/avoid-shorthand-boolean": "off",
|
|
49
|
+
"@eslint-react/avoid-shorthand-fragment": "off",
|
|
50
|
+
"@eslint-react/hooks-extra/no-unnecessary-use-callback": "error",
|
|
51
|
+
"@eslint-react/hooks-extra/no-unnecessary-use-memo": "error",
|
|
52
|
+
"@eslint-react/hooks-extra/no-unnecessary-use-prefix": "error",
|
|
53
|
+
"@eslint-react/hooks-extra/prefer-use-state-lazy-initialization": "error",
|
|
54
|
+
"@eslint-react/no-children-prop": "error",
|
|
55
|
+
"@eslint-react/no-complex-conditional-rendering": "error",
|
|
56
|
+
"@eslint-react/prefer-react-namespace-import": "error",
|
|
57
|
+
"@eslint-react/prefer-shorthand-boolean": "error",
|
|
58
|
+
"@eslint-react/prefer-shorthand-fragment": "error",
|
|
48
59
|
"react-compiler/react-compiler": "error",
|
|
49
60
|
"react-hooks/exhaustive-deps": "error",
|
|
50
61
|
"react-hooks/rules-of-hooks": "error",
|