mirror of
https://github.com/HKUDS/DeepTutor.git
synced 2026-12-03 09:20:08 +08:00
22 lines
486 B
JavaScript
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;
|