 (add-to-list 'auto-mode-alist '("\\.md" . markdown-mode))
 (add-to-list 'auto-mode-alist '("\\.html" . web-mode))
 (add-to-list 'auto-mode-alist '("\\.jsx" . web-mode))
-(add-to-list 'auto-mode-alist '("\\.js$" . js2-mode))
-;; Fall through to normal Flycheck ESLint settings for JS2
-(setq-default js2-show-parse-errors nil)
 
 (ensure-package-installed 'json-reformat)
 (require 'json-reformat)

 '(custom-safe-themes
   (quote
    ("d677ef584c6dfc0697901a44b885cc18e206f05114c8a3b7fde674fce6180879" "8aebf25556399b58091e533e455dd50a6a9cba958cc4ebb0aab175863c25b9a4" default)))
 '(desktop-save-mode t))
(custom-set-faces
 ;; custom-set-faces was added by Custom.
 ;; If you edit it by hand, you could mess it up, so be careful.

(ensure-package-installed 'flycheck)
(require 'flycheck)
(add-hook 'after-init-hook #'global-flycheck-mode)
(flycheck-add-mode 'html-tidy 'web-mode)
(flycheck-add-mode 'javascript-eslint 'web-mode)
(flycheck-add-mode 'javascript-eslint 'json-mode)
(add-to-list 'flycheck-disabled-checkers '(javascript-jshint))

;; HACK aim linter executables at project-specific scripts
(setq flycheck-html-tidy-executable "/usr/local/bin/tidy")
(setq flycheck-javascript-eslint-executable "~/code/10stories/run_eslint.sh")
(setq flycheck-python-pylint-executable "~/code/10stories/run_pylint.sh")

