diff --git a/eslint.config.mjs b/eslint.config.mjs index 10193d0..b9e50be 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -1,6 +1,11 @@ import tseslint from 'typescript-eslint' +import solid from 'eslint-plugin-solid/configs/typescript' export default tseslint.config( + { + files: ['**/*.{js,ts,jsx,tsx}'], + ...solid + }, { ignores: ['**/dist/'] }, diff --git a/examples/full/pages/images/+Page.tsx b/examples/full/pages/images/+Page.tsx index d7cd5cc..414d41f 100644 --- a/examples/full/pages/images/+Page.tsx +++ b/examples/full/pages/images/+Page.tsx @@ -25,22 +25,23 @@ function Page() { ); } -function Image({ src, author }: { src: string; author: string }) { +function Image(props: { src: string; author: string }) { return ( <> - + + /> ); diff --git a/examples/full/pages/index/+Page.tsx b/examples/full/pages/index/+Page.tsx index 7232688..c05dd05 100644 --- a/examples/full/pages/index/+Page.tsx +++ b/examples/full/pages/index/+Page.tsx @@ -15,7 +15,7 @@ const ClientOnlyCounterSlow = clientOnly(async () => { function Page() { return ( <> - +

My Vike + Solid App

This page is: