atinux / content-wind

A lightweight Nuxt theme to build a Markdown driven website. Powered by Nuxt Content, TailwindCSS and Iconify.
https://content-wind.nuxt.space
MIT License
791 stars 55 forks source link

eslint shows problems in some files #31

Closed hoanghadu closed 1 year ago

hoanghadu commented 1 year ago

eslint shows problems in VSCode. Is it required any extra configuration?

Here are the list of the problems:

components/content/Alert.vue:

Component name "Alert" should always be multi-word.eslintvue/multi-word-component-names

components/content/List.vue:

Component name "List" should always be multi-word.eslintvue/multi-word-component-names

components/content/AppNavbar.vue:

Property 'twitter' does not exist on type '{}'.ts(2339) Property 'github' does not exist on type '{}'.ts(2339)

components/content/ColorModeSwitch.vue:

Type '{ placeholder: string; }' is not assignable to type 'ComponentProps<{ name: any; props: { placeholder: StringConstructor; tag: { type: StringConstructor; default: string; }; }; }>'. Type '{ placeholder: string; }' is missing the following properties from type '{ name: any; props: { placeholder: StringConstructor; tag: { type: StringConstructor; default: string; }; }; }': name, propsts(2322)

atinux commented 1 year ago

I just updated the eslint config (#37), should be good now!