Skip to content

Commit

Permalink
Fix rule name conditions
Browse files Browse the repository at this point in the history
Show it when it is requested AND it is available
  • Loading branch information
hochata committed Sep 30, 2023
1 parent fb17059 commit a41c142
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flymake-eslint.el
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ variable `exec-path'"
(msg (gethash "message" eslint-diag))
(full-msg (concat
msg
(when flymake-eslint--message-regexp
(when (and flymake-eslint-show-rule-name lint-rule)
(format " [%s]" lint-rule)))))
(flymake-make-diagnostic
buffer
Expand Down

0 comments on commit a41c142

Please sign in to comment.