eslint.config.js
517 Bytes
import { app } from '@uj/eslint-config';
/**
* 根级 flat 配置。
*
* 直接复用各应用/包在用的共享配置,而不是另写一套:否则从仓库根跑 eslint 时
* `react-hooks/exhaustive-deps` 这类 inline disable 会因为插件未注册报
* "Definition for rule ... was not found",而 turbo 逐包跑却正常 —— 两种口径不一致。
*/
export default [
{
ignores: ['**/dist/**', '**/node_modules/**', '**/.turbo/**', '**/coverage/**', '.release/**'],
},
...app(),
];