From 73c44a148a9f85951af8ed5aba25ea4f0384a5ac Mon Sep 17 00:00:00 2001 From: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> Date: Fri, 25 Aug 2023 20:24:13 -0400 Subject: [PATCH] [8.10] [Ops] Fix @kbn/imports/no_unused_imports rule (#164870) (#164906) # Backport This will backport the following commits from `main` to `8.10`: - [[Ops] Fix @kbn/imports/no_unused_imports rule (#164870)](https://github.com/elastic/kibana/pull/164870) ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) Co-authored-by: Alex Szabo --- .../kbn-eslint-plugin-imports/src/rules/no_unused_imports.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/kbn-eslint-plugin-imports/src/rules/no_unused_imports.ts b/packages/kbn-eslint-plugin-imports/src/rules/no_unused_imports.ts index f12e149af9f66..5818bef672faf 100644 --- a/packages/kbn-eslint-plugin-imports/src/rules/no_unused_imports.ts +++ b/packages/kbn-eslint-plugin-imports/src/rules/no_unused_imports.ts @@ -78,6 +78,7 @@ function isTsOrEslintIgnore(comment: Comment) { export const NoUnusedImportsRule: Rule.RuleModule = { meta: { + hasSuggestions: true, fixable: 'code', docs: { url: 'https://github.com/elastic/kibana/blob/main/packages/kbn-eslint-plugin-imports/README.mdx#kbnimportsno_unused_imports',