mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-05 19:20:12 +08:00
fix vue eslint error
This commit is contained in:
1 parent
6e4e1cfed1
commit
c353f81b9f
1 file changed
+6
-4
+6
-4
@@ -4,17 +4,16 @@ module.exports = {
|
||||
node: true,
|
||||
jest: true,
|
||||
},
|
||||
plugins: ['@typescript-eslint', 'cypress'],
|
||||
plugins: ['@typescript-eslint', 'cypress', 'vue'],
|
||||
extends: [
|
||||
'plugin:vue/vue3-essential',
|
||||
'airbnb-base',
|
||||
'plugin:prettier/recommended', // We added this
|
||||
'plugin:cypress/recommended',
|
||||
],
|
||||
parser: '@typescript-eslint/parser', // Specify the TypeScript parser
|
||||
|
||||
parser: 'vue-eslint-parser',
|
||||
parserOptions: {
|
||||
ecmaVersion: 13,
|
||||
parser: '@typescript-eslint/parser',
|
||||
sourceType: 'module',
|
||||
},
|
||||
|
||||
@@ -25,6 +24,9 @@ module.exports = {
|
||||
},
|
||||
typescript: {},
|
||||
},
|
||||
vue: {
|
||||
version: '3.0', // Explicitly specify Vue 3
|
||||
},
|
||||
},
|
||||
rules: {
|
||||
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
|
||||
|
||||
Reference in new issue
Block a user