How can ESLint be configured to make unreferenced variables gray?

for example:

import {
 Row,
 Col
} from "antd";

...

   return (
    ...
    <Row></Row>
    ...
   )
...

the Col component at this time is not referenced? How to configure ESLint (VSCode?) Make the Col field grayed out? Thank you

Jul.06,2022
Menu