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.

[feature request] lint file with extension other than *.js

See original GitHub issue

Currently the plugin only watch js files: documentSelector: ['javascript', 'javascriptreact'],

It would be nice if we can lint other file types, like *.html. eslint has many plugins that can support extracting javascript from other format, like html.

Atom’s eslint plugin, has this option:

image

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Reactions:10
  • Comments:31 (8 by maintainers)

github_iconTop GitHub Comments

43reactions
er1xcommented, Dec 5, 2016

It works like a charm for me (VS Code 1.7.2, Win10). Using in .vue files, as easy as adding .vue extension to eslint.validate (had eslint-plugin-html installed previously):

    "eslint.validate": [
        "javascript",
        "javascriptreact",
        "html",
        "vue"
    ]

Thank you @dbaeumer ! 😄

13reactions
CalebKestercommented, Nov 22, 2016

Would love to have this in .vue files

Read more comments on GitHub >

github_iconTop Results From Across the Web

Configuration Files - 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 >
How to make VS Code treat a file extensions as a certain ...
In the first entry in the example above, .thor is the file ending, ruby is the language ID. The Files: Associations feature was...
Read more >
JavaScript Extensions in Visual Studio Code
Easily integrate ESLint into your project. If ESLint isn't your favorite linter, choose among a variety of other linter extensions, including JSHint, JSCS,...
Read more >
Content Types - ESBuild
Some file extensions already have a loader configured for them by default, ... Then esbuild will avoid using JavaScript features that are too...
Read more >
25 Extensions That Turn Visual Studio Code Into An ... - P42
Let's go into the different features and see what's possible in VS Code with ... Visual Studio Code provides IntelliSense for JavaScript and ......
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