-
Notifications
You must be signed in to change notification settings - Fork 22
Open
Description
🐛 ESLint Issue with Sheriff Dependency Rules in `create-next-app
- Set up a Next.js project with
create-next-app@latest
. - Install and configure
@softarc/sheriff
for enforcing module boundaries. - Run
pnpm lint
.
Example Pull Request with example code.
Describe the issue
I'm encountering a weird ESLint issue related to eslint.config.mjs
when using the @softarc/sheriff
library for module boundaries.
Error message:
Dependency Rule (internal error): FsPath: /Users/.../node_modules/.pnpm/node_modules/@isaacs/cliui does not existeslint(@softarc/sheriff/dependency-rule)
eslint.config.mjs
which is not as expected:
...
import sheriff from '@softarc/eslint-plugin-sheriff';
...
{
...sheriff.configs.all,
ignores: ['app/layout.tsx', '**/*.test.tsx', 'sheriff.config.ts'],
},
...
Metadata
Metadata
Assignees
Labels
No labels