You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@vnabet, thanks for letting us know. There seems to be an issue with the integration tests. They are there to ensure that exactly these things do not happen.
Let me check first on the tests and then come up with a fix.
Previously:
1. Integration tests were run in a subfolder within the root project, allowing
them to inherit missing dependencies from the root.
2. `npm/yarn link` was used to integrate Sheriff, resulting in Sheriff using
the TypeScript version from the root project instead of the version within
the integration tests.
These issues prevented the tests from detecting missing dependencies, such as
the "typescript-eslint" package (as reported in #114), and caused failures due
to version mismatches in TypeScript.
**Changes:**
- Integration tests have been moved to a temporary directory outside the root
project, ensuring complete isolation.
- `yalc` is now used instead of `npm/yarn link`, eliminating symlinks and
enforcing the use of the correct dependencies.
Node: 20.12.2
Angular cli: 17.3.8
Sheriff: 0.16.1
steps:
npx ng lint
to initialize angular eslint configurationnpx ng lint
to execute linting => OKnpm i -D @softarc/sheriff-core @softarc/eslint-plugin-sheriff
npx sheriff init
npx ng lint
=> KOAn unhandled exception occurred: Failed to load plugin '@softarc/sheriff' declared in '.eslintrc.json#overrides[2]': Cannot find module 'typescript-eslint'
The text was updated successfully, but these errors were encountered: