Questions tagged [vscode-eslint]

7 questions
42
votes
9 answers

Extension 'eslint' is configured as formatter but it cannot format 'JavaScript'-files

I am experiencing an intermittent problem with ESLint in VS Code. When saving a file, instead of formatting it, this message shows in the status bar: Apparently no one has ever reported this message on Google. When I say it is intermittent, it was…
Steve Bennett
  • 114,604
  • 39
  • 168
  • 219
14
votes
4 answers

'Fix all auto-fixable problems' doesn't fix as many issues as possible vscode-eslint

Often times, when I try to run the , Fix all auto-fixable issues command on my Javascript files, the app goes into a never-ending loop of moving the tabs/spaces around, but never really getting satisfied: My .eslintrc.js is as follows: const fs =…
nikjohn
  • 20,026
  • 14
  • 50
  • 86
7
votes
3 answers

vscode eslint not ignoring directory?

Despite clearly indicating in esignore that I want to ignore everything inside lib directory, vscode is saying 9 problems found in that minimized file. If I run eslint inside foldera in command line everything is fine using this extension My…
Muhammad Umer
  • 17,263
  • 19
  • 97
  • 168
5
votes
1 answer

Using a different .eslintrc config file for typescript and javascript in VSCode?

I have a project with both JS and TS files (and JSX/TSX). I have a separate .eslintrc.json file for JS vs. TS. I'd like to be able to tell VSCode which eslint config file to use depending on the file extension. Tried putting the settings in…
Octodone
  • 515
  • 6
  • 13
3
votes
0 answers

how to write fixer for custom eslint rule

I am writing custom eslint rules. The rules are flagging the correct spot in the code, but Visual Studio Code is not offering my quick fixes. Here's the start of the code: module.exports = { meta: { type: "suggestion", docs: { …
Jason Hocker
  • 6,879
  • 9
  • 46
  • 79
1
vote
1 answer

eslint-config-react-app is invalid Property "overrides" is the wrong type

I have a lot of ESLint warnings and I noticed my VSCode isn't showing me them in my code. It's only visible in the console log for my react app. I checked the output of ESLint in VSCode and it says: [Info - 2:43:19 PM] ESLint configuration in…
AskYous
  • 4,332
  • 9
  • 46
  • 82
0
votes
0 answers

eslintignore vscode windows for files outside workspace

I am using a snippet manager that dynamically creates editor files when I edit the snippet. eg C:\Users\myUserName\AppData\Local\Temp\bXNSZWNlaXZlQnJvYWRjYXN0.javascript.snippet I have set the language to JavaScript so I get syntax colours. Eslint…
Murrah
  • 1,508
  • 1
  • 13
  • 26