File tree Expand file tree Collapse file tree 7 files changed +1201
-3007
lines changed Expand file tree Collapse file tree 7 files changed +1201
-3007
lines changed Original file line number Diff line number Diff line change 11{
2- "extends" : " next/core-web-vitals" ,
2+ "extends" : [" eslint:recommended" ],
3+ "parser" : " @typescript-eslint/parser" ,
4+ "parserOptions" : {
5+ "ecmaVersion" : 2021 ,
6+ "sourceType" : " module" ,
7+ "ecmaFeatures" : {
8+ "jsx" : true
9+ }
10+ },
11+ "env" : {
12+ "browser" : true ,
13+ "es2021" : true ,
14+ "node" : true
15+ },
316 "rules" : {
4- "react/no-unescaped-entities" : " off"
5- }
17+ "react/no-unescaped-entities" : " off" ,
18+ "no-unused-vars" : " off" ,
19+ "no-undef" : " off" ,
20+ "no-extra-boolean-cast" : " off" ,
21+ "no-unreachable" : " off"
22+ },
23+ "ignorePatterns" : [
24+ " .next/**" ,
25+ " node_modules/**" ,
26+ " out/**" ,
27+ " public/**" ,
28+ " pages/api/og.tsx"
29+ ]
630}
Original file line number Diff line number Diff line change @@ -32,7 +32,6 @@ const Breadcrumbs = ({ pages }: BreadcrumbsProps) => {
3232 size = "2"
3333 color = "gray"
3434 style = { {
35- // @ts -expect-error shut it
3635 textWrap : "nowrap" ,
3736 } }
3837 >
Original file line number Diff line number Diff line change @@ -81,15 +81,16 @@ const NavItem = ({
8181 < Text
8282 as = "span"
8383 weight = "medium"
84- style = { {
85- fontSize : "13px" ,
86- // @ts -expect-error textWrap is fine
87- textWrap : "nowrap" ,
88- // Easy way to vertically align the text
89- verticalAlign : "text-bottom" ,
90- "--color" : isActive ? "var(--tgph-gray-12)" : "var(--tgph-gray-11)" ,
91- ...( textProps . style || { } ) ,
92- } }
84+ style = {
85+ {
86+ fontSize : "13px" ,
87+ textWrap : "nowrap" ,
88+ // Easy way to vertically align the text
89+ verticalAlign : "text-bottom" ,
90+ "--color" : isActive ? "var(--tgph-gray-12)" : "var(--tgph-gray-11)" ,
91+ ...( textProps . style || { } ) ,
92+ } as React . CSSProperties
93+ }
9394 { ...textPropsWithoutStyle }
9495 >
9596 { children }
Original file line number Diff line number Diff line change 4646 "@vercel/og" : " ^0.5.20" ,
4747 "algoliasearch" : " ^4.13.0" ,
4848 "deepmerge" : " ^4.3.1" ,
49- "eslint-config-next" : " 14.2.32" ,
5049 "eventemitter" : " ^0.3.3" ,
5150 "framer-motion" : " ^12.7.4" ,
5251 "isomorphic-unfetch" : " 3.1.0" ,
7877 "@types/node" : " ^14.14.32" ,
7978 "@types/react" : " ^18.2.0" ,
8079 "@types/react-dom" : " ^18.2.0" ,
80+ "@typescript-eslint/parser" : " ^5.62.0" ,
8181 "autoprefixer" : " ^10.4.16" ,
8282 "eslint" : " ^8.57.0" ,
83+ "strip-ansi" : " ^6.0.1" ,
8384 "openapi-to-md" : " ^1.0.25" ,
8485 "postcss" : " ^8.4.31" ,
8586 "prettier" : " ^2.3.2" ,
Original file line number Diff line number Diff line change @@ -21,12 +21,10 @@ import {
2121// Utility functions
2222async function parseFrontmatter ( markdownContent ) {
2323 const file = await unified ( )
24- // @ts -expect-error idk
2524 . use ( remarkParse )
2625 . use ( remarkFrontmatter , [ "yaml" ] )
2726 . parse ( markdownContent ) ;
2827
29- // @ts -expect-error idk
3028 const yamlNode = file . children . find ( ( node ) => node . type === "yaml" ) ;
3129 if ( ! yamlNode ) return null ;
3230 return yaml . parse ( yamlNode . value ) ;
Original file line number Diff line number Diff line change @@ -92,12 +92,10 @@ async function writeApiMarkdown(name: "api" | "mapi") {
9292// Utility functions
9393async function parseFrontmatter ( markdownContent ) {
9494 const file = await unified ( )
95- // @ts -expect-error idk
9695 . use ( remarkParse )
9796 . use ( remarkFrontmatter , [ "yaml" ] )
9897 . parse ( markdownContent ) ;
9998
100- // @ts -expect-error idk
10199 const yamlNode = file . children . find ( ( node ) => node . type === "yaml" ) ;
102100 if ( ! yamlNode ) return null ;
103101 return yaml . parse ( yamlNode . value ) ;
You can’t perform that action at this time.
0 commit comments