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 of foo 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.
(No tsconfig.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.
Problem
If Typescript is installed locally in
node_modules,atom-typescriptuses it instead of the version shipped with the package. This causes a behavior as ifnoUnusedParameterswas enabled. Setting it explicitly tofalsedidn't solve the problem for me.Reproduction
I was using
atom-typescript12.5.3 when reproducing this like so:foo.ts:npm i typescript.xoffooshould get a blue squiggly underline and the compiler should complain about an unused parameter.tsc foo.tsshould not output any warnings or errors.(No
tsconfig.jsonwas used for reproduction)Expectation
The expected behavior is that
atom-typescriptjust plays by the rules set in thetsconfig.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.