ant-design cli 生成的项目yarn lint 报错
ABeastofPrey opened this issue · 1 comments
ant-design-pro@5.2.0 lint:js /**/adp-demo
eslint --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src
src/pages/account/settings/index.tsx:57:6
⚠ 57:6 React Hook useLayoutEffect has a missing dependency: resize. Either include it or remove the dependency array. Mutable values like dom.current aren't valid dependencies because mutating them doesn't re-render the component. react-hooks/exhaustive-deps
src/pages/account/center/_mock.ts:1:1
✖ 1:1 Definition for rule import/no-extraneous-dependencies was not found. import/no-extraneous-dependencies
src/pages/account/settings/_mock.ts:1:1
✖ 1:1 Definition for rule import/no-extraneous-dependencies was not found. import/no-extraneous-dependencies
src/pages/form/advanced-form/_mock.ts:1:1
✖ 1:1 Definition for rule import/no-extraneous-dependencies was not found. import/no-extraneous-dependencies
src/pages/form/basic-form/_mock.ts:1:1
✖ 1:1 Definition for rule import/no-extraneous-dependencies was not found. import/no-extraneous-dependencies
src/pages/form/step-form/_mock.ts:1:1
✖ 1:1 Definition for rule import/no-extraneous-dependencies was not found. import/no-extraneous-dependencies
src/pages/list/basic-list/_mock.ts:1:1
✖ 1:1 Definition for rule import/no-extraneous-dependencies was not found. import/no-extraneous-dependencies
src/pages/list/card-list/_mock.ts:1:1
✖ 1:1 Definition for rule import/no-extraneous-dependencies was not found. import/no-extraneous-dependencies
src/pages/list/search/applications/_mock.ts:1:1
✖ 1:1 Definition for rule import/no-extraneous-dependencies was not found. import/no-extraneous-dependencies
src/pages/list/search/articles/_mock.ts:1:1
✖ 1:1 Definition for rule import/no-extraneous-dependencies was not found. import/no-extraneous-dependencies
src/pages/list/table-list/_mock.ts:1:1
✖ 1:1 Definition for rule import/no-extraneous-dependencies was not found. import/no-extraneous-dependencies
src/pages/user/register/_mock.ts:1:1
✖ 1:1 Definition for rule import/no-extraneous-dependencies was not found.
Reproduce steps:
- pro create my-app
- yarn
- yarn lint