Skip to content

chore(lint): no ESLint warnings left - #4823

Merged
lbesson merged 1 commit into
masterfrom
chore/lint-warnings
Oct 29, 2026
Merged

lbesson merged 1 commit into
masterfrom
chore/lint-warnings

Conversation

@lbesson

@lbesson lbesson commented Oct 29, 2026

Copy link
Copy Markdown
Member

eslint src e2e "*.mjs" reported 70 warnings on master and reports none with this PR.

Config (eslint.config.mjs)

  • .vue files: they now use @typescript-eslint/no-unused-vars instead of the core rule. The core rule reads the parameter names of TypeScript function types in <script lang="ts"> as unused variables. Examples are useTemplateRef<{ show(chunk?: string): void }> and onMapClick?(evt, feature): void. Those false positives made up most of the no-unused-vars warnings.
  • no-console: it now allows console.warn and console.error. All 22 hits were failure reports. The eslint-disable comments that only allowed them are removed.
  • Specs and edition-test-utils.ts: vue/one-component-per-file, vue/require-prop-types and vue/order-in-components are off there, because these files declare small stub components inline.

Code

  • Dead code removed: these functions and variables are no longer used by any template or script:
    • nextTick import in OlMap
    • showMountainsList in SubPanelBra
    • setEditMode / editMode in SubPanelCourse
    • colorExpired in FfvlLayer
    • the useLayer() call in YetiLayers (it has no side effect)
    • orientations, validity, expired in AvalancheBox (their template use went away in 2f3e891)
  • MeteoLayer: the required visible prop loses its default (vue/no-required-prop-with-default). Its only caller always passes it.
  • PlanATripSection: mapDocuments reads selectedRouteJourney only to depend on it. It now does this with void this.currentData.selectedRouteJourney; instead of an unused variable.
  • Thumbnail: its eslint-disable comment now names @typescript-eslint/no-unused-vars.

Checks

  • eslint src e2e "*.mjs": no output
  • prettier and stylelint: clean
  • vue-tsc --noEmit: passes
  • vitest run: 111 files, 735 tests pass
  • vite build: passes

🤖 Generated with Claude Code

- components: @typescript-eslint/no-unused-vars, as the core rule reads the
  parameter names of the TypeScript function types as unused variables
- no-console allows console.warn and console.error, the failure reports
- the specs and their helpers may declare their stub components inline
- dead code removed: functions and variables no template uses anymore
- MeteoLayer: the required visible prop has no default

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@lbesson lbesson added this to the Vue 3 modernization milestone Oct 29, 2026
@lbesson lbesson added chore modernization Vue 3 modernization (Vite, Vue 3, tests) labels Oct 29, 2026
@coderabbitai

coderabbitai Bot commented Oct 29, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 58 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 78307f71-61d6-438f-b83e-010c09030e56
Commits

Reviewing files that changed from the base of the PR and between 3597034 and 6acee70.

Files selected for processing: 13
  • eslint.config.mjs
  • src/components/generics/Thumbnail.vue
  • src/components/map/OlMap.vue
  • src/components/yeti/SubPanelBra.vue
  • src/components/yeti/SubPanelCourse.vue
  • src/components/yeti/map-layers/FfvlLayer.vue
  • src/components/yeti/map-layers/MeteoLayer.vue
  • src/components/yeti/map-layers/YetiLayers.vue
  • src/js/apis/check-response.ts
  • src/js/runtime-config.ts
  • src/js/vue-plugins/gettext-plugin.ts
  • src/views/document/utils/boxes/AvalancheBox.vue
  • src/views/document/utils/boxes/PlanATripSection/PlanATripSection.vue
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@lbesson
lbesson merged commit d2fbbb2 into master Oct 29, 2026
5 of 6 checks passed
@lbesson
lbesson deleted the chore/lint-warnings branch October 29, 2026 15:31
@codacy-production

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics -5 complexity · 0 duplication

Metric Results
Complexity -5
Duplication 0

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@lbesson
lbesson deployed to pr-preview October 29, 2026 15:35 — with GitHub Actions Active

This branch was successfully deployed

1 active deployment
pr-preview — 6acee704 Deployed Oct 29, 2026 by lbesson via github-pages #7327
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chore modernization Vue 3 modernization (Vite, Vue 3, tests)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant