You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I've noticed some inconsistent behavior with the linting rules for stories, but it will be easier to explain with a simple example. Let's say we have a basic button component that looks like this:
when the file is opened in the editor, the linter highlights the "variant" property with an error message, but running the lint script doesn't result in an error.
To Reproduce
Steps to reproduce the behavior:
Provide any error value for one of args properties in Story object
Save file
Run lint
Expected behavior
IMO error should be thrown by eslint. Or shouldn't be? If not, then why?
Screenshots
File:
Terminal output after running lint:
Additional context
Below you can find rest of the project config.
The text was updated successfully, but these errors were encountered:
WiktorHejman
changed the title
Type error for stories args is not thrown when running lint
Type errors for stories args are not thrown when running lint
Aug 16, 2024
Describe the bug
I've noticed some inconsistent behavior with the linting rules for stories, but it will be easier to explain with a simple example. Let's say we have a basic button component that looks like this:
and we wrote some simple stories for it:
when the file is opened in the editor, the linter highlights the "variant" property with an error message, but running the lint script doesn't result in an error.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
IMO error should be thrown by eslint. Or shouldn't be? If not, then why?
Screenshots
File:
Terminal output after running lint:
Additional context
Below you can find rest of the project config.
package.json
tsconfig.json
.eslintrc.cjs
The text was updated successfully, but these errors were encountered: