Build/Refactor: lint pre-commit hook and reformat repo to spec (#314)

* build/refactor: move lint/prettier packages to project root, install husky, add pre-commit hook

* refactor: reformat files

* build: put full eslintrc back with all rules
This commit is contained in:
Dan Orlando 2023-05-18 11:09:31 -07:00 committed by GitHub
parent 8d75b25104
commit 7fdc862042
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
157 changed files with 4836 additions and 2403 deletions

View file

@ -2,16 +2,11 @@ import React from 'react';
export default function BingChatIcon() {
return (
<svg
xmlns="http://www.w3.org/2000/svg"
width="41"
height="41"
fill="none"
>
<svg xmlns="http://www.w3.org/2000/svg" width="41" height="41" fill="none">
<path
fill="#174AE4"
d="M8 0a8 8 0 1 1-3.613 15.14l-.121-.065-3.645.91a.5.5 0 0 1-.62-.441v-.082l.014-.083.91-3.644-.063-.12a7.95 7.95 0 0 1-.83-2.887l-.025-.382L0 8a8 8 0 0 1 8-8Zm.5 9h-3l-.09.008a.5.5 0 0 0 0 .984L5.5 10h3l.09-.008a.5.5 0 0 0 0-.984L8.5 9Zm2-3h-5l-.09.008a.5.5 0 0 0 0 .984L5.5 7h5l.09-.008a.5.5 0 0 0 0-.984L10.5 6Z"
/>
</svg>
);
}
}

View file

