Skip to content

Commit

Permalink
chore: use more specific devDependencies pattern for eslint import ch…
Browse files Browse the repository at this point in the history
…eck (#8131)

* fix: use more specific devDependencies pattern for eslint import check

* fix: allow test.ts files in src to import devDependencies

Fixes

```
/home/runner/work/pnpm/pnpm/store/plugin-commands-store/src/cleanExpiredDlxCache.test.ts
Error:   3:1  error  '@pnpm/crypto.base32-hash' should be listed in the project's dependencies, not devDependencies  import/no-extraneous-dependencies
Error:   4:1  error  '@pnpm/prepare' should be listed in the project's dependencies, not devDependencies             import/no-extraneous-dependencies
```
  • Loading branch information
gluxon authored May 28, 2024
1 parent 1e209e0 commit 2e3fe94
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions __utils__/eslint-config/eslint.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@
"error",
{
"devDependencies": [
"**/pnpm/**",
"**/test/**"
"**/pnpm/src/**",
"**/test/**",
"**/src/**/*.test.ts"
]
}
],
Expand Down

0 comments on commit 2e3fe94

Please sign in to comment.