diff --git a/README.md b/README.md index 2d9263c..4ba24ee 100644 --- a/README.md +++ b/README.md @@ -25,6 +25,7 @@ Write in your ESLint configurations: http://eslint.org/docs/user-guide/configuri ### Configs +- `plugin:@mysticatea/es2021` ... Basic configuration for ES2021. - `plugin:@mysticatea/es2020` ... Basic configuration for ES2020. - `plugin:@mysticatea/es2019` ... Basic configuration for ES2019. - `plugin:@mysticatea/es2018` ... Basic configuration for ES2018. diff --git a/lib/configs.js b/lib/configs.js index de02178..9d9e8ab 100644 --- a/lib/configs.js +++ b/lib/configs.js @@ -14,5 +14,6 @@ module.exports = { es2018: require("./configs/es2018"), es2019: require("./configs/es2019"), es2020: require("./configs/es2020"), + es2021: require("./configs/es2021"), es5: require("./configs/es5"), } diff --git a/lib/configs/_override-2021.js b/lib/configs/_override-2021.js new file mode 100644 index 0000000..0d43486 --- /dev/null +++ b/lib/configs/_override-2021.js @@ -0,0 +1,7 @@ +"use strict" + +module.exports = { + parserOptions: { + ecmaVersion: 2021, + }, +} diff --git a/lib/configs/es2021.js b/lib/configs/es2021.js new file mode 100644 index 0000000..ea682a9 --- /dev/null +++ b/lib/configs/es2021.js @@ -0,0 +1,18 @@ +"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-ts.js"), + require.resolve("./_override-vue.js"), + require.resolve("./_override-mocha.js"), + require.resolve("./_override-special.js"), + ], +}