The solution is to define an overrideConfigFile option to point to the location of the ESLint configuration file in the workspace in the settings.json like so:

{
    "eslint.options": { "overrideConfigFile": "./path/to/eslint.config.js" }
}

Since ESLint v8.x, the ESLint extension in VSCode uses the ESLint Class API to "[...] configure how ESLint is started". The extension documents that "[...] to point to a custom .eslintrc.json file using the new ESLint API" is as shown above.

For good measure, since the configuration file used is the new flat config file, the eslint.useFlatConfig setting can also be explicitly set to true. In the settings.json:

{
    "eslint.useFlatConfig": true
}

Since version 3.0.5 of the extension, the activation of this setting works like this:

  • 8.57.0 <= ESLint version < 9.x: setting is honored and defaults to false.
  • 9.0.0 <= ESLint version < 10.x: settings is honored and defaults to true.
Answer from amoralesc on Stack Overflow
🌐
Medium
medium.com › @jeryldev › a-beginners-story-how-to-setup-eslint-in-a-visual-studio-code-project-28b379a33cdb
How to set up ESLint in a Visual Studio Code project — my 5 minute story | by Jeryl Donato Estopace | Medium
December 31, 2018 - After searching for answers over the web, I found out that I need to execute ‘eslint --init’ in the node_modules/eslint sub folder that contains a package.json file. Back in my Command Prompt, I navigated to node_modules\eslint sub folder ...
Discussions

