question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Config file ignored when linting

See original GitHub issue

If you specify a config file in deno.config and that config deno.json file disables linting rules such as: { "lint" : { "rules" : { "exclude" : ["no-unused-vars"] } } }

VSCode Deno plugin still shows all lint errors. Seems to ignore the config file entirely when it comes to linting.

If I run deno lint --config ... from the command line, it works fine, the lint error is ignored.

vscode: 1.60.2 deno: 1.15.1 extension: 3.9.1

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Sembiancecommented, Oct 15, 2021

Weird, it turns out it’s a different extension I have that is using vscode.languages.getDiagnostics() to get the current errors and then display them inline. For whatever reason it’s still showing the deno-ts errors in there, even though they are ignored by the config file. I’ll have to troubleshoot that, see if I can determine if there is some sort of error cache somewhere that’s not being flushed. Thanks for the help, sorry to bother with a ‘Not a bug’ 😃

0reactions
bartlomiejucommented, Oct 15, 2021

In you example I only get this diagnostic: Screenshot 2021-10-15 at 14 46 53

which comes from the TypeScript’s server not the deno lint

Read more comments on GitHub >

github_iconTop Results From Across the Web

Ignoring Code - ESLint - Pluggable JavaScript Linter
You can tell ESLint to ignore specific files and directories using ignorePatterns in your config files. ignorePatterns patterns follow the same rules as...
Read more >
Warning for ignored files on linting · Issue #9977 - GitHub
It seems like the answer to this problem has previously been to just run eslint on directories and to avoid lists of files...
Read more >
Should linters config files be in .gitignore? - Stack Overflow
Things like editor config files belong only in the user's global git ignore. Otherwise, your project has to explicitly ignore config files for ......
Read more >
Configuration — SQLFluff 1.4.5 documentation
SQLFluff uses nesting in its configuration files, with files closer overriding (or ... Types of errors that can be ignored include: lexing. linting....
Read more >
Ignoring Code - Prettier
Use “prettier-ignore” comments to ignore parts of files. Ignoring Files: .prettierignore. To exclude files from formatting, create a .prettierignore file in the ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found