Files
dspace-angular/lint/test/fixture
Yury Bondarenko e40b6ae612 Update plugins to support standalone components
- ThemedComponent wrappers should always import their base component. This ensures that it's always enough to only import the wrapper when we use it.
- This implies that all themeable components must be standalone

→ added rules to enforce this
→ updated usage rule to improve declaration/import handling
2024-03-28 18:33:46 +01:00
..

ESLint testing fixtures

The files in this directory are used for the ESLint testing environment

  • Some rules rely on registries that must be built up before the rule is run
    • In order to test these registries, the fixture sources contain a few dummy components
  • The TypeScript ESLint test runner requires at least one dummy file to exist to run any tests
    • By default, test.ts is used. Note that this file is empty; it's only there for the TypeScript configuration, the actual content is injected from the code property in the tests.
    • To test rules that make assertions based on the path of the file, you'll need to include the filename property in the test configuration. Note that it must point to an existing file too!
    • The filename must be provided as fixture('src/something.ts')