 (require 'package)
 (add-to-list 'package-archives '("melpa" . "http://melpa.org/packages/"))
-(package-initialize)
 
 (setq evil-want-C-u-scroll t)
 

(setq-default flycheck-disabled-checkers
  (append flycheck-disabled-checkers
    '(javascript-jshint)))
(add-hook 'javascript-mode-hook 'flycheck-mode)
(add-hook 'rjsx-mode-hook 'flycheck-mode)
(add-hook 'rjsx-mode-hook

(add-hook 'typescript-mode-hook 'flycheck-mode)
(add-hook 'typescript-mode-hook
          (lambda ()
            (add-hook 'after-save-hook #'eslint-fix-file-and-revert nil 'make-it-local)))

(add-hook 'web-mode-hook
          (lambda ()
            (add-hook 'after-save-hook #'eslint-fix-file-and-revert nil 'make-it-local)))

(with-eval-after-load 'flycheck
    (flycheck-add-mode 'javascript-eslint 'web-mode))

(with-eval-after-load 'flycheck
    (flycheck-add-mode 'javascript-eslint 'typescript-mode))

(with-eval-after-load 'flycheck
    (flycheck-add-mode 'javascript-eslint 'tide-mode))

(set-face-attribute 'flycheck-warning nil
                    :foreground "yellow"
                    :background "red")
