Something went wrong. Try again.
better deal with this
Something went wrong. Try again.
22 kB · 133 lines · Created 5mo ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134> git -c user.useConfigOnly=true commit --quiet --allow-empty-message --file -Already up to dateDone in 429ms using pnpm v11.5.2[33m[STARTED][39m Preparing lint-staged...[32m[COMPLETED][39m Preparing lint-staged...[33m[STARTED][39m Running tasks for staged files...[33m[STARTED][39m package.json — 67 files[33m[STARTED][39m *{.js,.jsx,.ts,.tsx} — 62 files[33m[STARTED][39m eslint --cache --fix[31m[FAILED][39m eslint --cache --fix [FAILED][31m[FAILED][39m eslint --cache --fix [FAILED][32m[COMPLETED][39m Running tasks for staged files...[33m[STARTED][39m Applying modifications from tasks...[33m[SKIPPED][39m Skipped because of errors from tasks.[33m[STARTED][39m Reverting to original state because of errors...[32m[COMPLETED][39m Reverting to original state because of errors...[33m[STARTED][39m Cleaning up temporary files...[32m[COMPLETED][39m Cleaning up temporary files...
✖ eslint --cache --fix:There are suppressions left that do not occur anymore. Consider re-running the command with `--prune-suppressions`.
/home/xan/Development/jollywhoppers.com/witchsky/src/ageAssurance/components/NoAccessScreen.tsx 79:5 warning React Compiler has skipped optimizing this component because one or more React ESLint rules were disabled. React Compiler only works when your components follow all the rules of React, disabling them may result in unexpected or incorrect behavior react-compiler/react-compiler
/home/xan/Development/jollywhoppers.com/witchsky/src/ageAssurance/debug.ts 11:25 warning Unexpected constant truthiness on the left-hand side of a `||` expression no-constant-binary-expression 20:34 warning Unexpected constant truthiness on the left-hand side of a `||` expression no-constant-binary-expression 33:28 warning Unexpected constant truthiness on the left-hand side of a `||` expression no-constant-binary-expression
/home/xan/Development/jollywhoppers.com/witchsky/src/lib/strings/url-helpers.ts 348:21 error Unsafe call of a type that could not be resolved @typescript-eslint/no-unsafe-call 349:17 error Unsafe member access .error on a type that cannot be resolved @typescript-eslint/no-unsafe-member-access 349:37 error Unsafe member access .listed on a type that cannot be resolved @typescript-eslint/no-unsafe-member-access 349:58 error Unsafe member access .domain on a type that cannot be resolved @typescript-eslint/no-unsafe-member-access 353:15 error Unsafe member access .subdomain on a type that cannot be resolved @typescript-eslint/no-unsafe-member-access 353:40 error Unsafe member access .subdomain on a type that cannot be resolved @typescript-eslint/no-unsafe-member-access 354:15 error Unsafe member access .domain on a type that cannot be resolved @typescript-eslint/no-unsafe-member-access
/home/xan/Development/jollywhoppers.com/witchsky/src/state/cache/profile-shadow.ts 149:5 error Error: Calling setState synchronously within an effect can trigger cascading renders
Effects are intended to synchronize state between React and external systems such as manually updating the DOM, state management libraries, or other platform APIs. In general, the body of an effect should do one or both of the following:* Update external systems with the latest state from React.* Subscribe for updates from some external system, calling setState in a callback function when external state changes.
Calling setState synchronously within an effect body causes cascading renders that can hurt performance, and is not recommended. (https://react.dev/learn/you-might-not-need-an-effect).
/home/xan/Development/jollywhoppers.com/witchsky/src/state/cache/profile-shadow.ts:149:5 147 | 148 | useEffect(() => {> 149 | setTrackedDids(prev => { | ^^^^^^^^^^^^^^ Avoid calling setState() directly within an effect 150 | const currentDids = new Set(prev) 151 | let hasNew = false 152 | for (const slice of data?.flatMap(page => page.slices) ?? []) { react-hooks/set-state-in-effect 215:5 error Error: Calling setState synchronously within an effect can trigger cascading renders
Effects are intended to synchronize state between React and external systems such as manually updating the DOM, state management libraries, or other platform APIs. In general, the body of an effect should do one or both of the following:* Update external systems with the latest state from React.* Subscribe for updates from some external system, calling setState in a callback function when external state changes.
Calling setState synchronously within an effect body causes cascading renders that can hurt performance, and is not recommended. (https://react.dev/learn/you-might-not-need-an-effect).
/home/xan/Development/jollywhoppers.com/witchsky/src/state/cache/profile-shadow.ts:215:5 213 | 214 | useEffect(() => {> 215 | setTrackedDids(prev => { | ^^^^^^^^^^^^^^ Avoid calling setState() directly within an effect 216 | const currentDids = new Set(prev) 217 | let hasNew = false 218 | for (const post of posts ?? []) { react-hooks/set-state-in-effect
/home/xan/Development/jollywhoppers.com/witchsky/src/state/session/agent.ts 450:12 error Unsafe call of a `Function` typed value @typescript-eslint/no-unsafe-call
/home/xan/Development/jollywhoppers.com/witchsky/src/state/session/index.tsx 69:3 error Async method 'createEphemeralAgent' has no 'await' expression @typescript-eslint/require-await 330:36 warning `import()` type annotations are forbidden @typescript-eslint/consistent-type-imports
/home/xan/Development/jollywhoppers.com/witchsky/src/view/com/composer/Composer.tsx 28:8 warning Using exported name 'ProgressCircle' as identifier for default export import-x/no-named-as-default 289:5 error Error: Calling setState synchronously within an effect can trigger cascading renders
Effects are intended to synchronize state between React and external systems such as manually updating the DOM, state management libraries, or other platform APIs. In general, the body of an effect should do one or both of the following:* Update external systems with the latest state from React.* Subscribe for updates from some external system, calling setState in a callback function when external state changes.
Calling setState synchronously within an effect body causes cascading renders that can hurt performance, and is not recommended. (https://react.dev/learn/you-might-not-need-an-effect).
/home/xan/Development/jollywhoppers.com/witchsky/src/view/com/composer/Composer.tsx:289:5 287 | 288 | useEffect(() => {> 289 | setActiveAccountDid(initialActiveAccountDid ?? currentDid) | ^^^^^^^^^^^^^^^^^^^ Avoid calling setState() directly within an effect 290 | }, [initialActiveAccountDid, currentDid]) 291 | 292 | const {closeComposer} = useComposerControls() react-hooks/set-state-in-effect 1088:25 error Unexpected any. Specify a different type @typescript-eslint/no-explicit-any 1093:17 error Unexpected any. Specify a different type @typescript-eslint/no-explicit-any 1217:6 warning React Hook useCallback has a missing dependency: 'omitViaField'. Either include it or remove the dependency array react-hooks/exhaustive-deps 1274:9 error Error: Calling setState synchronously within an effect can trigger cascading renders
Effects are intended to synchronize state between React and external systems such as manually updating the DOM, state management libraries, or other platform APIs. In general, the body of an effect should do one or both of the following:* Update external systems with the latest state from React.* Subscribe for updates from some external system, calling setState in a callback function when external state changes.
Calling setState synchronously within an effect body causes cascading renders that can hurt performance, and is not recommended. (https://react.dev/learn/you-might-not-need-an-effect).
/home/xan/Development/jollywhoppers.com/witchsky/src/view/com/composer/Composer.tsx:1274:9 1272 | } 1273 | if (erroredVideos > 0) {> 1274 | setPublishOnUpload(false) | ^^^^^^^^^^^^^^^^^^ Avoid calling setState() directly within an effect 1275 | } else if (uploadingVideos === 0) { 1276 | setPublishOnUpload(false) 1277 | void onPressPublish() react-hooks/set-state-in-effect 1384:23 error Promise-returning function provided to attribute where a void return was expected @typescript-eslint/no-misused-promises 1385:27 error Promise-returning function provided to attribute where a void return was expected @typescript-eslint/no-misused-promises 1503:27 error Promise-returning function provided to attribute where a void return was expected @typescript-eslint/no-misused-promises 1682:25 error Promise-returning function provided to attribute where a void return was expected @typescript-eslint/no-misused-promises 1995:21 error Promise-returning function provided to attribute where a void return was expected @typescript-eslint/no-misused-promises 2103:49 error Unexpected any. Specify a different type @typescript-eslint/no-explicit-any 2103:59 error Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
/home/xan/Development/jollywhoppers.com/witchsky/src/view/com/posts/PostFeed.tsx 466:9 warning useState call is not destructured into value + setter pair react/hook-use-state 785:6 warning React Hook useMemo has missing dependencies: 'disableComposerPrompt' and 'hideUnreplyablePosts'. Either include them or remove the dependency array react-hooks/exhaustive-deps 1021:6 warning React Hook useCallback has a missing dependency: 't.palette.primary_500'. Either include it or remove the dependency array react-hooks/exhaustive-deps
✖ 32 problems (22 errors, 10 warnings)
husky - pre-commit script failed (code 1)