Skip to content

eslint with version 9.15+ will require changes in multiple files #91

@aheissenberger

Description

@aheissenberger

Describe the bug

I accidentally upgraded eslint to 9.16.0 and got this:

pnpm lint --version

> @ lint /Users/ah/SVN-Checkouts/TST/react-server
> eslint "--version"

v9.16.0
ah@voyage react-server % pnpm lint          

> @ lint /Users/ah/SVN-Checkouts/TST/react-server
> eslint


/Users/ah/SVN-Checkouts/TST/react-server/packages/react-server/config/index.mjs
  102:7   error  Insert `(`  prettier/prettier
  103:10  error  Insert `)`  prettier/prettier

/Users/ah/SVN-Checkouts/TST/react-server/packages/react-server/config/prebuilt.mjs
  19:7   error  Insert `(`  prettier/prettier
  20:10  error  Insert `)`  prettier/prettier

/Users/ah/SVN-Checkouts/TST/react-server/packages/react-server/lib/dev/action.mjs
   57:13  error  Replace `options.watch·??·true` with `(options.watch·??·true)`                                          prettier/prettier
  110:30  error  Replace `options.https·??·configRoot.server?.https` with `(options.https·??·configRoot.server?.https)`  prettier/prettier
  123:32  error  Replace `options.https·??·configRoot.server?.https` with `(options.https·??·configRoot.server?.https)`  prettier/prettier

/Users/ah/SVN-Checkouts/TST/react-server/packages/react-server/lib/dev/create-server.mjs
  292:9   error  Replace `config.vite(devServerConfig)·??·devServerConfig` with `(config.vite(devServerConfig)·??·devServerConfig)`          prettier/prettier
  449:9   error  Replace `config.runtime(initialRuntime)·??·initialRuntime` with `(config.runtime(initialRuntime)·??·initialRuntime)`        prettier/prettier
  472:13  error  Replace `config.handlers(initialHandlers)·??·initialHandlers` with `(config.handlers(initialHandlers)·??·initialHandlers)`  prettier/prettier

/Users/ah/SVN-Checkouts/TST/react-server/packages/react-server/lib/start/create-server.mjs
  47:9   error  Replace `config.runtime(initialRuntime)·??·initialRuntime` with `(config.runtime(initialRuntime)·??·initialRuntime)`        prettier/prettier
  87:11  error  Replace `config.handlers(initialHandlers)·??·initialHandlers` with `(config.handlers(initialHandlers)·??·initialHandlers)`  prettier/prettier

/Users/ah/SVN-Checkouts/TST/react-server/packages/react-server/server/route-match.mjs
  234:15  error  Replace `pathSegment?.indexOf(nextPart.value,·currentPathIndex)·??·0` with `(pathSegment?.indexOf(nextPart.value,·currentPathIndex)·??·0)`  prettier/prettier

✖ 13 problems (13 errors, 0 warnings)
  13 errors and 0 warnings potentially fixable with the `--fix` option.

 ELIFECYCLE  Command failed with exit code 1.

Reproduction

No response

Steps to reproduce

No response

System Info

System:
    OS: macOS 15.1.1
    CPU: (12) arm64 Apple M4 Pro
    Memory: 17.76 GB / 48.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 23.3.0 - /opt/homebrew/bin/node
    Yarn: 1.22.22 - /opt/homebrew/bin/yarn
    npm: 10.9.0 - /opt/homebrew/bin/npm
    pnpm: 9.15.0 - /opt/homebrew/bin/pnpm
    bun: 1.1.38 - /opt/homebrew/bin/bun
  Browsers:
    Chrome: 131.0.6778.109
    Safari: 18.1.1
    Safari Technology Preview: 18.2
  npmPackages:
    @lazarv/react-server: link:packages/react-server => 0.0.0

Used Package Manager

pnpm

Logs

No response

Validations

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions