improvement: create a snippet resolver that caches the api definition… #5246
ci.yml
on: push
check
4m 41s
lint
1m 10s
visual-testing
1m 58s
fern-generate
2m 19s
test
3m 40s
check-docs-release-is-allowed
53s
Annotations
8 errors and 2 warnings
lint:
packages/ui/app/src/api-playground/utils.ts#L131
React Hook "useState" is called in function "stringifyFetch" that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word "use"
|
lint:
packages/ui/app/src/api-playground/utils.ts#L153
React Hook "useEffect" is called in function "stringifyFetch" that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word "use"
|
lint:
packages/ui/app/src/api-playground/utils.ts#L160
Promises must be awaited, end with a call to .catch, end with a call to .then with a rejection handler or be explicitly marked as ignored with the `void` operator
|
lint:
packages/ui/app/src/api-playground/utils.ts#L268
React Hook "useState" is called in function "stringifyPythonRequests" that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word "use"
|
lint:
packages/ui/app/src/api-playground/utils.ts#L290
React Hook "useEffect" is called in function "stringifyPythonRequests" that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word "use"
|
lint:
packages/ui/app/src/api-playground/utils.ts#L297
Promises must be awaited, end with a call to .catch, end with a call to .then with a rejection handler or be explicitly marked as ignored with the `void` operator
|
lint
@fern-ui/ui#lint:eslint: command (/home/runner/work/fern-platform/fern-platform/packages/ui/app) /home/runner/setup-pnpm/node_modules/.bin/pnpm run lint:eslint exited (1)
|
lint
Process completed with exit code 1.
|
lint:
packages/ui/app/src/api-playground/utils.ts#L161
React Hook useEffect has a missing dependency: 'resolver'. Either include it or remove the dependency array
|
lint:
packages/ui/app/src/api-playground/utils.ts#L298
React Hook useEffect has a missing dependency: 'resolver'. Either include it or remove the dependency array
|