Skip to content

Commit 9f6a4d8

Browse files
committed
fix: add storybook demos to eslint config
1 parent bbe1263 commit 9f6a4d8

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

eslint.config.mjs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,5 +56,14 @@ export default [
5656
'no-console': 'off',
5757
'react/button-has-type': 'off'
5858
}
59+
},
60+
{
61+
files: ['packages/*/demo/**/*.{ts,tsx}'],
62+
ignores: ['packages/.template/**/*.{ts,tsx}'],
63+
...typescriptPlugin,
64+
rules: {
65+
...typescriptRules,
66+
'react/no-array-index-key': 'off'
67+
}
5968
}
6069
];

0 commit comments

Comments
 (0)