ESlint, TypeScript and husky, type verification error record and solution when strict mode is fully enabled

How to configure ESLint to allow the use of any? How to turn off the component naming hump rule detection which is enabled by default?

Component naming 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类型检测
    },
}

Use this in the project, but it prompts that this element implicitly has any type?

// tsconfig.json文件
{
  "compilerOptions": {
    "noImplicitThis": false, // 将改选项设置为false,允许this上下文隐式定义
    }
  }
}

Guess you like

Origin blog.csdn.net/weixin_67665876/article/details/129355515