• Jobs
  • About Us
  • professionals
    • Home
    • Jobs
    • Courses and challenges
  • business
    • Home
    • Post vacancy
    • Our process
    • Pricing
    • Assessments
    • Payroll
    • Blog
    • Sales
    • Salary Calculator

0

146
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.

almost 3 years ago · Juan Pablo Isaza
1 answers
Answer question

0

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

"editor.tabSize": 2
almost 3 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

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

Andres GPT

Recommend me some offers
I have an error