- Connecting new drain/overflow drain assembly using coupling
- Constant or proportional speed setting for central heating circulation pump
- Are T-8 lights and T-12 lights safely interchangeable?
- How should I end this wiring?
- Is a wire coiled around a post adequate for grounding light fixture bases?
- What kind of company should I contact to take care of pooled water under the house in the crawl space?
- Schluter vs. concrete board for stacked stone
- A Comparison to Pillai's Conjecture
- Can we prove the divergence of harmonic series like this?
- Spectrum of perturbation of a quasinilpotent operator
- Does Curry's paradox have to be self-referential?
- Elliptic curve point at infinity
- Sum over solutions of a Pell-like equation
- A version of generalized Ito's lemma
- Does every positive ray intersect a deformed simplex? A topological conjecture.
- Filling in a Latin rectangle with 10 subjects and 4 treatments
- How can we find the singularities of the function?
- Deriving soln. of $U_{xx}-sU=1$, where $U=L(u(x,t))=U(x,s)$
- formula for f*$\omega$
- Finding all irreducible polynomials in two variables, having (total) degree two.

# How to enable type-check rules with flycheck-tslint

I want flycheck to use the tslint's --type-check flag to compile my typescript files. In order to see unused imports on the fly inside emacs.

By tslint docs

--type-check

Enables the type checker when running linting rules. --project must be

specified in order to enable type checking.

I also found out that I can set flycheck-tslint-args to add aditional aguments to tslint. Here it is a snippet of my config file

(defun setup-tide-mode ()

(interactive)

(tide-setup)

(flycheck-mode +1)

(flycheck-select-checker 'typescript-tslint)

(if (projectile-project-p)

(message projectile-project-root))

(setq flycheck-tslint-args . ((concat "--project tsconfig.json --type-check " buffer-file-name )))

(setq flycheck-check-syntax-automatically '(save mode-enabled))

...

)

(add-hook 'typescript-mode-hook #'setup-tide-mode)

The equivalent command runs just fine on terminal

~/go/src/github.com/cescoferraro/achars (develop)

��─ �� tslint --project tsc