@alextheman/eslint-plugin 5.16.0 → 5.16.1
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 +4 -2
- package/dist/index.js +4 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -4714,12 +4714,14 @@ const generalReact = [eslint_plugin_jsx_a11y_x.default.configs.recommended, {
|
|
|
4714
4714
|
"@eslint-react/no-array-index-key": "off",
|
|
4715
4715
|
"@eslint-react/no-context-provider": "error",
|
|
4716
4716
|
"@eslint-react/no-use-context": "error",
|
|
4717
|
+
"@eslint-react/set-state-in-effect": "error",
|
|
4717
4718
|
"@eslint-react/use-state": "error",
|
|
4718
4719
|
"@stylistic/jsx-curly-brace-presence": ["error", {
|
|
4719
4720
|
children: "never",
|
|
4720
4721
|
propElementValues: "always",
|
|
4721
4722
|
props: "never"
|
|
4722
|
-
}]
|
|
4723
|
+
}],
|
|
4724
|
+
"react-hooks/set-state-in-effect": "off"
|
|
4723
4725
|
},
|
|
4724
4726
|
settings: { react: { version: "detect" } }
|
|
4725
4727
|
}];
|
|
@@ -5513,7 +5515,7 @@ function parseUseObjectShorthandOptions(data) {
|
|
|
5513
5515
|
const alexPlugin = {
|
|
5514
5516
|
meta: {
|
|
5515
5517
|
name: "@alextheman/eslint-plugin",
|
|
5516
|
-
version: "5.16.
|
|
5518
|
+
version: "5.16.1",
|
|
5517
5519
|
namespace: "alextheman"
|
|
5518
5520
|
},
|
|
5519
5521
|
configs: {},
|
package/dist/index.js
CHANGED
|
@@ -4694,12 +4694,14 @@ const generalReact = [jsxA11y.configs.recommended, {
|
|
|
4694
4694
|
"@eslint-react/no-array-index-key": "off",
|
|
4695
4695
|
"@eslint-react/no-context-provider": "error",
|
|
4696
4696
|
"@eslint-react/no-use-context": "error",
|
|
4697
|
+
"@eslint-react/set-state-in-effect": "error",
|
|
4697
4698
|
"@eslint-react/use-state": "error",
|
|
4698
4699
|
"@stylistic/jsx-curly-brace-presence": ["error", {
|
|
4699
4700
|
children: "never",
|
|
4700
4701
|
propElementValues: "always",
|
|
4701
4702
|
props: "never"
|
|
4702
|
-
}]
|
|
4703
|
+
}],
|
|
4704
|
+
"react-hooks/set-state-in-effect": "off"
|
|
4703
4705
|
},
|
|
4704
4706
|
settings: { react: { version: "detect" } }
|
|
4705
4707
|
}];
|
|
@@ -5493,7 +5495,7 @@ function parseUseObjectShorthandOptions(data) {
|
|
|
5493
5495
|
const alexPlugin = {
|
|
5494
5496
|
meta: {
|
|
5495
5497
|
name: "@alextheman/eslint-plugin",
|
|
5496
|
-
version: "5.16.
|
|
5498
|
+
version: "5.16.1",
|
|
5497
5499
|
namespace: "alextheman"
|
|
5498
5500
|
},
|
|
5499
5501
|
configs: {},
|