Skip to content

Commit

Permalink
ESLint: Set root: true to bypass fallback configs.
Browse files Browse the repository at this point in the history
Otherwise a generic `.eslintrc.js` might be loaded in some environments.

> By default, ESLint looks for configuration files in all parent folders up to the root directory. This can be useful if you want all of your projects to follow a certain convention, but can sometimes lead to unexpected results.
> https://eslint.org/docs/latest/use/configure/configuration-files#cascading-and-hierarchy
  • Loading branch information
iandunn committed May 16, 2023
1 parent d8879df commit 182a87a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions settings/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
module.exports = {
root: true,
extends: 'plugin:@wordpress/eslint-plugin/recommended',

rules: {
Expand Down

0 comments on commit 182a87a

Please sign in to comment.