forked from Code-4-Community/scaffolding
-
Notifications
You must be signed in to change notification settings - Fork 0
[SSF 140] Fix Frontend Linting Issues #106
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
Merged
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
d83842e
Fixed all files for proper componnt child checks
dburkhart07 522e7ac
Fianl commit
dburkhart07 02c8e6e
Started convertion
dburkhart07 0dd76bf
prettier
dburkhart07 0f786c9
Fixed children permissions
dburkhart07 d747165
Reverted commit
dburkhart07 00529fa
Fixed typing
dburkhart07 697fe35
Final commit
dburkhart07 932577a
Merged main
dburkhart07 0349c33
Removed Text components
dburkhart07 628f51c
pls work
dburkhart07 77ae0ae
Merged main
dburkhart07 74f499a
Merged main
dburkhart07 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,82 @@ | ||
| /* eslint-disable @typescript-eslint/no-empty-object-type */ | ||
dburkhart07 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| /* eslint-disable @typescript-eslint/no-explicit-any */ | ||
| /* eslint-disable @typescript-eslint/no-empty-interface */ | ||
| import '@chakra-ui/react'; | ||
| import React from 'react'; | ||
|
|
||
| // This file serves as an extension onto some select chakra-ui components that we use | ||
| // It essentially allows us to give permissions for these components to have children | ||
| // Which, while the DOM renders just fine, TypeScript throws errors for unless these are specified | ||
| declare module '@chakra-ui/react' { | ||
| export interface ComponentPropsStrictChildren { | ||
| asChild?: boolean; // Enables composition pattern | ||
| children?: JSX.Element | JSX.Element[]; // Allows child elements only | ||
| as?: React.ElementType; // Polymorphic component prop | ||
| [key: string]: any; // Catch-all for any other props | ||
| } | ||
|
|
||
| export interface ComponentPropsLenientChildren { | ||
| asChild?: boolean; // Enables composition pattern | ||
| children?: React.ReactNode; // Allows child elements (any combination of components/strings) | ||
| as?: React.ElementType; // Polymorphic component prop | ||
| [key: string]: any; // Catch-all for any other props | ||
| } | ||
|
|
||
| // Menu components | ||
| export interface MenuTriggerProps extends ComponentPropsStrictChildren {} | ||
| export interface MenuContentProps extends ComponentPropsStrictChildren {} | ||
| export interface MenuItemProps extends ComponentPropsLenientChildren {} | ||
| export interface MenuPositionerProps extends ComponentPropsStrictChildren {} | ||
| export interface MenuRootProps extends ComponentPropsStrictChildren {} | ||
| export interface MenuCheckboxItemProps extends ComponentPropsStrictChildren {} | ||
| export interface MenuRadioItemGroupProps | ||
| extends ComponentPropsStrictChildren {} | ||
| export interface MenuRadioItemProps extends ComponentPropsLenientChildren {} | ||
|
|
||
| // Dialog components | ||
| export interface DialogCloseTriggerProps | ||
| extends ComponentPropsStrictChildren {} | ||
| export interface DialogContentProps extends ComponentPropsStrictChildren {} | ||
| export interface DialogBackdropProps extends ComponentPropsStrictChildren {} | ||
| export interface DialogPositionerProps extends ComponentPropsStrictChildren {} | ||
| export interface DialogTitleProps extends ComponentPropsLenientChildren {} | ||
| export interface DialogTriggerProps extends ComponentPropsStrictChildren {} | ||
|
|
||
| // Checkbox components | ||
| export interface CheckboxLabelProps extends ComponentPropsLenientChildren {} | ||
| export interface CheckboxControlProps extends ComponentPropsStrictChildren {} | ||
|
|
||
| // Radio components | ||
| export interface RadioGroupItemProps extends ComponentPropsStrictChildren {} | ||
| export interface RadioGroupItemControlProps | ||
| extends ComponentPropsStrictChildren {} | ||
| export interface RadioGroupItemTextProps | ||
| extends ComponentPropsLenientChildren {} | ||
|
|
||
| // Pagination components | ||
| export interface PaginationPrevTriggerProps | ||
| extends ComponentPropsStrictChildren {} | ||
| export interface PaginationNextTriggerProps | ||
| extends ComponentPropsStrictChildren {} | ||
| export interface PaginationItemsProps extends ComponentPropsStrictChildren {} | ||
|
|
||
| // Tabs components | ||
| export interface TabsTriggerProps extends ComponentPropsLenientChildren {} | ||
| export interface TabsContentProps extends ComponentPropsLenientChildren {} | ||
| export interface TabsListProps extends ComponentPropsStrictChildren {} | ||
|
|
||
| // Field components | ||
| export interface FieldLabelProps extends ComponentPropsLenientChildren {} | ||
| export interface FieldRootProps extends ComponentPropsLenientChildren {} | ||
| export interface FieldHelperTextProps extends ComponentPropsLenientChildren {} | ||
|
|
||
| // Common components | ||
| export interface ButtonProps extends ComponentPropsStrictChildren {} | ||
| export interface IconButtonProps extends ComponentPropsStrictChildren {} | ||
| export interface BoxProps extends ComponentPropsStrictChildren {} | ||
| export interface LinkProps extends ComponentPropsStrictChildren {} | ||
| export interface TextProps extends ComponentPropsStrictChildren {} | ||
| export interface CardProps extends ComponentPropsStrictChildren {} | ||
| export interface CardBodyProps extends ComponentPropsStrictChildren {} | ||
| export interface TextareaProps extends ComponentPropsStrictChildren {} | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.