Commits

Yury Bondarenko authored e40b6ae6120
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
No tags

lint/src/rules/ts/index.ts

Modified
3 3 * detailed in the LICENSE and NOTICE files at the root of the source
4 4 * tree and available online at
5 5 *
6 6 * http://www.dspace.org/license/
7 7 */
8 8 import {
9 9 bundle,
10 10 RuleExports,
11 11 } from '../../util/structure';
12 12 /* eslint-disable import/no-namespace */
13 +import * as themedComponentClasses from './themed-component-classes';
13 14 import * as themedComponentSelectors from './themed-component-selectors';
14 15 import * as themedComponentUsages from './themed-component-usages';
15 16
16 17 const index = [
17 - themedComponentUsages,
18 + themedComponentClasses,
18 19 themedComponentSelectors,
20 + themedComponentUsages,
19 21 ] as unknown as RuleExports[];
20 22
21 23 export = {
22 24 ...bundle('dspace-angular-ts', 'TypeScript', index),
23 25 };

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut