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.

Infer `eslint.validate` from plugins configuration.

See original GitHub issue

demo repo: https://github.com/clock157/bug-vscode-eslint-typescript

run command can found error but not report in vscode.

set setting.json not work too.

+"eslint.options": {
+        "extensions": [".ts", ".tsx"]
+},

Issue Analytics

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

github_iconTop GitHub Comments

3reactions
Sujimoshicommented, Mar 6, 2019

The same. My config:

{
    "eslint.autoFixOnSave": true,
    "eslint.validate": [ 
        "javascript", 
        "javascriptreact", 
        { "language": "typescript", "autoFix": true },
        { "language": "typescriptreact", "autoFix": true } 
    ],
    "eslint.options": {
        "extensinons": [".ts", ".js", ".tsx", ".jsx"]
    },
}
1reaction
dbaeumercommented, Mar 8, 2019

The problem here is that eslint (the npm module) out of the box only validates JS files. Everything else comes in as a configuration. What I can look into is whether I am able to infer this from the plugins section.

Read more comments on GitHub >

github_iconTop Results From Across the Web

VS Code ESLint extension - Visual Studio Marketplace
eslint.validate - an array of language identifiers specifying the files for which validation is to be enforced. This is an old legacy setting...
Read more >
Working with Plugins - ESLint - Pluggable JavaScript Linter
A pluggable and configurable linter tool for identifying and reporting on patterns in JavaScript. Maintain your code quality with ease.
Read more >
A list of awesome ESLint plugins, configs, etc. - Gitee
Adjunct - A reasonable collection of plugins to use alongside your main ESLint configuration. Ash-Nazg - One config to rule them all!
Read more >
How to add typescript-eslint rules to eslint - Stack Overflow
We are able to configure built in rules like no-console but @typescript-eslint/no-inferrable-types is not accepting our overrides. We even tried ...
Read more >
Advanced linting with Create React App, Typescript, and ESLint
json configuration file. But there are many, many more useful rules available in ESLint and ESLint Typescript plugins. It should be mentioned ...
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