phindle / error-lens

Visual Studio Code extension which enhances the display of errors and warnings.
https://marketplace.visualstudio.com/items?itemName=PhilHindle.errorlens
MIT License
89 stars 40 forks source link

Unable to trace/disable rule #33

Open RobertLowe opened 4 years ago

RobertLowe commented 4 years ago

Screen Shot 2020-07-02 at 6 20 13 AM

My global .eslintrc.json has:

{
  "rules": {
    "quotes": "off",
    "no-unused-vars": ["error", { "args": "after-used" }]
  }
}

My global .tslint.json

{
  "rules": {
    "no-unused-variable": [true, {"ignore-pattern": "^_", "check-parameters": false}]
  }
}

I don't have tslint extension installed. I did try installing it with and using"tslint.jsEnable": false, still the rule shows

Any idea where this is coming from?

usernamehw commented 4 years ago

From TypeScript?

86347308-22674e80-bc2c-11ea-98a5-c650ffc6a8a3

https://stackoverflow.com/questions/55487341/typescript-error-foo-is-declared-but-its-value-is-never-read-ts6133

RobertLowe commented 4 years ago

Yea, but its running on a JS file

usernamehw commented 4 years ago

They are both powered by one extension in vscode.

usernamehw commented 4 years ago

https://code.visualstudio.com/docs/languages/javascript#_unused-variables-and-unreachable-code

RobertLowe commented 4 years ago

I found a solution, maybe not the best...

Vv4pi

set "javascript.validate.enable": false in settings.json