2025-12-01 07:22:08 +08:00
|
|
|
// For more info, see https://github.com/storybookjs/eslint-plugin-storybook#configuration-flat-config-format
|
|
|
|
|
import storybook from "eslint-plugin-storybook";
|
|
|
|
|
|
2025-11-23 10:55:04 +08:00
|
|
|
import { defineConfig, globalIgnores } from "eslint/config";
|
|
|
|
|
import nextVitals from "eslint-config-next/core-web-vitals";
|
|
|
|
|
import nextTs from "eslint-config-next/typescript";
|
|
|
|
|
|
|
|
|
|
const eslintConfig = defineConfig([
|
|
|
|
|
...nextVitals,
|
|
|
|
|
...nextTs,
|
|
|
|
|
// Override default ignores of eslint-config-next.
|
|
|
|
|
globalIgnores([
|
2025-12-01 07:22:08 +08:00
|
|
|
// Default ignores:
|
2025-11-23 10:55:04 +08:00
|
|
|
".next/**",
|
|
|
|
|
"out/**",
|
|
|
|
|
"build/**",
|
|
|
|
|
"next-env.d.ts",
|
2025-12-01 07:22:08 +08:00
|
|
|
"public/luckysheet/**",
|
2025-12-02 18:10:39 +08:00
|
|
|
"public/pdf.worker.min.js",
|
2025-11-23 10:55:04 +08:00
|
|
|
]),
|
2025-12-01 07:22:08 +08:00
|
|
|
{
|
|
|
|
|
rules: {
|
|
|
|
|
"react-hooks/set-state-in-effect": "off",
|
|
|
|
|
},
|
|
|
|
|
},
|
2025-11-23 10:55:04 +08:00
|
|
|
]);
|
|
|
|
|
|
|
|
|
|
export default eslintConfig;
|