vue提示错误:321:11 warning Property name “baseTable” is not PascalCase vue/component-definition-name-casing,错误原因是组件名称的首字母要大写。 export default {name: 'baseTable',//错误写法name: 'BaseTable',//正确写法};
"vue/html-self-closing": 0, "vue/component-name-in-template-casing": 0, "vue/html-closing-bracket-spacing": 0, "vue/singleline-html-element-content-newline": 0, "vue/no-unused-components": 0, "vue/multiline-html-element-content-newline": 0, "vue/no-use-v-if-with-v-for": 0,...
{ 'no-console': [ 'warn', { allow: ['info', 'warn', 'error'] } ], 'vue/valid-v-slot': [ 'error', { allowModifiers: true } ], 'vue/no-unregistered-components': ['off', {}], 'vue/component-name-in-template-casing': [ 'error', 'PascalCase', { registeredComponentsOnly: ...
预设总是以 defineComponent() 包装 Component Options; 不再以警告色显示未知 Component Tag; 改进JS 组件中的Template TypeScript 支持; 减少对阅读 README 的依赖,现在会自动检测常见的项目设置问题(例如错误地设置vueCompilerOptions.target),发现问题时会在状态栏提示。
"vue/component-name-in-template-casing": ["warn", 'kebab-case'], 'vue/singleline-html-element-content-newline': 'off', 'vue/require-default-prop': 'off', 'vue/no-v-html': 'off', 'vue/arrow-spacing': ['warn', { before: true, after: true }], ...
export default antfu({ rules: { 'vue/component-name-in-template-casing': ['error', 'PascalCase', { registeredComponentsOnly: false, ignores: [] }] } }) Use this rule for now, if there are additional additions to the ignores array Author chenyulun commented Jul 24, 2024 This approach...
预设不再需要 "jsx": "preserve",并且不会与 @types/react 冲突(除非明确启用 vueCompilerOptions.jsxTemplates)预设总是以 defineComponent () 包装 Component Options不再以警告色显示未知 Component Tag改进 JS 组件中的 Template TypeScript 支持减少对阅读 README 的依赖,现在会自动检测常见的项目设置问题(...
"vue/multi-word-component-names": "off" } } 在项目根目录新建.eslintignore文件,用于配置哪些文件不用检测 dist node_modules 在package.json中添加脚本 "scripts": { "lint": "eslint src", "fix": "eslint src --fix" }, 八、配置prettier,代码格式化、美化工具 ...
component:'any'}, svg:'any', math:'any'} ],//组件名称小写分割//'vue/component-name-in-template-casing': [//1,//'kebab-case',//{//registeredComponentsOnly: false//}//],'vue/singleline-html-element-content-newline': 'off','vue/no-parsing-error': [2, { 'invalid-first-character...
{'max':1,'allowFirstLine':false}}],'vue/attribute-hyphenation':0,//属性推荐-间隔,避免驼峰'vue/html-self-closing':0,'vue/component-name-in-template-casing':0,'vue/html-closing-bracket-spacing':0,'vue/singleline-html-element-content-newline':0,'vue/no-unused-components':0,'vue/multi...