Skip to content

Commit

Permalink
Language: Add es2022 config
Browse files Browse the repository at this point in the history
  • Loading branch information
edg2s committed May 19, 2022
1 parent 0ab72bf commit 255bfc4
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions language/es2021.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"extends": [
"./rules-es2021",
"plugin:es-x/restrict-to-es2021",
"plugin:es-x/no-new-in-esnext",
"./patch"
],
"parserOptions": {
Expand Down
14 changes: 14 additions & 0 deletions language/es2022.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"plugins": [ "es-x" ],
"extends": [
"./rules-es2022",
"plugin:es-x/restrict-to-es2022",
"./patch"
],
"parserOptions": {
"ecmaVersion": 2022
},
"env": {
"es2022": true
}
}
3 changes: 3 additions & 0 deletions language/rules-es2022.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "./rules-es2021"
}

0 comments on commit 255bfc4

Please sign in to comment.