Skip to content
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.

Highlight is not correct when using tabs as indent #41

Open
ccloli opened this issue Nov 3, 2016 · 2 comments
Open

Highlight is not correct when using tabs as indent #41

ccloli opened this issue Nov 3, 2016 · 2 comments
Labels

Comments

@ccloli
Copy link

ccloli commented Nov 3, 2016

Here is a screenshot of using tabs as indent, you can see the highlight doesn't mark where goes wrong.
Screenshot

It works fine when using 4 spaces instead of one tab.
Screenshot

Highlight tip is [jshint] 'type' / 'value' is already defined. (W004)

@RMacfarlane
Copy link
Contributor

I haven't been able to reproduce this yet. Could you share your VSCode version and settings?

@RMacfarlane
Copy link
Contributor

This is caused by an issue in JSHint, jshint/jshint#3151. I checked in a workaround for it, but I think I will actually revert that since I don't want to mask the problem and it may cause issues for users with older versions of JSHint.

As a workaround, you can add indent: 1 to your .jshintrc file.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants