@shayanthenerd/eslint-config
Version:
A modern, flexible ESLint configuration for enforcing best practices and maintaining a consistent coding style
15 lines (13 loc) • 442 B
JavaScript
import path from "node:path";
//#region src/rules/storybook.ts
function getStorybookRules(options) {
const storybookRules = {
"storybook/csf-component": "error",
"storybook/no-stories-of": "error",
"storybook/meta-satisfies-type": "warn",
"storybook/no-uninstalled-addons": ["error", { packageJsonLocation: path.resolve(options.packageDir, "package.json") }]
};
return storybookRules;
}
//#endregion
export { getStorybookRules };