@ -1,6 +1,6 @@
import React from 'react';
export default function BingIcon({ size=25 }) {
export default function BingIcon({ size = 25 }) {
return (
<svg
width={size}
@ -42,39 +42,15 @@ export default function BingIcon({ size=25 }) {
y2="38.1597"
gradientUnits="userSpaceOnUse"
>
<stop stopColor="#37BDFF"/>
<stop
offset="0.1832"
stopColor="#33BFFD"
/>
<stop
offset="0.3576"
stopColor="#28C5F5"
/>
<stop
offset="0.528"
stopColor="#15D0E9"
/>
<stop
offset="0.5468"
stopColor="#12D1E7"
/>
<stop
offset="0.5903"
stopColor="#1CD2E5"
/>
<stop
offset="0.7679"
stopColor="#42D8DC"
/>
<stop
offset="0.9107"
stopColor="#59DBD6"
/>
<stop
offset="1"
stopColor="#62DCD4"
/>
<stop stopColor="#37BDFF" />
<stop offset="0.1832" stopColor="#33BFFD" />
<stop offset="0.3576" stopColor="#28C5F5" />
<stop offset="0.528" stopColor="#15D0E9" />
<stop offset="0.5468" stopColor="#12D1E7" />
<stop offset="0.5903" stopColor="#1CD2E5" />
<stop offset="0.7679" stopColor="#42D8DC" />
<stop offset="0.9107" stopColor="#59DBD6" />
<stop offset="1" stopColor="#62DCD4" />
</linearGradient>
<linearGradient
id="paint1_linear_36_2239"
@ -84,39 +60,15 @@ export default function BingIcon({ size=25 }) {
y2="45.3798"
gradientUnits="userSpaceOnUse"
>
<stop stopColor="#39D2FF"/>
<stop
offset="0.1501"
stopColor="#38CEFE"
/>
<stop
offset="0.2931"
stopColor="#35C3FA"
/>
<stop
offset="0.4327"
stopColor="#2FB0F3"
/>
<stop
offset="0.5468"
stopColor="#299AEB"
/>
<stop
offset="0.5827"
stopColor="#2692EC"
/>
<stop
offset="0.7635"
stopColor="#1A6CF1"
/>
<stop
offset="0.909"
stopColor="#1355F4"
/>
<stop
offset="1"
stopColor="#104CF5"
/>
<stop stopColor="#39D2FF" />
<stop offset="0.1501" stopColor="#38CEFE" />
<stop offset="0.2931" stopColor="#35C3FA" />
<stop offset="0.4327" stopColor="#2FB0F3" />
<stop offset="0.5468" stopColor="#299AEB" />
<stop offset="0.5827" stopColor="#2692EC" />
<stop offset="0.7635" stopColor="#1A6CF1" />
<stop offset="0.909" stopColor="#1355F4" />
<stop offset="1" stopColor="#104CF5" />
</linearGradient>
<linearGradient
id="paint2_linear_36_2239"
@ -126,23 +78,11 @@ export default function BingIcon({ size=25 }) {
y2="1.52914"
gradientUnits="userSpaceOnUse"
>
<stop stopColor="#1B48EF"/>
<stop
offset="0.1221"
stopColor="#1C51F0"
/>
<stop
offset="0.3212"
stopColor="#1E69F5"
/>
<stop
offset="0.5676"
stopColor="#2190FB"
/>
<stop
offset="1"
stopColor="#26B8F4"
/>
<stop stopColor="#1B48EF" />
<stop offset="0.1221" stopColor="#1C51F0" />
<stop offset="0.3212" stopColor="#1E69F5" />
<stop offset="0.5676" stopColor="#2190FB" />
<stop offset="1" stopColor="#26B8F4" />
</linearGradient>
<linearGradient
id="paint3_linear_36_2239"
@ -152,48 +92,18 @@ export default function BingIcon({ size=25 }) {
y2="32.6475"
gradientUnits="userSpaceOnUse"
>
<stop stopColor="white"/>
<stop
offset="0.3726"
stopColor="#FDFDFD"
/>
<stop
offset="0.5069"
stopColor="#F6F6F6"
/>
<stop
offset="0.6026"
stopColor="#EBEBEB"
/>
<stop
offset="0.68"
stopColor="#DADADA"
/>
<stop
offset="0.7463"
stopColor="#C4C4C4"
/>
<stop
offset="0.805"
stopColor="#A8A8A8"
/>
<stop
offset="0.8581"
stopColor="#888888"
/>
<stop
offset="0.9069"
stopColor="#626262"
/>
<stop
offset="0.9523"
stopColor="#373737"
/>
<stop
offset="0.9926"
stopColor="#090909"
/>
<stop offset="1"/>
<stop stopColor="white" />
<stop offset="0.3726" stopColor="#FDFDFD" />
<stop offset="0.5069" stopColor="#F6F6F6" />
<stop offset="0.6026" stopColor="#EBEBEB" />
<stop offset="0.68" stopColor="#DADADA" />
<stop offset="0.7463" stopColor="#C4C4C4" />
<stop offset="0.805" stopColor="#A8A8A8" />
<stop offset="0.8581" stopColor="#888888" />
<stop offset="0.9069" stopColor="#626262" />
<stop offset="0.9523" stopColor="#373737" />
<stop offset="0.9926" stopColor="#090909" />
<stop offset="1" />
</linearGradient>
<linearGradient
id="paint4_linear_36_2239"
@ -203,56 +113,21 @@ export default function BingIcon({ size=25 }) {
y2="47.9822"
gradientUnits="userSpaceOnUse"
>
<stop stopColor="white"/>
<stop
offset="0.3726"
stopColor="#FDFDFD"
/>
<stop
offset="0.5069"
stopColor="#F6F6F6"
/>
<stop
offset="0.6026"
stopColor="#EBEBEB"
/>
<stop
offset="0.68"
stopColor="#DADADA"
/>
<stop
offset="0.7463"
stopColor="#C4C4C4"
/>
<stop
offset="0.805"
stopColor="#A8A8A8"
/>
<stop
offset="0.8581"
stopColor="#888888"
/>
<stop
offset="0.9069"
stopColor="#626262"
/>
<stop
offset="0.9523"
stopColor="#373737"
/>
<stop
offset="0.9926"
stopColor="#090909"
/>
<stop offset="1"/>
<stop stopColor="white" />
<stop offset="0.3726" stopColor="#FDFDFD" />
<stop offset="0.5069" stopColor="#F6F6F6" />
<stop offset="0.6026" stopColor="#EBEBEB" />
<stop offset="0.68" stopColor="#DADADA" />
<stop offset="0.7463" stopColor="#C4C4C4" />
<stop offset="0.805" stopColor="#A8A8A8" />
<stop offset="0.8581" stopColor="#888888" />
<stop offset="0.9069" stopColor="#626262" />
<stop offset="0.9523" stopColor="#373737" />
<stop offset="0.9926" stopColor="#090909" />
<stop offset="1" />
</linearGradient>
<clipPath id="clip0_36_2239">
<rect
width="37"
height="56"
fill="white"
transform="translate(10)"
></rect>
<rect width="37" height="56" fill="white" transform="translate(10)"></rect>
</clipPath>
</defs>
</svg>

View file

@ -15,18 +15,8 @@ export default function CautionIcon() {
xmlns="http://www.w3.org/2000/svg"
>
<path d="M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z" />
<line
x1="12"
y1="9"
x2="12"
y2="13"
/>
<line
x1="12"
y1="17"
x2="12.01"
y2="17"
/>
<line x1="12" y1="9" x2="12" y2="13" />
<line x1="12" y1="17" x2="12.01" y2="17" />
</svg>
);
}

View file

@ -15,14 +15,7 @@ export default function Clipboard() {
xmlns="http://www.w3.org/2000/svg"
>
<path d="M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2"></path>
<rect
x="8"
y="2"
width="8"
height="4"
rx="1"
ry="1"
/>
<rect x="8" y="2" width="8" height="4" rx="1" ry="1" />
</svg>
);
}

View file

@ -14,18 +14,8 @@ export default function CrossIcon() {
width="1em"
xmlns="http://www.w3.org/2000/svg"
>
<line
x1="18"
y1="6"
x2="6"
y2="18"
/>
<line
x1="6"
y1="6"
x2="18"
y2="18"
/>
<line x1="18" y1="6" x2="6" y2="18" />
<line x1="6" y1="6" x2="18" y2="18" />
</svg>
);
}

View file

@ -14,21 +14,9 @@ export default function DotsIcon() {
width="1em"
xmlns="http://www.w3.org/2000/svg"
>
<circle
cx="12"
cy="12"
r="1"
/>
<circle
cx="19"
cy="12"
r="1"
/>
<circle
cx="5"
cy="12"
r="1"
/>
<circle cx="12" cy="12" r="1" />
<circle cx="19" cy="12" r="1" />
<circle cx="5" cy="12" r="1" />
</svg>
);
}

View file

@ -1,6 +1,6 @@
import React from 'react';
export default function GPTIcon({ button = false, menu = false, size=25 }) {
export default function GPTIcon({ button = false, menu = false, size = 25 }) {
let unit = '41';
let height = size;
let width = size;

View file

@ -14,59 +14,15 @@ export default function LightModeIcon() {
width="1em"
xmlns="http://www.w3.org/2000/svg"
>
<circle
cx="12"
cy="12"
r="5"
/>
<line
x1="12"
y1="1"
x2="12"
y2="3"
/>
<line
x1="12"
y1="21"
x2="12"
y2="23"
/>
<line
x1="4.22"
y1="4.22"
x2="5.64"
y2="5.64"
/>
<line
x1="18.36"
y1="18.36"
x2="19.78"
y2="19.78"
/>
<line
x1="1"
y1="12"
x2="3"
y2="12"
/>
<line
x1="21"
y1="12"
x2="23"
y2="12"
/>
<line
x1="4.22"
y1="19.78"
x2="5.64"
y2="18.36"
/>
<line
x1="18.36"
y1="5.64"
x2="19.78"
y2="4.22"
/>
<circle cx="12" cy="12" r="5" />
<line x1="12" y1="1" x2="12" y2="3" />
<line x1="12" y1="21" x2="12" y2="23" />
<line x1="4.22" y1="4.22" x2="5.64" y2="5.64" />
<line x1="18.36" y1="18.36" x2="19.78" y2="19.78" />
<line x1="1" y1="12" x2="3" y2="12" />
<line x1="21" y1="12" x2="23" y2="12" />
<line x1="4.22" y1="19.78" x2="5.64" y2="18.36" />
<line x1="18.36" y1="5.64" x2="19.78" y2="4.22" />
</svg>
);
}

View file

@ -16,12 +16,7 @@ export default function LogOutIcon() {
>
<path d="M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4" />
<polyline points="16 17 21 12 16 7" />
<line
x1="21"
y1="12"
x2="9"
y2="12"
/>
<line x1="21" y1="12" x2="9" y2="12" />
</svg>
);
}

View file

@ -14,54 +14,14 @@ export default function Spinner() {
width="1em"
xmlns="http://www.w3.org/2000/svg"
>
<line
x1="12"
y1="2"
x2="12"
y2="6"
/>
<line
x1="12"
y1="18"
x2="12"
y2="22"
/>
<line
x1="4.93"
y1="4.93"
x2="7.76"
y2="7.76"
/>
<line
x1="16.24"
y1="16.24"
x2="19.07"
y2="19.07"
/>
<line
x1="2"
y1="12"
x2="6"
y2="12"
/>
<line
x1="18"
y1="12"
x2="22"
y2="12"
/>
<line
x1="4.93"
y1="19.07"
x2="7.76"
y2="16.24"
/>
<line
x1="16.24"
y1="7.76"
x2="19.07"
y2="4.93"
/>
<line x1="12" y1="2" x2="12" y2="6" />
<line x1="12" y1="18" x2="12" y2="22" />
<line x1="4.93" y1="4.93" x2="7.76" y2="7.76" />
<line x1="16.24" y1="16.24" x2="19.07" y2="19.07" />
<line x1="2" y1="12" x2="6" y2="12" />
<line x1="18" y1="12" x2="22" y2="12" />
<line x1="4.93" y1="19.07" x2="7.76" y2="16.24" />
<line x1="16.24" y1="7.76" x2="19.07" y2="4.93" />
</svg>
);
}

View file

@ -14,14 +14,7 @@ export default function StopGeneratingIcon() {
width="1em"
xmlns="http://www.w3.org/2000/svg"
>
<rect
x="3"
y="3"
width="18"
height="18"
rx="2"
ry="2"
></rect>
<rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect>
</svg>
);
}

View file

@ -14,59 +14,15 @@ export default function SunIcon() {
width="1em"
xmlns="http://www.w3.org/2000/svg"
>
<circle
cx="12"
cy="12"
r="5"
/>
<line
x1="12"
y1="1"
x2="12"
y2="3"
/>
<line
x1="12"
y1="21"
x2="12"
y2="23"
/>
<line
x1="4.22"
y1="4.22"
x2="5.64"
y2="5.64"
/>
<line
x1="18.36"
y1="18.36"
x2="19.78"
y2="19.78"
/>
<line
x1="1"
y1="12"
x2="3"
y2="12"
/>
<line
x1="21"
y1="12"
x2="23"
y2="12"
/>
<line
x1="4.22"
y1="19.78"
x2="5.64"
y2="18.36"
/>
<line
x1="18.36"
y1="5.64"
x2="19.78"
y2="4.22"
/>
<circle cx="12" cy="12" r="5" />
<line x1="12" y1="1" x2="12" y2="3" />
<line x1="12" y1="21" x2="12" y2="23" />
<line x1="4.22" y1="4.22" x2="5.64" y2="5.64" />
<line x1="18.36" y1="18.36" x2="19.78" y2="19.78" />
<line x1="1" y1="12" x2="3" y2="12" />
<line x1="21" y1="12" x2="23" y2="12" />
<line x1="4.22" y1="19.78" x2="5.64" y2="18.36" />
<line x1="18.36" y1="5.64" x2="19.78" y2="4.22" />
</svg>
);
}

View file

@ -16,18 +16,8 @@ export default function TrashIcon() {
>
<polyline points="3 6 5 6 21 6" />
<path d="M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2" />
<line
x1="10"
y1="11"
x2="10"
y2="17"
/>
<line
x1="14"
y1="11"
x2="14"
y2="17"
/>
<line x1="10" y1="11" x2="10" y2="17" />
<line x1="14" y1="11" x2="14" y2="17" />
</svg>
);
}

View file

@ -15,11 +15,7 @@ export default function UserIcon() {
xmlns="http://www.w3.org/2000/svg"
>
<path d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2" />
<circle
cx="12"
cy="7"
r="4"
/>
<circle cx="12" cy="7" r="4" />
</svg>
);
}