Skip to content

Commit

Permalink
feat(storybook): defined storybook rules
Browse files Browse the repository at this point in the history
as a glob to simplify the config for consumers
  • Loading branch information
travi committed May 31, 2019
1 parent b4c2c56 commit 90e4455
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .eslintrc.yml
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
extends: '@form8ion'
extends:
- '@form8ion'
- ./index.js
9 changes: 8 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,12 @@ module.exports = {
rules: {
'react/jsx-filename-extension': ['error', {extensions: ['.js']}],
'react/require-default-props': 'off'
}
},

overrides: [{
files: '.storybook/*.js',
rules: {
'import/no-extraneous-dependencies': ['error', {devDependencies: true}]
}
}]
};

0 comments on commit 90e4455

Please sign in to comment.