@10stars/config 13.2.0 → 13.2.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/eslint.config.ts +11 -1
- package/package.json +1 -1
package/eslint.config.ts
CHANGED
|
@@ -109,6 +109,16 @@ const addPluginReactHooksConfigurable = () =>
|
|
|
109
109
|
},
|
|
110
110
|
}) satisfies Linter.Config
|
|
111
111
|
|
|
112
|
+
const addPluginReactExtra = () =>
|
|
113
|
+
[
|
|
114
|
+
eslintReact.configs["recommended-typescript"],
|
|
115
|
+
{
|
|
116
|
+
rules: {
|
|
117
|
+
"@eslint-react/dom/no-dangerously-set-innerhtml": 0, // we use for specific cases
|
|
118
|
+
},
|
|
119
|
+
},
|
|
120
|
+
] satisfies Linter.Config[]
|
|
121
|
+
|
|
112
122
|
const addPluginImport = () =>
|
|
113
123
|
[
|
|
114
124
|
importPlugin.flatConfigs.recommended,
|
|
@@ -166,7 +176,7 @@ export default tseslint.config(
|
|
|
166
176
|
...addPluginRegexp(),
|
|
167
177
|
addPluginNoRelativeImportPaths(),
|
|
168
178
|
...addPluginReact(),
|
|
169
|
-
|
|
179
|
+
...addPluginReactExtra(),
|
|
170
180
|
addPluginReactHooksConfigurable(),
|
|
171
181
|
...addPluginImport(),
|
|
172
182
|
addPluginSimpleImportSort(),
|