Skip to content

Commit 02a15aa

Browse files
Stefan Nitscheljharb
Stefan Nitsche
authored andcommittedOct 13, 2021
[utils] [fix] fixed SyntaxError in node <= 6: Unexpected token ) in parse.js
1 parent 67103e6 commit 02a15aa

File tree

4 files changed

+16
-4
lines changed

4 files changed

+16
-4
lines changed
 

‎utils/.eslintrc

+10
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,14 @@
22
"parserOptions": {
33
"ecmaVersion": 6,
44
},
5+
"rules": {
6+
"comma-dangle": ["error", {
7+
"arrays": "always-multiline",
8+
"objects": "always-multiline",
9+
"imports": "always-multiline",
10+
"exports": "always-multiline",
11+
"functions": "never"
12+
}],
13+
"no-console": 1,
14+
}
515
}

‎utils/.eslintrc.yml

-3
This file was deleted.

‎utils/CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ This change log adheres to standards from [Keep a CHANGELOG](http://keepachangel
55

66
## Unreleased
77

8+
### Fixed
9+
- fixed SyntaxError in node <= 6: Unexpected token ) in parse.js ([#2261], thanks [@VitusFW])
10+
811
## v2.7.0 - 2021-10-11
912

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

103+
[#2261]: https://github.com/import-js/eslint-plugin-import/pull/2261
100104
[#2212]: https://github.com/import-js/eslint-plugin-import/pull/2212
101105
[#2160]: https://github.com/import-js/eslint-plugin-import/pull/2160
102106
[#2047]: https://github.com/import-js/eslint-plugin-import/pull/2047
@@ -137,3 +141,4 @@ Yanked due to critical issue with cache key resulting from #839.
137141
[@sompylasar]: https://github.com/sompylasar
138142
[@timkraut]: https://github.com/timkraut
139143
[@vikr01]: https://github.com/vikr01
144+
[@VitusFW]: https://github.com/VitusFW

‎utils/parse.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ exports.default = function parse(path, content, context) {
9393
console.warn(
9494
'`parseForESLint` from parser `' +
9595
parserPath +
96-
'` is invalid and will just be ignored',
96+
'` is invalid and will just be ignored'
9797
);
9898
} else {
9999
return {

0 commit comments

Comments
 (0)
Please sign in to comment.