mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00
Explain themed-component-classes rule
This commit is contained in:
@@ -3,6 +3,10 @@ _______
|
|||||||
|
|
||||||
Formatting rules for themeable component classes
|
Formatting rules for themeable component classes
|
||||||
|
|
||||||
|
- All themeable components must be standalone.
|
||||||
|
- The base component must always be imported in the `ThemedComponent` wrapper. This ensures that it is always sufficient to import just the wrapper whenever we use the component.
|
||||||
|
|
||||||
|
|
||||||
_______
|
_______
|
||||||
|
|
||||||
[Source code](../../../../lint/src/rules/ts/themed-component-classes.ts)
|
[Source code](../../../../lint/src/rules/ts/themed-component-classes.ts)
|
||||||
|
@@ -37,7 +37,11 @@ export const info = {
|
|||||||
name: 'themed-component-classes',
|
name: 'themed-component-classes',
|
||||||
meta: {
|
meta: {
|
||||||
docs: {
|
docs: {
|
||||||
description: `Formatting rules for themeable component classes`,
|
description: `Formatting rules for themeable component classes
|
||||||
|
|
||||||
|
- All themeable components must be standalone.
|
||||||
|
- The base component must always be imported in the \`ThemedComponent\` wrapper. This ensures that it is always sufficient to import just the wrapper whenever we use the component.
|
||||||
|
`,
|
||||||
},
|
},
|
||||||
type: 'problem',
|
type: 'problem',
|
||||||
fixable: 'code',
|
fixable: 'code',
|
||||||
|
Reference in New Issue
Block a user