Nvim-lspconfig code action not work with eslint rule

I try to use code action to solve the eslint rule react-hooks/exhaustive-deps , but the nvim-lspconfig show message No code action found . I don’t know if I make any mistake when integrate eslint with nvim-lspconfig. I also cannot use code_action to disable the eslint like what I do in VSCode