diff --git a/packages/common/index.js b/packages/common/index.js index a76c5ed..2ba04bc 100644 --- a/packages/common/index.js +++ b/packages/common/index.js @@ -1,4 +1,9 @@ module.exports = { + env: { + es6: true, + browser: true, + node: true, + }, plugins: [ '@typescript-eslint', ], diff --git a/packages/vue/index.js b/packages/vue/index.js index 642b99c..0daae3b 100644 --- a/packages/vue/index.js +++ b/packages/vue/index.js @@ -1,10 +1,14 @@ module.exports = { - parser: '@typescript-eslint/parser', + parser: 'vue-eslint-parser', + parserOptions: { + parser: '@typescript-eslint/parser', + }, extends: [ '@antfu/eslint-config', + 'plugin:vue/recommended', ], plugins: [ + 'vue' ], - rules: { - } + rules: {} }