Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[catalyst] typescript errors #1654

Open
masterkain opened this issue Dec 29, 2024 · 0 comments
Open

[catalyst] typescript errors #1654

masterkain opened this issue Dec 29, 2024 · 0 comments

Comments

@masterkain
Copy link

minor stuff but prevents compilation if left as-is

yarn run v1.22.22
$ next build
   ▲ Next.js 15.1.3

   Creating an optimized production build ...
 ✓ Compiled successfully

Failed to compile.

./src/components/catalyst/avatar.tsx
48:15  Warning: Using `<img>` could result in slower LCP and higher bandwidth. Consider using `<Image />` from `next/image` or a custom image loader to automatically optimize images. This may incur additional usage or cost from your provider. See: https://nextjs.org/docs/messages/no-img-element  @next/next/no-img-element
65:7  Error: 'classes' is never reassigned. Use 'const' instead.  prefer-const

./src/components/catalyst/badge.tsx
64:7  Error: 'classes' is never reassigned. Use 'const' instead.  prefer-const

./src/components/catalyst/button.tsx
174:7  Error: 'classes' is never reassigned. Use 'const' instead.  prefer-const

./src/components/catalyst/dropdown.tsx
60:7  Error: 'classes' is never reassigned. Use 'const' instead.  prefer-const

./src/components/catalyst/heading.tsx
8:7  Error: 'Element' is never reassigned. Use 'const' instead.  prefer-const
19:7  Error: 'Element' is never reassigned. Use 'const' instead.  prefer-const

./src/components/catalyst/listbox.tsx
112:7  Error: 'sharedClasses' is never reassigned. Use 'const' instead.  prefer-const

./src/components/catalyst/navbar.tsx
19:7  Error: 'id' is never reassigned. Use 'const' instead.  prefer-const
44:7  Error: 'classes' is never reassigned. Use 'const' instead.  prefer-const

./src/components/catalyst/sidebar-layout.tsx
52:8  Error: 'showSidebar' is never reassigned. Use 'const' instead.  prefer-const
52:21  Error: 'setShowSidebar' is never reassigned. Use 'const' instead.  prefer-const

./src/components/catalyst/sidebar.tsx
51:7  Error: 'id' is never reassigned. Use 'const' instead.  prefer-const
86:7  Error: 'classes' is never reassigned. Use 'const' instead.  prefer-const

./src/components/catalyst/stacked-layout.tsx
52:8  Error: 'showSidebar' is never reassigned. Use 'const' instead.  prefer-const
52:21  Error: 'setShowSidebar' is never reassigned. Use 'const' instead.  prefer-const

./src/components/catalyst/table.tsx
58:9  Error: 'striped' is never reassigned. Use 'const' instead.  prefer-const
78:9  Error: 'bleed' is never reassigned. Use 'const' instead.  prefer-const
78:16  Error: 'grid' is never reassigned. Use 'const' instead.  prefer-const
94:9  Error: 'bleed' is never reassigned. Use 'const' instead.  prefer-const
94:16  Error: 'dense' is never reassigned. Use 'const' instead.  prefer-const
94:23  Error: 'grid' is never reassigned. Use 'const' instead.  prefer-const
94:29  Error: 'striped' is never reassigned. Use 'const' instead.  prefer-const
95:9  Error: 'href' is never reassigned. Use 'const' instead.  prefer-const
95:15  Error: 'target' is never reassigned. Use 'const' instead.  prefer-const
95:23  Error: 'title' is never reassigned. Use 'const' instead.  prefer-const
96:8  Error: 'cellRef' is never reassigned. Use 'const' instead.  prefer-const
96:17  Error: 'setCellRef' is never reassigned. Use 'const' instead.  prefer-const
@masterkain masterkain changed the title typescript errors [catalyst] typescript errors Dec 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant