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
## <aname="posix-character-classes"></a> POSIX character classes in glob patterns
127
+
128
+
ESLint v10.0.0 uses the latest version of [minimatch](https://github.com/isaacs/minimatch), which supports [POSIX character classes](https://www.gnu.org/software/bash/manual/html_node/Pattern-Matching.html) in bracket expressions. ESLint relies on minimatch to match file names against glob patterns, such as those defined in `files`, `ignores`, and `globalIgnores()` within a config, or passed via the CLI.
129
+
130
+
For example, to lint all `.js` files whose names begin with an uppercase letter, you can now run:
131
+
132
+
```shell
133
+
npx eslint "**/[[:upper:]]*.js"
134
+
```
135
+
136
+
Here, `[[:upper:]]` is a POSIX character class that matches uppercase letters in different alphabets.
137
+
138
+
**To address:** If any of the glob patterns in your configuration, CLI arguments, or Node.js API calls look like containing a POSIX character class, verify that they match files as intended.
## <aname="radix"></a> Deprecated options of the `radix` rule
124
143
125
144
As of ESLint v10.0.0, string options `"always"` and `"as-needed"` of the [`radix`](../rules/radix) rule are deprecated. Setting either of these options doesn't change the behavior of this rule, which now always enforces providing a radix, as it was the case when the `"always"` option (default) was specified. Since the default radix depends on the first argument of `parseInt()`, this rule assumes that the second argument (the radix) is always needed.
0 commit comments