@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.
Files changed (2) hide show
  1. package/eslint.config.ts +10 -0
  2. 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
  )
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "access": "public"
5
5
  },
6
6
  "name": "@10stars/config",
7
- "version": "13.2.1",
7
+ "version": "13.2.2",
8
8
  "author": "10stars.dev <web@alexandrov.co> (https://alexandrov.co)",
9
9
  "license": "MIT",
10
10
  "bin": {