From f1c2fdfcfeb7dfb7e3e69db85867551f06ae1827 Mon Sep 17 00:00:00 2001 From: Gbacc Date: Mon, 8 Jul 2024 15:51:57 +0200 Subject: [PATCH] chore(eslint): improve bootstrap classes warning for eslint (#5370) Co-authored-by: Geoffroy Baccarini --- .changeset/large-hotels-nail.md | 5 +++++ tools/eslint-plugin/src/rules/use-bootstrap-class.js | 1 + 2 files changed, 6 insertions(+) create mode 100644 .changeset/large-hotels-nail.md diff --git a/.changeset/large-hotels-nail.md b/.changeset/large-hotels-nail.md new file mode 100644 index 00000000000..6fc72dddbde --- /dev/null +++ b/.changeset/large-hotels-nail.md @@ -0,0 +1,5 @@ +--- +"@talend/eslint-plugin": patch +--- + +Add `btn-inverse` to list of warning for eslint bootstrap classes diff --git a/tools/eslint-plugin/src/rules/use-bootstrap-class.js b/tools/eslint-plugin/src/rules/use-bootstrap-class.js index eeef754c8f3..b21bf7eda50 100644 --- a/tools/eslint-plugin/src/rules/use-bootstrap-class.js +++ b/tools/eslint-plugin/src/rules/use-bootstrap-class.js @@ -27,6 +27,7 @@ const BOOTSTRAP_CLASS = [ 'btn-sm', 'btn-xs', 'btn-block', + 'btn-inverse', 'caret', 'pull-left',