Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Indie stack template includes three eslint failures #10490

Open
sheldon-b opened this issue Feb 21, 2025 · 0 comments
Open

Indie stack template includes three eslint failures #10490

sheldon-b opened this issue Feb 21, 2025 · 0 comments

Comments

@sheldon-b
Copy link

sheldon-b commented Feb 21, 2025

Reproduction

  1. Create a new remix application using the indie-stack templte. Use all of the default settings.
npx create-remix@latest --template remix-run/indie-stack
  1. Run npm run lint

System Info

System:
    OS: macOS 15.3.1
    CPU: (10) arm64 Apple M4
    Memory: 132.06 MB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 23.7.0 - ~/.asdf/installs/nodejs/23.7.0/bin/node
    npm: 10.9.2 - ~/.asdf/installs/nodejs/23.7.0/bin/npm
  Browsers:
    Chrome: 133.0.6943.127
    Safari: 18.3
  npmPackages:
    @remix-run/css-bundle: ^2.15.3 => 2.15.3
    @remix-run/dev: ^2.15.3 => 2.15.3
    @remix-run/node: ^2.15.3 => 2.15.3
    @remix-run/react: ^2.15.3 => 2.15.3
    @remix-run/serve: ^2.15.3 => 2.15.3
    vite: ^5.4.11 => 5.4.14

Used Package Manager

npm

Expected Behavior

A new, clean project does not include any lint failures.

Actual Behavior

There are three lint failures:

sbachstein@Sheldons-MacBook-Pro eslint-bug-repro % npm run lint

> lint
> eslint --cache --cache-location ./node_modules/.cache/eslint .


/Users/sbachstein/Playspace/eslint-bug-repro/cypress/support/create-user.ts
  10:28  error  Unable to resolve path to module '~/models/user.server'  import/no-unresolved
  11:35  error  Unable to resolve path to module '~/session.server'      import/no-unresolved

/Users/sbachstein/Playspace/eslint-bug-repro/cypress/support/delete-user.ts
  9:24  error  Unable to resolve path to module '~/db.server'  import/no-unresolved

✖ 3 problems (3 errors, 0 warnings)

They seem to stem from .eslintrc.cjs not picking up the configuration in the paths section of tsconfig.json.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant