@tb-dev/eslint-config 6.1.1 → 6.1.3
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 +2 -2
- package/dist/index.js +2 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -303,8 +303,8 @@ async function react(options) {
|
|
|
303
303
|
"react/function-component-definition": [
|
|
304
304
|
"error",
|
|
305
305
|
{
|
|
306
|
-
namedComponents: "function-
|
|
307
|
-
unnamedComponents: "function-
|
|
306
|
+
namedComponents: ["function-declaration"],
|
|
307
|
+
unnamedComponents: ["function-declaration"]
|
|
308
308
|
}
|
|
309
309
|
],
|
|
310
310
|
"react/hook-use-state": ["error", { allowDestructuredState: true }],
|
package/dist/index.js
CHANGED
|
@@ -299,8 +299,8 @@ async function react(options) {
|
|
|
299
299
|
"react/function-component-definition": [
|
|
300
300
|
"error",
|
|
301
301
|
{
|
|
302
|
-
namedComponents: "function-
|
|
303
|
-
unnamedComponents: "function-
|
|
302
|
+
namedComponents: ["function-declaration"],
|
|
303
|
+
unnamedComponents: ["function-declaration"]
|
|
304
304
|
}
|
|
305
305
|
],
|
|
306
306
|
"react/hook-use-state": ["error", { allowDestructuredState: true }],
|