怎么给ESLint 配置允许使用 any?怎么关闭默认开启的组件命名驼峰规则检测?
组件命名error: Component name "xxx" should always be multi-word
// .eslintrc.js文件
module.exports = {
rules: {
'vue/multi-word-component-names': 'off', // 关闭组件驼峰命名检测
'@typescript-eslint/no-explicit-any': 'off', // 关闭any类型检测
},
}
在项目中使用this,却提示this元素隐式具有any类型?
// tsconfig.json文件
{
"compilerOptions": {
"noImplicitThis": false, // 将改选项设置为false,允许this上下文隐式定义
}
}
}