diff options
Diffstat (limited to '+flycheck.el')
| -rw-r--r-- | +flycheck.el | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/+flycheck.el b/+flycheck.el new file mode 100644 index 0000000..0b184b3 --- /dev/null +++ b/+flycheck.el @@ -0,0 +1,21 @@ +;;; $DOOMDIR/+flycheck.el -*- lexical-binding: t; -*- +;; TODO: fix linter not working (not popping up and stuff) +(after! flycheck + (flycheck-define-checker htmlhint + "htmlhint for flycheck" + :command ("htmlhint" "--format" "unix" source) + :error-patterns + ((error + line-start + (file-name) ":" line ":" column ": " + (message) line-end)) + :modes (web-mode)) + (add-to-list 'flycheck-checkers 'htmlhint) + (flycheck-add-next-checker + 'javascript-eslint + 'javascript-oxlint) + (flycheck-add-next-checker + 'html-tidy + 'htmlhint) + (setq flycheck-check-syntax-automatically + '(save mode-enabled))) |
