Files
DeepTutor/web/eslint.config.mjs
2026-01-23 01:42:25 +08:00

22 lines
486 B
JavaScript

import nextConfig from "eslint-config-next";
import i18nPlugin from "./eslint/i18n-plugin.mjs";
const config = [
...nextConfig,
{
files: ["app/**/*.{ts,tsx}", "components/**/*.{ts,tsx}"],
plugins: {
i18n: i18nPlugin,
},
rules: {
// During migration keep as warning; change to "error" once phase2/3 complete.
"i18n/no-literal-ui-text": "warn",
},
},
{
ignores: ["node_modules/**", ".next/**", "out/**"],
},
];
export default config;