Deprecated ESLint function used in Storybook ESLint Plugin #32989
Unanswered
connorshea
asked this question in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Currently, the ESLint rule for
default-exportsin the storybook ESLint plugin usescontext.getFilename(), which is deprecated (see here).https://github.com/storybookjs/storybook/blob/67db3e4726ab30a236d466119cff5b2bc3885a4d/code/lib/eslint-plugin/src/rules/default-exports.ts#L102C67-L102C78
It should be as simple as updating the function to
filename()instead, I believe? I didn't know if this really warranted opening an actual Issue, so just leaving it in the discussions section.I happened to discover this while trying to use the plugin with oxlint, so it'd be neat if it were updated :)
Beta Was this translation helpful? Give feedback.
All reactions