Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update @eslint-community/eslint-utils to v4.1.2 #1997

Merged
merged 1 commit into from
Nov 28, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -47,7 +47,7 @@
],
"dependencies": {
"@babel/helper-validator-identifier": "^7.19.1",
"@eslint-community/eslint-utils": "^4.1.0",
"@eslint-community/eslint-utils": "^4.1.2",
"ci-info": "^3.6.1",
"clean-regexp": "^1.0.0",
"esquery": "^1.4.0",
Expand Down
5 changes: 0 additions & 5 deletions rules/utils/parentheses.js
Expand Up @@ -9,11 +9,6 @@ Get how many times the node is parenthesized.
@returns {number}
*/
function getParenthesizedTimes(node, sourceCode) {
// Workaround for https://github.com/mysticatea/eslint-utils/pull/25
if (!node.parent) {
return 0;
}

let times = 0;

while (isParenthesized(times + 1, node, sourceCode)) {
Expand Down
2 changes: 1 addition & 1 deletion test/snapshots/prefer-native-coercion-functions.mjs.md
Expand Up @@ -151,7 +151,7 @@ Generated by [AVA](https://avajs.dev).

`␊
> 1 | export default function (v) { return String(v); }␊
| ^^^^^^^^^ function is equivalent to \`String\`. Use \`String\` directly.␊
| ^^^^^^^^^ function 'default' is equivalent to \`String\`. Use \`String\` directly.␊
`

## Invalid #11
Expand Down
Binary file modified test/snapshots/prefer-native-coercion-functions.mjs.snap
Binary file not shown.