@10stars/config 13.3.0 → 13.3.2
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/eslint.config.browser.ts
CHANGED
|
@@ -77,6 +77,7 @@ const addPluginReactExtra = () =>
|
|
|
77
77
|
{
|
|
78
78
|
rules: {
|
|
79
79
|
"@eslint-react/dom/no-dangerously-set-innerhtml": 0, // we use for specific cases
|
|
80
|
+
"@eslint-react/hooks-extra/no-direct-set-state-in-use-effect": 0, // there are valid use cases
|
|
80
81
|
},
|
|
81
82
|
},
|
|
82
83
|
] satisfies Linter.Config[]
|
package/eslint.config.common.ts
CHANGED
|
@@ -51,6 +51,7 @@ const addPluginImport = () =>
|
|
|
51
51
|
"import/namespace": 0, // we use "import * as x" and then use "x" (ex. Object.keys(x))
|
|
52
52
|
"import/no-duplicates": 1,
|
|
53
53
|
"import/no-named-as-default": 0,
|
|
54
|
+
"import/export": 0, // don't work correctly with "import * as"
|
|
54
55
|
"import/no-nodejs-modules": [
|
|
55
56
|
2, // to enforce importing with "node:" prefix
|
|
56
57
|
{
|