Skip to content

Commit

Permalink
[utils] [fix] fixed SyntaxError in node <= 6: Unexpected token ) in p…
Browse files Browse the repository at this point in the history
…arse.js
  • Loading branch information
Stefan Nitsche authored and ljharb committed Oct 13, 2021
1 parent 67103e6 commit 02a15aa
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 4 deletions.
10 changes: 10 additions & 0 deletions utils/.eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,14 @@
"parserOptions": {
"ecmaVersion": 6,
},
"rules": {
"comma-dangle": ["error", {
"arrays": "always-multiline",
"objects": "always-multiline",
"imports": "always-multiline",
"exports": "always-multiline",
"functions": "never"
}],
"no-console": 1,
}
}
3 changes: 0 additions & 3 deletions utils/.eslintrc.yml

This file was deleted.

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](http://keepachangel

## Unreleased

### Fixed
- fixed SyntaxError in node <= 6: Unexpected token ) in parse.js ([#2261], thanks [@VitusFW])

## v2.7.0 - 2021-10-11

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

[#2261]: https://github.com/import-js/eslint-plugin-import/pull/2261
[#2212]: https://github.com/import-js/eslint-plugin-import/pull/2212
[#2160]: https://github.com/import-js/eslint-plugin-import/pull/2160
[#2047]: https://github.com/import-js/eslint-plugin-import/pull/2047
Expand Down Expand Up @@ -137,3 +141,4 @@ Yanked due to critical issue with cache key resulting from #839.
[@sompylasar]: https://github.com/sompylasar
[@timkraut]: https://github.com/timkraut
[@vikr01]: https://github.com/vikr01
[@VitusFW]: https://github.com/VitusFW
2 changes: 1 addition & 1 deletion utils/parse.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ exports.default = function parse(path, content, context) {
console.warn(
'`parseForESLint` from parser `' +
parserPath +
'` is invalid and will just be ignored',
'` is invalid and will just be ignored'
);
} else {
return {
Expand Down

0 comments on commit 02a15aa

Please sign in to comment.