diff --git a/.prettierrc b/.prettierrc index b4bfed3579..a82f8790ea 100644 --- a/.prettierrc +++ b/.prettierrc @@ -1,3 +1,9 @@ { - "plugins": ["prettier-plugin-tailwindcss"] + "plugins": ["prettier-plugin-tailwindcss"], + "semi": true, + "singleQuote": false, + "trailingComma": "all", + "bracketSpacing": true, + "bracketSameLine": true, + "arrowParens": "always" } diff --git a/README.md b/README.md index 5797a74a14..4312b95cd1 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,25 @@ +``` +Short Style Guide TS React and Engine: + +No use of lets + +No basic for loop operators. +Use the collection operators and array operators. + +React Side / No modules over 200 lines. ( loose rule ) + +Don't do: +if (condition) return; + +Do: +if (condition) { + return; +} + +No use of any type. +If you can use chat gpt to create the interface. +``` + # IF YOU ARE WORKING ON THIS PROJECT PLEASE ASK THE TEAM MEMBERS HOW TO SET UP THIS IS OUTDATED INFORMATION # GottaGoFast-SS Fast Prototyping with Better Netlify Pipeline: diff --git a/app/components/Input.tsx b/app/components/Input.tsx index 2d5ebbfe6d..15274cada4 100644 --- a/app/components/Input.tsx +++ b/app/components/Input.tsx @@ -6,32 +6,23 @@ import { kebabCase } from "~/utilities"; interface InputProps extends React.InputHTMLAttributes { label?: string; - icon?: IconDefinition + icon?: IconDefinition; } -export function Input({ - label, icon, className, id, ...rest -}: InputProps) { +export function Input({ label, icon, className, id, ...rest }: InputProps) { return (
- {label && - - } + {label && }
{icon && ( - + )} diff --git a/app/components/ItemPicker.tsx b/app/components/ItemPicker.tsx index 905f757cea..a40b10d07a 100644 --- a/app/components/ItemPicker.tsx +++ b/app/components/ItemPicker.tsx @@ -30,7 +30,7 @@ export const ItemPicker = ({ > style
-

+

{label}

diff --git a/app/components/Textarea.tsx b/app/components/Textarea.tsx index cc35c75ac2..e1d0e05849 100644 --- a/app/components/Textarea.tsx +++ b/app/components/Textarea.tsx @@ -30,7 +30,7 @@ export const Textarea = ({