 If we don't disable it, then it will generally just generate
 several thousand errors, disable itself, and print a warning."
     (when (locate-dominating-file "node_modules")
-      (make-local-variable 'flycheck-disabled-checkers)
-      (cl-pushnew 'typescript-tslint flycheck-disabled-checkers)))
+      (radian--flycheck-disable-checkers 'typescript-tslint)))
 
   ;; Fix capitalization. It's TypeScript, not typescript.
   :delight (typescript-mode "TypeScript" :major))

  :straight (:host github :repo "raxod502/flycheck" :branch "fork/4"
                   :upstream (:host github :repo "flycheck/flycheck"
                                    :branch "master"))
  :demand t
  :config

  (global-flycheck-mode +1)

  (defun radian--flycheck-c/c++-setup ()
    "Disable some Flycheck checkers for CC modes.
This function is for use in `c-mode-hook' and `c++-mode-hook'."
    ;; These checkers are usually not accurate enough to find proper
    ;; headers and such. Disable them by default.
    (radian--flycheck-disable-checkers 'c/c++-clang 'c/c++-gcc))

  (add-hook 'c-mode #'radian--flycheck-c/c++-setup)
  (add-hook 'c++-mode #'radian--flycheck-c/c++-setup))
