         )))
   'not-a-projectile-project)
 
-(require 'tomorrow-night-bright-theme)
-
-(require 'flycheck)
 (add-hook 'after-init-hook #'global-flycheck-mode)
 (setq flycheck-check-syntax-automatically
       '(mode-enabled save idle-change))
 (setq flycheck-indication-mode 'left-fringe)
+
+;; disable jshint since we prefer eslint checking
+(setq-default flycheck-disabled-checkers
+  (append flycheck-disabled-checkers
+    '(javascript-jshint)))
+
+;; use eslint with web-mode for jsx files
+(flycheck-add-mode 'javascript-eslint 'web-mode)
 
 ;; Indicate rubocop version
 (setq flycheck-ruby-rubocop-executable "~/.rbenv/shims/rubocop")

(toggle-scroll-bar -1)
(show-paren-mode 1) ;; show matching parens
(setq tab-stop-list (number-sequence 2 60 2)) ;; generate a list from 2-60 by 2s
(add-hook 'find-file-hook (lambda () (linum-mode 1)))
(add-hook 'before-save-hook 'delete-trailing-whitespace)

(setq flycheck-status-emoji-mode t)
;; Update the modeline bar
(set-fontset-font t nil "Symbola")
(setq-default mode-line-format
      (list
       "["
       '(:eval (list (nyan-create)))
       "]"
       ;; 'flycheck-mode-line
       "[%m: %b]"
       "[%02l:%02c]"
       ))

(defvar ruby-indent-offset)
(defvar css-indent-offset)

;; Use c++ mode for header files
(add-to-list 'auto-mode-alist '("\\.h\\'" . c++-mode))

(autoload 'scss-mode "scss-mode")
(add-to-list 'auto-mode-alist '("\\.scss\\'" . scss-mode))

(add-to-list 'auto-mode-alist '("\\.hb\\.html\\'" . web-mode))
(add-to-list 'auto-mode-alist '("\\.tpl\\.php\\'" . web-mode))
(add-to-list 'auto-mode-alist '("\\.erb\\'" . web-mode))
