Explain themed-component-classes rule

This commit is contained in:
Yury Bondarenko
2024-03-29 10:52:36 +01:00
parent 08a5443cc2
commit c4b32febc1
2 changed files with 9 additions and 1 deletions

View File

@@ -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)

View File

@@ -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',