So it looks like eslint supports this
What I had to do is add "root": true to my eslint config file, it now looks something like this:

module.exports = {
    "extends": [
        "configname"
    ],
    "root": true
}

See documentation here

Answer from SagiLow on Stack Overflow
🌐
ESLint
archive.eslint.org › docs › 7.0.0 › user-guide › configuring
Configuring ESLint
ESLint will stop looking in parent folders once it finds a configuration with "root": true.
🌐
GitHub
github.com › eslint › eslint › issues › 3109
root: true not behaving correctly for config · Issue #3109 · eslint/eslint
April 29, 2015 - Scenario: I have eslint folder ... Important to note that our .eslintrc file has root:true so that means it should not grab the file from outside....
Published   Jul 21, 2015
🌐
ESLint
eslint.org › docs › latest › use › configure › configuration-files
Configuration Files - ESLint - Pluggable JavaScript Linter
The ESLint configuration file may be named any of the following: ... It should be placed in the root directory of your project and export an array of configuration objects.
🌐
GitHub
github.com › eslint › eslint › issues › 18639
Bug: Can't reproduce `root: true` behaviour in node API · Issue #18639 · eslint/eslint
When working in a repo that includes several cascading ESLint configs, you can use the root: true configuration option, and that would work great when using ESLint's CLI.
Published   Jul 01, 2024
Author   sahariko
🌐
GitHub
github.com › eslint › eslint › issues › 6206
Having .eslintrc in the root dir causes eslint tests to fail · Issue #6206 · eslint/eslint
I cloned the eslint repo and ran tests. What did you expect to happen? No errors. What actually happened? A few errors (about 70 or so). I think I might be the only one that has such a troubling configuration, because I've already created a few PRs to other quite popular repos, which added "root": true to the .eslintrc config file.
Find elsewhere
🌐
ESLint
eslint.org › blog › 2022 › 08 › new-config-system-part-1
ESLint's new config system, Part 1: Background - ESLint - Pluggable JavaScript Linter
This stopped a bit of the confusion and we ended up automatically including root: true in configs that ESLint generated via the old --init command to help users start off with the least amount of confusion.
🌐
ESLint
denar90.github.io › eslint.github.io › docs › user-guide › configuring
Configuring ESLint
ESLint will stop looking in parent folders once it finds a configuration with "root": true.
🌐
GitHub
github.com › eslint › eslint › issues › 18385
Change Request: Make it easier to inherit flat configs from the repo root · Issue #18385 · eslint/eslint
April 23, 2024 - If you run eslint . at the root of the monorepo, eslint only loads the root config.
Published   Apr 23, 2024
🌐
bud.js
bud.js.org › @roots/bud-eslint
@roots/bud-eslint | bud.js
By default, eslint will not fix errors. You can change this behavior by setting bud.eslint.fix to true.
🌐
GitHub
github.com › nodejs › node › pull › 12570
tools: add `root: true` in main .eslintrc.yaml by vsemozhetbyt · Pull Request #12570 · nodejs/node
tools: add root: true in main .eslintrc.yaml … · bf14dbe · This option prevents ESlint from unnecessary searching in parent folders. It also protects ESlint rules from accidental rewriting by a config in a parent folder.
Author   nodejs
🌐
GitHub
github.com › nodejs › node › commit › 200e899cc4
tools: add `root: true` in main .eslintrc.yaml · nodejs/node@200e899
May 2, 2017 - tools: add root: true in main .eslintrc.yaml · This option prevents ESlint from unnecessary searching in parent folders. It also protects ESlint rules from accidental rewriting by a config in a parent folder.
Author   nodejs
🌐
GitHub
github.com › eslint › eslint › issues › 14972
Fix docs about the config in the root directory · Issue #14972 · eslint/eslint
July 18, 2021 - ESLint will automatically look for them in the directory of the file to be linted, and in successive parent directories all the way up to the root directory of the filesystem (unless root: true is specified).
Published   Aug 24, 2021
🌐
ESLint
eslint.org › docs › latest › use › configure › migration-guide
Configuration Migration Guide - ESLint - Pluggable JavaScript Linter
The following changes have been made from the eslintrc to the flat config file format: The root option no longer exists. (Flat config files act as if root: true is set.)
🌐
GitHub
github.com › nodejs › node › commit › fd126b5866
tools: add `root: true` in main .eslintrc.yaml · nodejs/node@fd126b5
May 18, 2017 - tools: add root: true in main .eslintrc.yaml · This option prevents ESlint from unnecessary searching in parent folders. It also protects ESlint rules from accidental rewriting by a config in a parent folder.
Author   nodejs
🌐
GitHub
github.com › eslint › eslint › issues › 5286
The root:true option doesn't seem to work in a package.json · Issue #5286 · eslint/eslint
What version are you using? v2.0.0 What did you do? Used the root: true option in my package.json's eslintConfig. What happened? eslint merged my project's config with an .eslintrc file found in a parent directory. What did you expect to...
🌐
GitHub
github.com › januswel › zenn-contents › blob › main › articles › 402774d76424e71ac906.md
zenn-contents/articles/402774d76424e71ac906.md at main · januswel/zenn-contents
eslint-plugin-jest パッケージを使いましょう。 ... --- root: true parser: "@typescript-eslint/parser" plugins: - "@typescript-eslint" - jest extends: - eslint:recommended - plugin:@typescript-eslint/recommended - plugin:jest/recommended - prettier
Author   januswel