Skip to content

Commit

Permalink
feat: update eslint parser config
Browse files Browse the repository at this point in the history
  • Loading branch information
fisker committed Aug 22, 2019
1 parent 05ff614 commit f6f7a85
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
12 changes: 5 additions & 7 deletions packages/eslint-config-vue/index.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
const base = require('@fisker/eslint-config')

module.exports = {
root: true,
// stupid eslint-plugin-vue override parserOptions
// eslint-plugin-vue override parserOptions
// https://github.com/vuejs/eslint-plugin-vue/blob/c3111fed451807eb92dc3f5020d144fbd2af9fda/lib/configs/base.js#L8
parserOptions: {
ecmaVersion: 2020,
sourceType: 'module',
ecmaFeatures: {
globalReturn: false,
jsx: true,
},
...base.parserOptions,
parser: 'babel-eslint',
},
extends: [
'@fisker/eslint-config',
Expand Down
1 change: 1 addition & 0 deletions packages/eslint-config/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ module.exports = {
parserOptions: {
ecmaVersion: 2020,
sourceType: 'module',
allowImportExportEverywhere: true,
ecmaFeatures: {
globalReturn: false,
jsx: true,
Expand Down

0 comments on commit f6f7a85

Please sign in to comment.