You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: docs/user-guide/configuring.md
+3-5
Original file line number
Diff line number
Diff line change
@@ -1061,20 +1061,18 @@ Of particular note is that like `.gitignore` files, all paths used as patterns f
1061
1061
1062
1062
Please see `.gitignore`'s specification for further examples of valid syntax.
1063
1063
1064
-
In addition to any patterns in a `.eslintignore` file, ESLint always ignores files in `/node_modules/*` and `/bower_components/*`.
1064
+
In addition to any patterns in a `.eslintignore` file, ESLint always ignores files in `/**/node_modules/*`.
1065
1065
1066
-
For example, placing the following `.eslintignore` file in the current working directory will ignore all of `node_modules`, `bower_components` in the project root and anything in the `build/` directory except `build/index.js`:
1066
+
For example, placing the following `.eslintignore` file in the current working directory will ignore all of `node_modules/*` and anything in the `build/` directory except `build/index.js`:
1067
1067
1068
1068
```text
1069
-
# /node_modules/* and /bower_components/* in the project root are ignored by default
1069
+
# node_modules/* are ignored by default
1070
1070
1071
1071
# Ignore built files except build/index.js
1072
1072
build/*
1073
1073
!build/index.js
1074
1074
```
1075
1075
1076
-
**Important**: Note that `node_modules` directories in, for example, a `packages` directory in a mono repo are *not* ignored by default and need to be added to `.eslintignore` explicitly.
1077
-
1078
1076
### Using an Alternate File
1079
1077
1080
1078
If you'd prefer to use a different file than the `.eslintignore` in the current working directory, you can specify it on the command line using the `--ignore-path` option. For example, you can use `.jshintignore` file because it has the same format:
0 commit comments