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 OverflowESLint
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.
JetBrains
youtrack.jetbrains.com › issue › WEB-45381 › Verify-support-for-root-true-in-ESLint-configuration-when-setting-a-working-directory
true` in ESLint configuration when setting a working directory
{{ (>_<) }} This version of your browser is not supported. Try upgrading to the latest stable version. Something went seriously wrong
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
archive.eslint.org › docs › user-guide › configuring › configuration-files
Configuration Files - ESLint - Pluggable JavaScript linter
ESLint will stop looking in parent folders once it finds a configuration with "root": true.
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.
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 › 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
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 › 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