This repository was archived by the owner on Apr 28, 2025. It is now read-only.
This repository was archived by the owner on Apr 28, 2025. It is now read-only.
Indie stack template includes three eslint failures #307
Open
Description
Reproduction
- 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
- 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
.