@10stars/config 13.2.1 → 13.2.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.ts +10 -0
- package/package.json +1 -1
package/eslint.config.ts
CHANGED
|
@@ -119,6 +119,15 @@ const addPluginReactExtra = () =>
|
|
|
119
119
|
},
|
|
120
120
|
] satisfies Linter.Config[]
|
|
121
121
|
|
|
122
|
+
const addStorybookOverrides = () =>
|
|
123
|
+
({
|
|
124
|
+
files: ["**/*stories.tsx"],
|
|
125
|
+
rules: {
|
|
126
|
+
"react/jsx-no-bind": 0, // allow inline functions
|
|
127
|
+
"@eslint-react/no-array-index-key": 0, // allow array index as key
|
|
128
|
+
},
|
|
129
|
+
}) satisfies Linter.Config
|
|
130
|
+
|
|
122
131
|
const addPluginImport = () =>
|
|
123
132
|
[
|
|
124
133
|
importPlugin.flatConfigs.recommended,
|
|
@@ -314,4 +323,5 @@ export default tseslint.config(
|
|
|
314
323
|
"@typescript-eslint/no-useless-constructor": 1,
|
|
315
324
|
},
|
|
316
325
|
},
|
|
326
|
+
addStorybookOverrides(),
|
|
317
327
|
)
|