Hi all, I need to use //@ts-ignore because I’m usi...
# sst
d
Hi all, I need to use //@ts-ignore because I’m using a third-party library that isn’t playing nicely. However, when I
yarn run build
the linter gives the error:
Do not use "@ts-ignore" because it alters compilation errors  @typescript-eslint/ban-ts-comment
So, I’ve created an .eslintrc.json in my root dir and added this to the
rules
section:
"@typescript-eslint/ban-ts-ignore": "off"
. But the linter keeps spitting out the `ban-ts-comment`error. I can’t get the build to run. Ideas?
r
Is the 3rd party library installed in node_modules? If so, it shouldn't really be linted
d
Yes, but it's my code that contains the ts-ignore
f
As a sanity check, does disabling
lint
in ur
sst.json
help?
d
i found the problem. as usual, it exists between the keyboard and the chair. it’s me.
everything is fine with SST.
sorry to take up your time 😳
for anyone in the future who might encounter a problem like this, the issue was that in my estlintrc.json, the “project” property in “parserOptions” referenced the wrong tsconfig.json, and therefore the wrong project. i had it referencing the tsconfig.json in the root dir of my monorepo, instead of the tsconfig.json in the SST project. now it looks like this and everything works correctly
"parserOptions": {
"project": "../../../packages/server/tsconfig.json"
}