Skip to content

Commit 9adf016

Browse files
committed
Set 'ecmaVersion' to 'latest'.
1 parent b52cb96 commit 9adf016

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
were changed, added, or removed between v8 and v9.
1010
- The way configuration is done change significantly. Suggestions welcome on
1111
how best to adapt to the new style.
12+
- **BREAKING**: Set `ecmaVersion` to `latest`. Override in project config if a
13+
specific version limitation is required.
1214

1315
### Migration
1416
- ESLint v9 is a major breaking change and will require manual updates.

import.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import eslintPluginImport from 'eslint-plugin-import';
33
export default [
44
{
55
languageOptions: {
6-
ecmaVersion: 2020,
6+
ecmaVersion: 'latest',
77
sourceType: 'module'
88
},
99
plugins: {

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export default [
55
js.configs.recommended,
66
{
77
languageOptions: {
8-
ecmaVersion: 2022,
8+
ecmaVersion: 'latest',
99
sourceType: 'module'
1010
},
1111
rules: {

module.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export default [
44
//eslintPluginUnicorn.configs['flat/recommended'],
55
{
66
languageOptions: {
7-
ecmaVersion: 2022,
7+
ecmaVersion: 'latest',
88
sourceType: 'module'
99
},
1010
plugins: {

0 commit comments

Comments
 (0)