Skip to content

Commit

Permalink
[utils] [fix] parse: remove unneeded extra backticks
Browse files Browse the repository at this point in the history
  • Loading branch information
G-Rath authored and ljharb committed Sep 9, 2024
1 parent fcbdcba commit f72f207
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions utils/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ This change log adheres to standards from [Keep a CHANGELOG](https://keepachange

## Unreleased

### Fixed
- `parse`: remove unneeded extra backticks ([#3057], thanks [@G-Rath])

## v2.11.0 - 2024-09-05

### New
Expand Down Expand Up @@ -165,6 +168,7 @@ Yanked due to critical issue with cache key resulting from #839.
### Fixed
- `unambiguous.test()` regex is now properly in multiline mode

[#3057]: https://github.com/import-js/eslint-plugin-import/pull/3057
[#3049]: https://github.com/import-js/eslint-plugin-import/pull/3049
[#3039]: https://github.com/import-js/eslint-plugin-import/pull/3039
[#3018]: https://github.com/import-js/eslint-plugin-import/pull/3018
Expand Down Expand Up @@ -204,6 +208,7 @@ Yanked due to critical issue with cache key resulting from #839.
[@brettz9]: https://github.com/brettz9
[@christophercurrie]: https://github.com/christophercurrie
[@DMartens]: https://github.com/DMartens
[@G-Rath]: https://github.com/G-Rath
[@hulkish]: https://github.com/hulkish
[@Hypnosphi]: https://github.com/Hypnosphi
[@iamnapo]: https://github.com/iamnapo
Expand Down
2 changes: 1 addition & 1 deletion utils/parse.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ exports.default = function parse(path, content, context) {
if (!ast || typeof ast !== 'object') {
console.warn(
// Can only be invalid for custom parser per imports/parser
'`parseForESLint` from parser `' + (typeof parserOrPath === 'string' ? parserOrPath : '`context.languageOptions.parser`') + '` is invalid and will just be ignored'
'`parseForESLint` from parser `' + (typeof parserOrPath === 'string' ? parserOrPath : 'context.languageOptions.parser') + '` is invalid and will just be ignored'

Check warning on line 164 in utils/parse.js

View check run for this annotation

Codecov / codecov/patch

utils/parse.js#L164

Added line #L164 was not covered by tests
);
} else {
// @ts-expect-error TODO: FIXME
Expand Down

0 comments on commit f72f207

Please sign in to comment.