diff --git a/lib/configs/recommended.js b/lib/configs/recommended.js index 7d982a2b..d5f02cb3 100644 --- a/lib/configs/recommended.js +++ b/lib/configs/recommended.js @@ -2,6 +2,18 @@ 'use strict' module.exports = { + parser: require.resolve('vue-eslint-parser'), + parserOptions: { + ecmaVersion: 2018, + sourceType: 'module', + ecmaFeatures: { + jsx: true + } + }, + env: { + browser: true, + es6: true + }, plugins: ['vue-i18n'], rules: { 'vue-i18n/no-missing-keys': 'error', diff --git a/scripts/update-recommended-rules.js b/scripts/update-recommended-rules.js index 9b7edc7e..68b6626d 100644 --- a/scripts/update-recommended-rules.js +++ b/scripts/update-recommended-rules.js @@ -17,6 +17,18 @@ writeFileSync( 'use strict' module.exports = { + parser: require.resolve('vue-eslint-parser'), + parserOptions: { + ecmaVersion: 2018, + sourceType: 'module', + ecmaFeatures: { + jsx: true + } + }, + env: { + browser: true, + es6: true + }, plugins: ['vue-i18n'], rules: { ${rules.filter(rule => rule.recommended)