Comments (5)
Hey @boonya thanks a lot for flagging this! Would you be open to making a PR that fixes it? Thanks!
from eslint-plugin-storybook.
Hey @boonya thanks a lot for flagging this! Would you be open to making a PR that fixes it? Thanks!
With pleasure... When I have a time and inspiration ;)
from eslint-plugin-storybook.
I tried to work on this issue, but I was frustrated because I am new to eslint plugin development.
The existing API determines the userEvent object by its name, so I couldn't figure out how to determine the variable created in userEvent.setup.
I'll try some more when I have time, but I'd be happy if there were contributions from experts until then.
from eslint-plugin-storybook.
This is what I have so far #142
But I am a little bit stuck, caue I don't see how to integrate expectation of await
before the variable created by userEvent.setup()
. I'll try a bit later, but may be someone has some suggestion or idea.
from eslint-plugin-storybook.
Looks like this is something related testing-library/eslint-plugin-testing-library#817
from eslint-plugin-storybook.
Related Issues (20)
- Await expect linting error HOT 1
- Destructuring assignment exports show `storybook/story-exports` error HOT 2
- context-in-play-function support only "context" as a variable name HOT 6
- Add rule to check that `satisfies Meta<>` is used
- False positive when using storybook/default-exports rule and having default export in the export block HOT 3
- Rule to enforce CSF3 format in stories
- storybook/no-uninstalled-addons false positives on monorepo HOT 3
- Bump @storybook/csf
- csf-strict config not scoped to story files
- Plans to release version 1 and follow semver?
- Support for the new FlatConfig format HOT 6
- await-interactions: false positive and bad fix if await result is passed to expect in one line HOT 1
- Rules for forced typing Meta and Stories HOT 2
- Update typescript-eslint to v6 HOT 2
- Support eslint flat-config HOT 1
- Enforce usage of "composeStories" HOT 2
- unused const warning HOT 1
- context-in-play-function in `step` lints incorrectly
- storybook/no-uninstalled-addons false positives for submodule
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from eslint-plugin-storybook.