Skip to content

Commit 526f287

Browse files
authored
Update @eslint-community/eslint-utils to v4.1.2 (#1997)
1 parent 8769607 commit 526f287

File tree

4 files changed

+2
-7
lines changed

4 files changed

+2
-7
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
],
4848
"dependencies": {
4949
"@babel/helper-validator-identifier": "^7.19.1",
50-
"@eslint-community/eslint-utils": "^4.1.0",
50+
"@eslint-community/eslint-utils": "^4.1.2",
5151
"ci-info": "^3.6.1",
5252
"clean-regexp": "^1.0.0",
5353
"esquery": "^1.4.0",

rules/utils/parentheses.js

-5
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,6 @@ Get how many times the node is parenthesized.
99
@returns {number}
1010
*/
1111
function getParenthesizedTimes(node, sourceCode) {
12-
// Workaround for https://github.com/mysticatea/eslint-utils/pull/25
13-
if (!node.parent) {
14-
return 0;
15-
}
16-
1712
let times = 0;
1813

1914
while (isParenthesized(times + 1, node, sourceCode)) {

test/snapshots/prefer-native-coercion-functions.mjs.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ Generated by [AVA](https://avajs.dev).
151151
152152
`␊
153153
> 1 | export default function (v) { return String(v); }␊
154-
| ^^^^^^^^^ function is equivalent to \`String\`. Use \`String\` directly.␊
154+
| ^^^^^^^^^ function 'default' is equivalent to \`String\`. Use \`String\` directly.␊
155155
`
156156

157157
## Invalid #11
Binary file not shown.

0 commit comments

Comments
 (0)