-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ESLint 9 flat config, Node 20 and ES Modules
- Loading branch information
1 parent
e9a3637
commit 3f26dcc
Showing
10 changed files
with
741 additions
and
717 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
20 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,13 @@ | ||
# CHANGELOG | ||
|
||
## 2.0.0 | ||
|
||
- Rewrote to support new EsLint flat configuration format, now requires EsLint 9 | ||
- Moved to ES Modules syntax | ||
- Changed `ecmaVersion` from `2021` to `latest` (EsLint default) | ||
- Removed explicit `sourceType` set to `module`, it’s already EsLint default | ||
- Removed `es6` and `browser` env, you have to import and set the globals yourself | ||
|
||
## 1.0.0 | ||
|
||
Initial release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import globals from 'globals'; | ||
import config from './index.js'; | ||
|
||
export default [ | ||
config, | ||
{ | ||
languageOptions: { | ||
sourceType: 'module', | ||
globals: { ...globals.node, ...globals.browser }, | ||
}, | ||
}, | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.