diff --git a/eslint.config.js b/eslint.config.js index 7792fb04..11379f97 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -1,12 +1,15 @@ -import neostandard, { resolveIgnoresFromGitignore } from 'neostandard' +import { globalIgnores } from 'eslint/config' +import { neostandard, resolveIgnoresFromGitignore } from 'neostandard' -export default neostandard({ - env: ['browser'], - ts: true, - ignores: [ +export default [ + globalIgnores([ ...resolveIgnoresFromGitignore(), 'lib/defaults/default.root.layout.js', 'test-cases/build-errors/src/**/*.js', 'test-cases/page-build-errors/src/**/*.js', - ], -}) + ]), + ...neostandard({ + env: ['browser'], + ts: true, + }), +] diff --git a/examples/preact-isomorphic/src/jsx-page/client.jsx b/examples/preact-isomorphic/src/jsx-page/client.jsx index 2d4707f9..8651d628 100644 --- a/examples/preact-isomorphic/src/jsx-page/client.jsx +++ b/examples/preact-isomorphic/src/jsx-page/client.jsx @@ -10,7 +10,7 @@ import { useState, useEffect } from 'preact/hooks' */ // User profile card component -const ProfileCard = ({ name, role, avatar, isActive }) => ( +export const ProfileCard = ({ name, role, avatar, isActive }) => (
{ {isSubmitted ? ( -
-

Thanks for your feedback, {formData.name}!

-

We'll be in touch at {formData.email}

-
+
+

Thanks for your feedback, {formData.name}!

+

We'll be in touch at {formData.email}

+
) : ( -
-
- - -
- -
- - -
- -
- -