It looks like you have an ESLint configuration file in the Project folder, which is up the directory structure of your actual project folder.

When you run ESLint in a folder, ESLint first looks for configuration files in that folder. Then, it looks in the parent folder - if there is a configuration file there, it merges it with the initial configuration file. ESLint keeps going up the directory structure and merges each configuration file it finds, until it reaches your root directory.

If you want to limit ESLint to the configuration file in your project, add this in the eslintrc.js or eslintrc.json file:

{
  "root": true
}

This will make ESLint stop looking for configuration files beyond this one.

Whichever file you add the root key to, delete the other file. If there is more than one configuration file in a folder, ESLint will use only one (between eslintrc.js and eslintrc.json, it will use the former, because each format has a priority order).

You can find more information about the priority order here and how ESLint looks for configuration files here.

Answer from Akasha on Stack Overflow
🌐
ESLint
eslint.org › docs › latest › use › configure › configuration-files
Configuration Files - ESLint - Pluggable JavaScript Linter
A pluggable and configurable linter tool for identifying and reporting on patterns in JavaScript. Maintain your code quality with ease.
🌐
ESLint
eslint.org › docs › latest › use › configure
Configure ESLint - ESLint - Pluggable JavaScript Linter
A pluggable and configurable linter tool for identifying and reporting on patterns in JavaScript. Maintain your code quality with ease.
🌐
GitHub
github.com › standard › eslint-config-standard-react › blob › master › eslintrc.json
eslint-config-standard-react/eslintrc.json at master · standard/eslint-config-standard-react
ESLint Shareable Config for React/JSX support in JavaScript Standard Style - eslint-config-standard-react/eslintrc.json at master · standard/eslint-config-standard-react
Author   standard
🌐
Oreate AI
oreateai.com › blog › eslints-evolving-configuration-from-eslintrcjson-to-eslintconfigmjs › b8917888392d26a9442cf1ce3ece648b
ESLint's Evolving Configuration: From .eslintrc.json to eslint.config.mjs - Oreate AI Blog
January 27, 2026 - Explore the evolution of ESLint configuration, from the familiar .eslintrc.json to the modern, modular eslint.config.mjs, and understand the benefits of the new flat config system.
🌐
ESLint
eslint.org › docs › latest › use › getting-started
Getting Started with ESLint - ESLint - Pluggable JavaScript Linter
A pluggable and configurable linter tool for identifying and reporting on patterns in JavaScript. Maintain your code quality with ease.
Find elsewhere
🌐
npm
npmjs.com › package › eslint-plugin-json
eslint-plugin-json - npm
eslint plugin for JSON files. Latest version: 4.0.1, last published: 2 years ago. Start using eslint-plugin-json in your project by running `npm i eslint-plugin-json`. There are 414 other projects in the npm registry using eslint-plugin-json.
      » npm install eslint-plugin-json
    
Published   Aug 07, 2024
Version   4.0.1
Author   Azeem Bande-Ali
🌐
GitHub
github.com › serverless › examples › blob › master › .eslintrc.json
examples/.eslintrc.json at master · serverless/examples
Serverless Examples – A collection of boilerplates and examples of serverless architectures built with the Serverless Framework on AWS Lambda, Microsoft Azure, Google Cloud Functions, and more. - examples/.eslintrc.json at master · serverless/examples
Author   serverless
🌐
ESLint
eslint.org › docs › latest › use › configure › migration-guide
Configuration Migration Guide - ESLint - Pluggable JavaScript Linter
A pluggable and configurable linter tool for identifying and reporting on patterns in JavaScript. Maintain your code quality with ease.
🌐
GitHub
github.com › eslint › json
GitHub - eslint/json: JSON language plugin for ESLint · GitHub
JSON language plugin for ESLint. Contribute to eslint/json development by creating an account on GitHub.
Starred by 111 users
Forked by 18 users
Languages   JavaScript 95.0% | TypeScript 5.0%
🌐
xjavascript
xjavascript.com › blog › eslintrcjson-typescript
Understanding and Using `eslintrc.json` with TypeScript — xjavascript.com
The `.eslintrc.json` file is at the heart of ESLint configuration, allowing developers to define rules, plugins, and environments to enforce a specific coding style and catch potential errors early in the development process.
🌐
ESLint
denar90.github.io › eslint.github.io › docs › user-guide › configuring
Configuring ESLint
A pluggable and configurable linter tool for identifying and reporting on patterns in JavaScript. Maintain your code quality with ease.
🌐
ESLint
eslint.org › blog › 2024 › 05 › eslint-configuration-migrator
Introducing the ESLint Configuration Migrator - ESLint - Pluggable JavaScript Linter
A pluggable and configurable linter tool for identifying and reporting on patterns in JavaScript. Maintain your code quality with ease.
🌐
Reddit
reddit.com › r/learnjavascript › eslint doesn't include a .eslintrc file
r/learnjavascript on Reddit: eslint doesn't include a .eslintrc file
April 28, 2024 -

I want to use eslint (v 9.1.1) for a react project. From following the documentation, I did the following:

  • npm init eslint/config

Following that it says the following: https://eslint.org/docs/v8.x/use/getting-started#configuration

After running npm init eslint/config, you’ll have an .eslintrc.{js,yml,json} file in your directory.

Yet that file doesn't exist in my directory. Any idea why this file wasn't included?

🌐
Mastering JS
masteringjs.io › tutorials › eslint › config
Intro to ESLint Config Files - Mastering JS
ESLint config files let you define what rules ESLint enforces and what environment your project is targetting. Here's what you need to know.
🌐
Reddit
reddit.com › r/typescript › eslintrc.js to eslintrc.ts
r/typescript on Reddit: eslintrc.js to eslintrc.ts
September 6, 2022 -

I'm trying to replace all require with import statements, per my ESLint rules, and changing all extensions from .js to .ts where possible. I changed .eslintrc.js to .eslintrc.ts and now my lint command is failing, stating "ESLint couldn't find a configuration file." I've set up a monorepo using Turborepo. Any insight would be appreciated.

.eslintrc.ts

export default {
  env: {
    node: true,
  },
  parser: '@typescript-eslint/parser',
  extends: [
    'eslint:recommended',
    'plugin:@typescript-eslint/recommended',
    'prettier',
  ],
  plugins: ['@typescript-eslint'],
  parserOptions: {
    sourceType: 'module',
    ecmaVersion: 'latest',
  },
  rules: {
    '@typescript-eslint/no-non-null-assertion': 'off',
    '@typescript-eslint/no-var-requires': 'off',
    'no-console': 2,
  },
};

.eslintrc.cjs

import 'config/.eslintrc';

Any advice would be appreciated!

🌐
Google
chromium.googlesource.com › external › github.com › twbs › bootstrap › + › refs › tags › v4.1.2 › .eslintrc.json
.eslintrc.json - external/github.com/twbs/bootstrap - Git at Google
Sign in · chromium/external/github.com/twbs/bootstrap/refs/tags/v4.1.2/./.eslintrc.json · blob: 38ba819fd7637db59ba40c877f860f7deff3bc35 [file] [log] [blame] · Powered by Gitiles| Privacy| Termstxt json