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
feat: remove support for ignore files in FlatESLint (#16355)
* do not use `gitignoreToMinimatch` on `--ignore-pattern`
* remove .eslintignore lookup
* remove flat-eslint tests that assume .eslintignore lookup
* remove --ignore-path CLI option
* remove ignorePath contructor option
* update docs and jsdoc
* do not use gitIgnoreToMinimatch on ignorePatterns constructor option
Copy file name to clipboardExpand all lines: docs/src/user-guide/configuring/configuration-files-new.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -132,7 +132,7 @@ This configuration object applies to all files except those ending with `.config
132
132
133
133
#### Globally ignoring files with `ignores`
134
134
135
-
If `ignores` is used without any other keys in the configuration object, then the patterns act as additional global ignores, similar to those found in `.eslintignore`. Here's an example:
135
+
If `ignores` is used without any other keys in the configuration object, then the patterns act as global ignores. Here's an example:
136
136
137
137
```js
138
138
exportdefault [
@@ -142,7 +142,7 @@ export default [
142
142
];
143
143
```
144
144
145
-
This configuration specifies that all of the files in the `.config` directory should be ignored. This pattern is added after the patterns found in `.eslintignore`.
145
+
This configuration specifies that all of the files in the `.config` directory should be ignored. This pattern is added after the default patterns, which are `["**/node_modules/**", ".git/**"]`.
* @property {boolean|Function} [fix] Execute in autofix mode. If a function, should return a boolean.
77
75
* @property {string[]} [fixTypes] Array of rule types to apply fixes for.
78
76
* @property {boolean} [globInputPaths] Set to false to skip glob resolution of input file paths to lint (default: true). If false, each input file paths is assumed to be a non-glob path to an existing file.
79
-
* @property {boolean} [ignore] False disables use of .eslintignore.
80
-
* @property {string} [ignorePath] The ignore file to use instead of .eslintignore.
81
-
* @property {string[]} [ignorePatterns] Ignore file patterns to use in addition to .eslintignore.
77
+
* @property {boolean} [ignore] False disables all ignore patterns except for the default ones.
78
+
* @property {string[]} [ignorePatterns] Ignore file patterns to use in addition to config ignores.
82
79
* @property {ConfigData} [overrideConfig] Override config object, overrides all configs used with this instance
83
80
* @property {boolean|string} [overrideConfigFile] Searches for default config file when falsy;
84
81
* doesn't do any config file lookup when `true`; considered to be a config filename
@@ -151,30 +148,6 @@ function calculateStatsPerRun(results) {
151
148
});
152
149
}
153
150
154
-
/**
155
-
* Loads global ignore patterns from an ignore file (usually .eslintignore).
156
-
* @param {string} filePath The filename to load.
157
-
* @returns {ignore} A function encapsulating the ignore patterns.
0 commit comments