Hey there! I'm in the process of migrating my Vue3 project from JavaScript to TypeScript and I've encountered a problem:
https://i.sstatic.net/y5tG8.png
Below is a snippet of my code in a .vue file:
<script setup lang="ts">
const toto = (msg: string) => {
console.log(msg)
}
</script>
And here is an excerpt from my eslintrc.js file:
module.exports = {
'env': {
'browser': true,
'es2021': true
},
'extends': [
'eslint:recommended',
'plugin:vue/vue3-essential'
],
'parserOptions': {
'ecmaVersion': 13,
'sourceType': 'module'
},
'plugins': [
'vue'
],
'rules': {
'vue/multi-word-component-names': 'off',
'vue/object-curly-spacing': [2, 'always'],
'vue/html-closing-bracket-spacing': [2, {
'selfClosingTag': 'always'
}],
'vue/max-attributes-per-line': [2, {
'singleline': {
'max': 1
},
'multiline': {
'max': 1
}
}],
'semi': [2, 'never']
}
}