eslint添加了打字稿检查后,当类定义中的属性变量为Array时将出现错误。



这是我的eslintrc.js
module.exports = {
root: true,
env: {
node: true
},
'extends': ['plugin:vue/essential', '@vue/standard'],
rules: {},
parserOptions: {
parser: '@typescript-eslint/parser',
project: "./tsconfig.json"
},
plugins: ['@typescript-eslint']
};
Run Code Online (Sandbox Code Playgroud)