Closed
Description
Problem
If Typescript is installed locally in node_modules
, atom-typescript
uses it instead of the version shipped with the package. This causes a behavior as if noUnusedParameters
was enabled. Setting it explicitly to false
didn't solve the problem for me.
Reproduction
I was using atom-typescript
12.5.3 when reproducing this like so:
- In an empty folder, open Atom and create a file
foo.ts
:
function foo(x: string)
{}
- No errors or warnings should be reported.
- Now open a console in that folder and install Typescript locally:
npm i typescript
. - Restart or reload (Ctrl + Shift + F5) Atom.
- Once the package has been initialized, the parameter
x
offoo
should get a blue squiggly underline and the compiler should complain about an unused parameter. - Running
tsc foo.ts
should not output any warnings or errors.
(Notsconfig.json
was used for reproduction)
Expectation
The expected behavior is that atom-typescript
just plays by the rules set in the tsconfig.json
, no matter whether it uses it's own or a locally installed version of Typescript. I haven't tested whether this affects any other settings.