Skip to content

Commit

Permalink
cli: lint storybook file dependencies as if they were tests
Browse files Browse the repository at this point in the history
Co-authored-by: Juan Lulkin <[email protected]>
Signed-off-by: Patrik Oldsberg <[email protected]>
  • Loading branch information
Rugvip and Juan Lulkin committed Mar 11, 2021
1 parent 9804a52 commit 8497254
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/khaki-avocados-remain.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@backstage/cli': patch
---

Lint storybook files, i.e. `*.stories.*`, as if they were tests.
2 changes: 1 addition & 1 deletion packages/cli/config/eslint.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ module.exports = {
},
},
{
files: ['*.test.*', 'src/setupTests.*', 'dev/**'],
files: ['*.test.*', '*.stories.*', 'src/setupTests.*', 'dev/**'],
rules: {
// Tests are allowed to import dev dependencies
'import/no-extraneous-dependencies': [
Expand Down

0 comments on commit 8497254

Please sign in to comment.