Skip to content

Upgrade ESLint & Prettier, pin JS dependencies#3711

Merged
bobvandevijver merged 8 commits into6.2from
upgrade-eslint
Apr 26, 2026
Merged

Upgrade ESLint & Prettier, pin JS dependencies#3711
bobvandevijver merged 8 commits into6.2from
upgrade-eslint

Conversation

@bobvandevijver
Copy link
Copy Markdown
Member

Upgrades ESLint and Prettier to more recent versions, update their configuration and fix newly found issues. This in preparation of the Vue 3 upgrade.

Also bumps Vue 2 to latest, and pin the dependencies so unwanted upgrades are not made by mistake.

@bobvandevijver bobvandevijver added this to the Bolt 6.2 milestone Apr 26, 2026
Copilot AI review requested due to automatic review settings April 26, 2026 09:16
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Upgrades the JS tooling stack (ESLint + Prettier) and pins runtime dependencies to stabilize installs, as preparation for the upcoming Vue 3 upgrade.

Changes:

  • Pin dependencies to exact versions and bump Vue 2 to latest patch.
  • Migrate ESLint to flat config (eslint.config.mjs) and update lint/prettier scripts.
  • Apply formatting/compatibility edits across Vue/JS source (slot syntax, style attribute formatting, etc.).

Reviewed changes

Copilot reviewed 19 out of 26 changed files in this pull request and generated 7 comments.

Show a summary per file
File Description
package.json Pins runtime deps, bumps Vue, updates ESLint/Prettier toolchain and npm scripts.
package-lock.json Lockfile refresh for upgraded/pinned dependencies and tooling.
eslint.config.mjs New ESLint v9 flat config with Vue + Prettier + Cypress integration.
assets/js/app/toolbar/Components/Toolbar.vue Prettier-driven HTML/style formatting change.
assets/js/app/save-on-ctrl-s.js Prettier-driven function spacing formatting.
assets/js/app/patience-is-a-virtue.js Prettier-driven function spacing formatting.
assets/js/app/notifications/index.js Prettier-driven function spacing formatting.
assets/js/app/login/index.js Renames global component registrations.
assets/js/app/listing/Components/Table/Row/index.vue Prettier-driven inline style formatting.
assets/js/app/listing/Components/Table/Row/_Actions.vue Prettier-driven inline style formatting.
assets/js/app/listing/Components/SelectBox.vue Migrates deprecated slot syntax to v-slot shorthand.
assets/js/app/editor/index.js Renames globally registered editor components.
assets/js/app/editor/Components/Select.vue Slot syntax updates and minor formatting.
assets/js/app/editor/Components/Password.vue Prettier-driven function spacing formatting.
assets/js/app/editor/Components/Language.vue Slot syntax updates.
assets/js/app/editor/Components/Imagelist.vue Changes child event listener names to kebab-case; other formatting.
assets/js/app/editor/Components/Image.vue Adds emits declaration and formatting tweaks.
assets/js/app/editor/Components/Filelist.vue Changes child event listener names to kebab-case; other formatting.
assets/js/app/editor/Components/File.vue Adds emits declaration and formatting tweaks.
assets/js/app/editor/Components/Embed.vue Prettier-driven function spacing formatting.
assets/js/app/editor/Components/Date.vue Removes required: true from a prop that already has a default.
assets/js/app/editor/Components/Collection.vue Uses <component :is> syntax and formatting updates.
assets/js/app/common.js Prettier-driven function spacing + minor chaining formatting.
assets/js/app/ajax-save.js Prettier-driven function spacing formatting.
.prettierrc Updates Prettier options and ordering.
.eslintrc.js Removes legacy ESLint config (replaced by flat config).
Comments suppressed due to low confidence (1)

assets/js/app/editor/Components/File.vue:180

  • This component emits moveFileUp/moveFileDown (camelCase) but parent templates in this PR were changed to listen for move-file-up/move-file-down. These names won't match, so the handlers won't run. Align emitted event names and template listeners (prefer kebab-case).
    emits: ['moveFileUp', 'moveFileDown', 'remove'],
    data() {
        return {
            isDragging: false,
            dragCount: 0,

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread package.json
Comment thread package.json
Comment thread eslint.config.mjs
Comment thread .prettierrc Outdated
Comment thread assets/js/app/editor/Components/Imagelist.vue
Comment thread assets/js/app/editor/Components/Filelist.vue
Comment thread assets/js/app/editor/Components/Image.vue Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants