Fix 51888 cors errors are displayed for attachments #7218
lint-changed.yml
on: pull_request
Changed files ESLint check
2m 32s
Annotations
10 errors and 1 warning
Changed files ESLint check:
src/components/HTMLEngineProvider/HTMLRenderers/ImageRenderer.tsx#L56
Replace `??(new·RegExp(CONST.ATTACHMENT_LOCAL_URL,·"i").test(htmlAttribs.src)?htmlAttribs.src:` with `·??·(new·RegExp(CONST.ATTACHMENT_LOCAL_URL,·'i').test(htmlAttribs.src)·?·htmlAttribs.src·:·`
|
Changed files ESLint check:
src/components/Image/index.tsx#L1
Replace `State,·useRef` with `Ref,·useState`
|
|
Changed files ESLint check:
src/components/Image/index.tsx#L44
Replace `|undefined>()·` with `·|·undefined>()`
|
Changed files ESLint check:
src/components/Image/index.tsx#L45
Replace `·:number|` with `:·number·|·`
|
Changed files ESLint check:
src/components/Image/index.tsx#L46
Replace `·session?.creationDate?(!!previousSessionAge.current?(Math.abs(previousSessionAge.current·-·session.creationDate)<60000?session.creationDate:previousSessionAge.current):` with `⏎············session?.creationDate⏎················?·!!previousSessionAge.current⏎····················?·Math.abs(previousSessionAge.current·-·session.creationDate)·<·60000⏎························?·session.creationDate⏎························:·previousSessionAge.current`
|
Changed files ESLint check:
src/components/Image/index.tsx#L46
Do not nest ternary expressions
|
Changed files ESLint check:
src/components/Image/index.tsx#L46
Do not nest ternary expressions
|
Changed files ESLint check:
src/components/Image/index.tsx#L46
Redundant double negation
|
Changed files ESLint check:
src/components/Image/index.tsx#L47
Replace `········Math.abs(new·Date().getTime()·-·session.creationDate)·>=·CONST.SESSIONS_MAXIDLE_NB_HOURS*3600000?new·Date().getTime():session.creationDate):undefined,·[session]` with `····················:·Math.abs(new·Date().getTime()·-·session.creationDate)·>=·CONST.SESSIONS_MAXIDLE_NB_HOURS·*·3600000⏎····················?·new·Date().getTime()⏎····················:·session.creationDate⏎················:·undefined,⏎········[session],`
|
Changed files ESLint check
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|