 (require 'tern)
 (require 'tern-auto-complete)
 (require 'clean-aindent-mode)
+(require 'flycheck-flow)
+(require 'rainbow-delimiters)
 
 ;; helm settings (TAB in helm window for actions over selected items,
 ;; C-SPC to select items)

                      64 68 72 76 80 84 88 92 96 100 104 108 112
                      116 120))
(add-to-list 'auto-mode-alist '("\\.js\\'" . js2-mode))

(add-hook 'before-save-hook 'delete-trailing-whitespace)


  (append flycheck-disabled-checkers
    '(javascript-jshint)))
(flycheck-add-mode 'javascript-eslint 'web-mode)
(flycheck-add-mode 'javascript-eslint 'js2-mode)
(flycheck-add-mode 'javascript-flow 'js2-mode)
(set-face-attribute 'flycheck-warning nil
                    :foreground "yellow"
                    :background "red")
