Skip to content

Commit

Permalink
chore: upgrade eslint config for support vue3 eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
cuixiaorui committed Sep 20, 2020
1 parent e412741 commit 396ce7b
Showing 1 changed file with 8 additions and 13 deletions.
21 changes: 8 additions & 13 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,22 +11,17 @@ module.exports = {
chrome: true
},
extends: [
'plugin:vue/essential',
'standard',
'prettier',
'plugin:json/recommended'
'plugin:json/recommended',
'plugin:vue/vue3-essential',
'eslint:recommended',
'@vue/prettier'
],
parserOptions: {
ecmaVersion: 12,
sourceType: 'module',
ecmaFeatures: {
jsx: true
}
parser: 'babel-eslint'
},
plugins: ['vue', 'prettier'],
rules: {
'prettier/prettier': ['error'],
'no-case-declarations': ['off'],
'vue/no-use-v-if-with-v-for': ['off']
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'prettier/prettier': 'error'
}
}

0 comments on commit 396ce7b

Please sign in to comment.