You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I created a simple skeleton vue3/vite app with a little bit basic component Header.vue and Navbar.vue, and the rule multi-word-component-names is set as error as default, so the Header.vue actually throwed a error, I want to change the rule as off, here is my code in eslint.config.ts:
❌can not work
import{globalIgnores}from'eslint/config'import{defineConfigWithVueTs,vueTsConfigs}from'@vue/eslint-config-typescript'importpluginVuefrom'eslint-plugin-vue'importskipFormattingfrom'@vue/eslint-config-prettier/skip-formatting'// To allow more languages other than `ts` in `.vue` files, uncomment the following lines:// import { configureVueProject } from '@vue/eslint-config-typescript'// configureVueProject({ scriptLangs: ['ts', 'tsx'] })// More info at https://github.com/vuejs/eslint-config-typescript/#advanced-setupexportdefaultdefineConfigWithVueTs({name: 'app/files-to-lint',files: ['**/*.{ts,mts,tsx,vue}'],},// custom eslint rules{rules: {'vue/multi-word-component-names': 'off',},},globalIgnores(['**/dist/**','**/dist-ssr/**','**/coverage/**']),pluginVue.configs['flat/essential'],vueTsConfigs.recommended,skipFormatting,)
The code above can not work properly, and I found it's only be work properly when I put the custom rules object in ABOSOLUTE RIGHT back to vueTsConfigs.recommended as the code below after I searched something on Google:
✔can work
import{globalIgnores}from'eslint/config'import{defineConfigWithVueTs,vueTsConfigs}from'@vue/eslint-config-typescript'importpluginVuefrom'eslint-plugin-vue'importskipFormattingfrom'@vue/eslint-config-prettier/skip-formatting'// To allow more languages other than `ts` in `.vue` files, uncomment the following lines:// import { configureVueProject } from '@vue/eslint-config-typescript'// configureVueProject({ scriptLangs: ['ts', 'tsx'] })// More info at https://github.com/vuejs/eslint-config-typescript/#advanced-setupexportdefaultdefineConfigWithVueTs({name: 'app/files-to-lint',files: ['**/*.{ts,mts,tsx,vue}'],},globalIgnores(['**/dist/**','**/dist-ssr/**','**/coverage/**']),pluginVue.configs['flat/essential'],vueTsConfigs.recommended,// custom eslint rules{rules: {'vue/multi-word-component-names': 'off',},},skipFormatting,)
Must be right back of vueTsConfigs.recommended can be work, even in back of but not right back of can not work like the code below:
❌ can not work
import{globalIgnores}from'eslint/config'import{defineConfigWithVueTs,vueTsConfigs}from'@vue/eslint-config-typescript'importpluginVuefrom'eslint-plugin-vue'importskipFormattingfrom'@vue/eslint-config-prettier/skip-formatting'// To allow more languages other than `ts` in `.vue` files, uncomment the following lines:// import { configureVueProject } from '@vue/eslint-config-typescript'// configureVueProject({ scriptLangs: ['ts', 'tsx'] })// More info at https://github.com/vuejs/eslint-config-typescript/#advanced-setupexportdefaultdefineConfigWithVueTs({name: 'app/files-to-lint',files: ['**/*.{ts,mts,tsx,vue}'],},globalIgnores(['**/dist/**','**/dist-ssr/**','**/coverage/**']),pluginVue.configs['flat/essential'],vueTsConfigs.recommended,skipFormatting,// custom eslint rules{rules: {'vue/multi-word-component-names': 'off',},},)
Is it a bug or just regulated as it, kindly thanks for every comment and help.
The text was updated successfully, but these errors were encountered:
Hey, everyone.
I created a simple skeleton vue3/vite app with a little bit basic component
Header.vue
andNavbar.vue
, and the rulemulti-word-component-names
is set aserror
as default, so theHeader.vue
actually throwed a error, I want to change the rule asoff
, here is my code ineslint.config.ts
:❌can not work
The code above can not work properly, and I found it's only be work properly when I put the custom rules object in ABOSOLUTE RIGHT back to
vueTsConfigs.recommended
as the code below after I searched something on Google:✔can work
Must be right back of
vueTsConfigs.recommended
can be work, even in back of but not right back of can not work like the code below:❌ can not work
Is it a bug or just regulated as it, kindly thanks for every comment and help.
The text was updated successfully, but these errors were encountered: