Skip to content

chore(deps): update dependency @electron-toolkit/eslint-config-prettier to v3 - #205

Closed
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/electron-toolkit-eslint-config-prettier-3.x
Closed

renovate[bot] wants to merge 1 commit into
mainfrom
renovate/electron-toolkit-eslint-config-prettier-3.x

Conversation

@renovate

@renovate renovate Bot commented Aug 17, 2026 •

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@electron-toolkit/eslint-config-prettier (source) ^2.0.0 → ^3.0.0 age adoption passing confidence

Release Notes

alex8088/electron-toolkit (@​electron-toolkit/eslint-config-prettier)

v3.0.0

Compare Source

  • feat!: move to eslint flat config

Configuration

📅 Schedule: (UTC)

  • Branch creation
    • "before 6am on monday"
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate

renovate Bot commented Aug 17, 2026 •

Copy link
Copy Markdown
Contributor Author

⚠️ Artifact update problem

Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.

♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

  • any of the package files in this branch needs updating, or
  • the branch becomes conflicted, or
  • you click the rebase/retry checkbox if found above, or
  • you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:

File name: package-lock.json
npm warn Unknown env config "store". This will error in a future major version of npm. See `npm help npmrc` for supported config options.
npm error code ERESOLVE
npm error ERESOLVE unable to resolve dependency tree
npm error
npm error While resolving: nethlink@1.5.1
npm error Found: eslint@8.57.1
npm error node_modules/eslint
npm error   dev eslint@"^8.56.0" from the root project
npm error
npm error Could not resolve dependency:
npm error peer eslint@">= 9.0.0" from @electron-toolkit/eslint-config-prettier@3.0.0
npm error node_modules/@electron-toolkit/eslint-config-prettier
npm error   dev @electron-toolkit/eslint-config-prettier@"^3.0.0" from the root project
npm error
npm error Fix the upstream dependency conflict, or retry this command with --force or --legacy-peer-deps to accept an incorrect (and potentially broken) dependency resolution.
npm error
npm error
npm error For a full report see:
npm error /runner/cache/others/npm/_logs/2026-09-18T08_45_48_391Z-eresolve-report.txt
npm error A complete log of this run can be found in: /runner/cache/others/npm/_logs/2026-09-18T08_45_48_391Z-debug-0.log

@renovate
renovate Bot force-pushed the renovate/electron-toolkit-eslint-config-prettier-3.x branch from 9d676cf to 9a1375c Compare August 26, 2026 10:54
@renovate
renovate Bot force-pushed the renovate/electron-toolkit-eslint-config-prettier-3.x branch from 9a1375c to 5e7a962 Compare September 18, 2026 08:45
edospadoni added a commit that referenced this pull request Sep 18, 2026
ESLint was entirely broken on main: .eslintrc.cjs extended 'react-app'
and 'react-app/jest' while eslint-config-react-app was never installed,
so 'npm run lint' failed before linting a single file.

Rather than repair the eslintrc setup on eslint 8, this migrates to
eslint 9 flat config, which also unblocks the two Renovate majors that
were stuck on the 'eslint >= 9' peer requirement:

- eslint ^8.56.0 -> ^9.39.5
- @electron-toolkit/eslint-config-ts ^1.0.1 -> ^3.1.0 (#206)
- @electron-toolkit/eslint-config-prettier ^2.0.0 -> ^3.0.0 (#205)
- eslint-plugin-react ^7.33.2 -> ^7.37.5 (flat config support)
- eslint-plugin-react-hooks ^5.2.0 (was referenced, never installed)

.eslintrc.cjs and .eslintignore are replaced by eslint.config.mjs.

Config decisions:

- React and react-hooks rules are scoped to src/renderer/**. The main
  process has plain functions named use* (useNethVoiceAPI, useLogin)
  that rules-of-hooks reported as hook violations in AccountController.
- camelcase is off. Every one of its 41 reports was a snake_case field
  fixed by the backend API contract (speeddial_num, shared_groups,
  dst_cnam) or a theme token (extra_large, full_w).
- react/prop-types is off, since TypeScript already checks props.
- spaced-comment carries markers: ['/'] so --fix cannot mangle
  TypeScript triple-slash directives into '// / <reference ... />',
  which silently broke the vite/client types behind every .svg import.

Beyond formatting, these lint errors needed real fixes:

- useNethVoiceAPI.ts: drop the redundant async Promise executor around
  logout; the body already resolved unconditionally in finally, so
  behaviour is unchanged and no rejection path is lost.
- logger.ts: replace the unsafe Function type with an explicit signature.
- main.ts, Modal/index.tsx: merge duplicate imports.
- AboutModule.tsx: drop the empty destructuring pattern.
- usePresenceService.ts: drop an empty finally block.
- ipcEvents.ts: document the intentionally silent catch in the drag path.
- store.ts: move a // @ts-ignore next to the expression it suppresses.
  Reformatting split the statement it used to cover onto two lines,
  which silently un-suppressed a zustand typing error.

'npm run lint' now reports 0 errors and 339 warnings. typecheck and
build are green, and the code merged from #192 and #213 is intact.

Supersedes #215.
@renovate
renovate Bot deleted the renovate/electron-toolkit-eslint-config-prettier-3.x branch September 18, 2026 12:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants