Closed shsuman closed 3 years ago
Can you provide some more information? What is your folder structure? Maybe a sample repo to clone for us to check what's wrong?
Here's a repo that I created: https://github.com/shsuman/ts-plugin-test
It has a file ./src/v2/1.ts. And the tsconfig looks like this. { "compilerOptions": { "allowJs": true, "alwaysStrict": true, "declaration": false, "emitDecoratorMetadata": true, "experimentalDecorators": true, "forceConsistentCasingInFileNames": true, "module": "commonjs", "moduleResolution": "node", "noUnusedLocals": true, "outDir": "./dist", "baseUrl": "./src", "plugins": [ { "name": "typescript-strict-plugin", "paths": [ "./src/v2" ] } ], "resolveJsonModule": true, "skipLibCheck": true, "sourceMap": true, "strict": false, "target": "es6" } }
When I open it in VSCode, no errors are shown in the editor, however when I add the comment "//@ts-strict", it works fine.
Hmmm... i've cloned the repository and I have an error there. Are you sure that you have correct typescript version selected as shown in last screenshot below?
@KostkaBrukowa, Are you testing on a windows machine or Linux machine ? I am on a windows machine.
I'm testing on MacOS. Good idea I'll check on Windows machine and see if it works there
And yes, I do have the correct typescript version selected :)
Ok. Thanks for submitting the issue. There is an error on windows machines due to having \
instead of /
in paths and different endlines. PR is on the way. Thanks again
Working fine with //@ts-strict but doesn't work when I set
{ ... "plugins": [ { "name": "typescript-strict-plugin", "paths": [ "./src/v2" ] } ] }