-
Notifications
You must be signed in to change notification settings - Fork 240
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
[no-deprecated-functions] auto-detect error with monorepo-like project structure #874
Comments
Could you provide some more details on the problem you're encountering and what your setup is? |
The node_modules is not at the root of vscode. root/
- projects/
- core/
- src/
- package.json
- web-core/
- src/
- package.json
- web-core-unit-tests/
- node_modules/ < where eslint is running eslint-plugin-jest from
- src/
- factories/
- ListItemFactory.spec.ts < the file that throws a jest/no-deprecated-functions
- package.json < the one that has jest as a dependency Adding
instead of starting at
|
Have a look at my comment here about this - specifically, in this setup you really should have these dev dependencies at the top level of your project, as tools & editors like VSCode will grab the first instance they can find of packages like You can also specify the jest version explicitly - I'd say you should be able to easily write a basic hack to read that from the respective I'm not outright against adding Also, could you confirm the location of your eslint config in this structure? |
There is an .eslintrc.js in every module.exports = {
root: true,
extends: ['@yottaltd/eslint-config/lib/defaults', '@yottaltd/eslint-config/lib/unit-tests'],
parserOptions: {
tsconfigRootDir: __dirname,
project: ['./tsconfig.json'],
},
}; As far as I can tell, they are all identical to the one above. |
🎉 This issue has been resolved in version 24.5.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
🎉 This issue has been resolved in version 25.0.0-next.5 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Changing the auto detect from
to
fixes the bug introduced 15 months ago with non-root level projects.
The text was updated successfully, but these errors were encountered: