Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add ES2022 config #5

Merged
merged 1 commit into from
Oct 14, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ Write in your ESLint configurations: http://eslint.org/docs/user-guide/configuri

### Configs

- `plugin:@eslint-community/mysticatea/es2022` ... Basic configuration for ES2022.
- `plugin:@eslint-community/mysticatea/es2021` ... Basic configuration for ES2021.
- `plugin:@eslint-community/mysticatea/es2020` ... Basic configuration for ES2020.
- `plugin:@eslint-community/mysticatea/es2019` ... Basic configuration for ES2019.
Expand Down
1 change: 1 addition & 0 deletions lib/configs.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,6 @@ module.exports = {
es2019: require("./configs/es2019"),
es2020: require("./configs/es2020"),
es2021: require("./configs/es2021"),
es2022: require("./configs/es2022"),
es5: require("./configs/es5"),
}
7 changes: 7 additions & 0 deletions lib/configs/_override-2022.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
"use strict"

module.exports = {
parserOptions: {
ecmaVersion: 2022,
},
}
19 changes: 19 additions & 0 deletions lib/configs/es2022.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
"use strict"

module.exports = {
extends: [
require.resolve("./_base.js"),
require.resolve("./_override-2015.js"),
require.resolve("./_override-2016.js"),
require.resolve("./_override-2017.js"),
require.resolve("./_override-2018.js"),
require.resolve("./_override-2019.js"),
require.resolve("./_override-2020.js"),
require.resolve("./_override-2021.js"),
require.resolve("./_override-2022.js"),
require.resolve("./_override-ts.js"),
require.resolve("./_override-vue.js"),
require.resolve("./_override-mocha.js"),
require.resolve("./_override-special.js"),
],
}