visual studio code - How to configure the eslint extension in vscode? - Stack Overflow
The vscode eslint extension says: Configuration Options eslint.enable: enable/diable eslint. Is enabled by default. eslint.options: an option bag as defined by the ESLint API here. Defaults to an... More on stackoverflow.com
🌐 stackoverflow.com
Eslint cant find the config file in the root folder of a project when it is a multi-folder workspace in VS Code... Any suggestions?
Eslint cant find the config file in the root folder of a project when it is a multi-folder workspace in VS Code... Any suggestions? More on github.com
🌐 github.com
1
1
visual studio code - Configuring ESLint with VSCode - Stack Overflow
I have the following directory structure: / ├──.node-modules ├──server # server code │ ├──... ├──shared # modules used by client and server ├──webapp # client... More on stackoverflow.com
🌐 stackoverflow.com
eslint - Set path for linter in setting.json [vscode] - Stack Overflow
To fix this I need to add something that specifies the path to the linting file in the project I was told but not shown how to do that. ... You need to specify in settings.json where the eslint.json file is. The code is ... This got my linter working in vscode again, hope this helps someone ... More on stackoverflow.com
🌐 stackoverflow.com
🌐
DigitalOcean
digitalocean.com › community › tutorials › linting-and-formatting-with-eslint-in-vs-code
How To Lint and Format Code with ESLint in Visual Studio Code | DigitalOcean
1 week ago - Using the --save-dev flag ensures that eslint will be listed in your package.json file as a development dependency only. Now that ESLint is installed, you can initialize an ESLint configuration for your project using the following command: ... An important piece in this command is the --init flag. The ./node_modules/.bin/eslint section of the command is the path to ESLint in your project.
🌐
Dave Ceddia
daveceddia.com › vscode-use-eslintrc
ESLint + VSCode: How to Format Your Code Using .eslintrc
Most blog posts wanted to make an entire tutorial out of this… how to set up eslint, how to create the .eslintrc file, etc etc… but I didn’t need that. I have an existing project, I just want to configure VSCode to use ESLint instead of Prettier. This turned out to only need 4 lines of settings config and a plugin. ... In VSCode, open the extension browser with the button on the left. On the Mac, the keyboard shortcut Cmd+Shift+X should do the same. ... Install the top result, called “ESLint”. (It’s this one with over 10 million downloads)
🌐
Visual Studio Marketplace
marketplace.visualstudio.com › items
ESLint - Visual Studio Marketplace
Extension for Visual Studio Code - Integrates ESLint JavaScript into VS Code.
Find elsewhere
🌐
GitHub
github.com › microsoft › vscode-eslint
GitHub - microsoft/vscode-eslint: VSCode extension to integrate eslint into VSCode · GitHub
For ESLint v9 and later (or v8.57+ with flat config), this should be one of: ... Read more about ESLint CLI. For projects using older ESLint versions (< 8.57), use a legacy .eslintrc file (.eslintrc.json, .eslintrc.js, etc.).
Starred by 1.9K users
Forked by 369 users
Languages   TypeScript 62.7% | Jupyter Notebook 31.1% | JavaScript 5.8%
🌐
YouTube
youtube.com › watch
VSCode and ESLint Setup - YouTube
👨🏻‍💻 I made DevPayHub for solo devs. Payments & users handled.https://devpayhub.com Combine ESLint and VSCode for some helpful code style/quality highligh...
Published   August 3, 2022
🌐
Medium
medium.com › wearelaika › javascript-eslint-global-configuration-setup-vscode-599cbfc81eb5
JavaScript: ESLint Global Configuration Setup (VSCode) | by Ivan Stevkovski | wearelaika | Medium
January 30, 2020 - Once you’ve completed your configuration, scroll to the bottom of the “Rules Configuration” tab and press the “Download .eslintrc.json file with this configuration” link. ... and copy the .eslintrc.json file to that location. ESLint will use this as the default configuration for all of your .js files unless another file inside the project is created in which case the project level configuration overrides the global configuration. At this point, you should be able to lint any .js file by simply running ... Simply open up VSCode and open the Extensions from the sidebar.
🌐
DEV Community
dev.to › devdammak › setting-up-eslint-in-your-javascript-project-with-vs-code-2amf
Eslint Vscode: Setting up ESLINT in your JavaScript Project with VS Code - DEV Community
March 4, 2019 - you can download VS Code from their official website VS Code Download · NB: I won't be digging deep into VS Code..everything on VS Code in this post will only be related to ESLINT. ... after the operation was successful it will create a package.json file that will manage all configuration for our project.
🌐
GitHub
github.com › microsoft › vscode-eslint › issues › 712
Use file location for `.eslintrc.js` resolution · Issue #712 · microsoft/vscode-eslint
July 11, 2019 - It seems that eslint.workingDirectories could be a (very inelegant and manual) solution to this problem, by specifying every directory, that has an .eslintrc.js file as a working directory. Is there no way for vscode-eslint to "just" follow the same resolution logic that eslint uses?
Author   buschtoens
🌐
Reddit
reddit.com › r/vscode › use custom path for eslintrc file.
r/vscode on Reddit: use custom path for eslintrc file.
November 21, 2022 - I recently setup eslint with husky in vscode. Due to the structure of my project the. .eslintrc file is inside a folder with name client. Now when I…
🌐
GitHub
gist.github.com › xypnox › 8f3ed34531d6ae47667fc063e9ac284e
Setup ESLint for React and VSCode · GitHub
Although you can install it globally ... eslint-config-prettier eslint-plugin-prettier -D · This file should be located at the root directory of your react project and is used as settings for eslint....
🌐
GitHub
github.com › microsoft › vscode-eslint › issues › 2047
Unable to find the ESLint config file of the workspace in the VS Code · Issue #2047 · microsoft/vscode-eslint
April 21, 2025 - 2025-08-07 14:47:53.973 [error] Error: Could not find config file. at assertConfigurationExists (C:\Sources\FE-MainApplication\node_modules\eslint\lib\config\config-loader.js:80:17) at LegacyConfigLoader.loadConfigArrayForFile (C:\Sources\FE-MainApplication\node_modules\eslint\lib\config\config-loader.js:414:3) at async ESLint.lintText (C:\Sources\FE-MainApplication\node_modules\eslint\lib\eslint\eslint.js:940:4) at async c:\Users\hmiyab\.vscode\extensions\dbaeumer.vscode-eslint-3.0.16\server\out\eslintServer.js:1:189380 at async O (c:\Users\hmiyab\.vscode\extensions\dbaeumer.vscode-eslint-3.0
Author   Hamcker
🌐
Medium
cloudonhire.medium.com › how-to-lint-with-eslint-in-visual-studio-code-ec996cf3b572
How to Lint with ESLint in Visual Studio Code | by CloudOnHire | Medium
October 23, 2025 - eslint-config-airbnb-base@latest eslint@⁵.16.0 || ^6.8.0 || ^7.2.0 eslint-plugin-import@².21.2 ... Choose the Yes option to install the dependencies with npm. You will also be asked to install extra packages. Choose yes. After completing all the prompts, you’ll notice that a file named .eslintrc.json has been added to your vscode-eslint-example directory.