jsx / jsx-mode.el

Emacs major mode for JSX, an altJS
72 stars 13 forks source link

flycheck checker #6

Open nyuichi opened 10 years ago

pedroteixeira commented 10 years ago

flycheck works by adding: (require 'flycheck) (flycheck-define-checker jsxhint-checker "A JSX syntax and style checker based on JSXHint."

                     :command ("jsxhint" source)
                     :error-patterns
                     ((error line-start (1+ nonl) ": line " line ", col " column ", " (message) line-end))
                     :modes (jsx-mode))

(add-hook 'jsx-mode-hook (lambda () (flycheck-select-checker 'jsxhint-checker) (flycheck-mode)))

sabof commented 9 years ago

This is a flycheck ticket