blob: 0b184b3d899269d916cd0fc868f7f6f6add85a29 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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)))
|