Storybook created
This commit is contained in:
+7
-7
@@ -1,3 +1,6 @@
|
||||
// For more info, see https://github.com/storybookjs/eslint-plugin-storybook#configuration-flat-config-format
|
||||
import storybook from "eslint-plugin-storybook";
|
||||
|
||||
import { dirname } from "path";
|
||||
import { fileURLToPath } from "url";
|
||||
import { FlatCompat } from "@eslint/eslintrc";
|
||||
@@ -9,12 +12,9 @@ const compat = new FlatCompat({
|
||||
baseDirectory: __dirname,
|
||||
});
|
||||
|
||||
const eslintConfig = [
|
||||
...compat.extends("next/core-web-vitals"),
|
||||
{
|
||||
files: ["**/*.js", "**/*.jsx", "**/*.mjs"],
|
||||
ignores: ["**/*.ts", "**/*.tsx"],
|
||||
},
|
||||
];
|
||||
const eslintConfig = [...compat.extends("next/core-web-vitals"), {
|
||||
files: ["**/*.js", "**/*.jsx", "**/*.mjs"],
|
||||
ignores: ["**/*.ts", "**/*.tsx"],
|
||||
}, ...storybook.configs["flat/recommended"]];
|
||||
|
||||
export default eslintConfig;
|
||||
|
||||
Reference in New Issue
Block a user