Skip to content

Commit 90e4455

Browse files
committed
feat(storybook): defined storybook rules
as a glob to simplify the config for consumers
1 parent b4c2c56 commit 90e4455

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

.eslintrc.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
extends: '@form8ion'
1+
extends:
2+
- '@form8ion'
3+
- ./index.js

index.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,12 @@ module.exports = {
22
rules: {
33
'react/jsx-filename-extension': ['error', {extensions: ['.js']}],
44
'react/require-default-props': 'off'
5-
}
5+
},
6+
7+
overrides: [{
8+
files: '.storybook/*.js',
9+
rules: {
10+
'import/no-extraneous-dependencies': ['error', {devDependencies: true}]
11+
}
12+
}]
613
};

0 commit comments

Comments
 (0)