@tb-dev/eslint-config 6.1.2 → 6.1.4
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 +1 -7
- package/dist/index.js +1 -7
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -300,13 +300,7 @@ async function react(options) {
|
|
|
300
300
|
plugins: { react: plugin },
|
|
301
301
|
rules: {
|
|
302
302
|
"react/button-has-type": "error",
|
|
303
|
-
"react/function-component-definition":
|
|
304
|
-
"error",
|
|
305
|
-
{
|
|
306
|
-
namedComponents: "function-declaration",
|
|
307
|
-
unnamedComponents: "function-declaration"
|
|
308
|
-
}
|
|
309
|
-
],
|
|
303
|
+
"react/function-component-definition": "off",
|
|
310
304
|
"react/hook-use-state": ["error", { allowDestructuredState: true }],
|
|
311
305
|
"react/jsx-boolean-value": ["error", "never", { assumeUndefinedIsFalse: true }],
|
|
312
306
|
"react/jsx-key": [
|
package/dist/index.js
CHANGED
|
@@ -296,13 +296,7 @@ async function react(options) {
|
|
|
296
296
|
plugins: { react: plugin },
|
|
297
297
|
rules: {
|
|
298
298
|
"react/button-has-type": "error",
|
|
299
|
-
"react/function-component-definition":
|
|
300
|
-
"error",
|
|
301
|
-
{
|
|
302
|
-
namedComponents: "function-declaration",
|
|
303
|
-
unnamedComponents: "function-declaration"
|
|
304
|
-
}
|
|
305
|
-
],
|
|
299
|
+
"react/function-component-definition": "off",
|
|
306
300
|
"react/hook-use-state": ["error", { allowDestructuredState: true }],
|
|
307
301
|
"react/jsx-boolean-value": ["error", "never", { assumeUndefinedIsFalse: true }],
|
|
308
302
|
"react/jsx-key": [
|