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,
|
node: true,
|
||||||
jest: true,
|
jest: true,
|
||||||
},
|
},
|
||||||
plugins: ['@typescript-eslint', 'cypress'],
|
plugins: ['@typescript-eslint', 'cypress', 'vue'],
|
||||||
extends: [
|
extends: [
|
||||||
'plugin:vue/vue3-essential',
|
'plugin:vue/vue3-essential',
|
||||||
'airbnb-base',
|
'airbnb-base',
|
||||||
'plugin:prettier/recommended', // We added this
|
'plugin:prettier/recommended', // We added this
|
||||||
'plugin:cypress/recommended',
|
'plugin:cypress/recommended',
|
||||||
],
|
],
|
||||||
parser: '@typescript-eslint/parser', // Specify the TypeScript parser
|
parser: 'vue-eslint-parser',
|
||||||
|
|
||||||
parserOptions: {
|
parserOptions: {
|
||||||
ecmaVersion: 13,
|
parser: '@typescript-eslint/parser',
|
||||||
sourceType: 'module',
|
sourceType: 'module',
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -25,6 +24,9 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
typescript: {},
|
typescript: {},
|
||||||
},
|
},
|
||||||
|
vue: {
|
||||||
|
version: '3.0', // Explicitly specify Vue 3
|
||||||
|
},
|
||||||
},
|
},
|
||||||
rules: {
|
rules: {
|
||||||
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
|
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
|
||||||
|
|||||||
Reference in new issue
Block a user