• Home
  • Jobs
  • Courses
  • Questions
  • Teachers
  • For business
  • ES/EN

0

16
Views
Eslint thinks a tab is 4 spaces

When using ESLint in Microsoft Visual Studio Code, ESLint is deciding that my tab is four spaces. When I click 'quick fix' and 'fix this indent problem' it fixes it fine, but why is my tab key not inserting a tab ESLint recognizes? I have read this and turned off editor.insertSpaces but that does not seem to have fixed it. Any idea how to get ESLint to register my tabs? I would prefer not to disable the rule entirely, but I will if I have to.

Edit: it would seem that this problem only occurs in my index.js file.

about 1 month ago ·

Juan Pablo Isaza

1 answers
Answer question

0

In settings.json file, you should add this line:

"editor.tabSize": 2
about 1 month ago · Juan Pablo Isaza Report
Answer question
Find remote jobs
Loading

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post job Plans Our process Sales
Legal
Terms and conditions Privacy policy
© 2022 PeakU Inc. All Rights Reserved.