Improve documentation

This commit is contained in:
Yury Bondarenko
2024-03-29 10:46:20 +01:00
parent 2c68589416
commit 515e5f00cf
6 changed files with 30 additions and 12 deletions

View File

@@ -45,7 +45,7 @@ export const info = {
messages: {
[Message.NOT_STANDALONE]: 'Themeable components must be standalone',
[Message.NOT_STANDALONE_IMPORTS_BASE]: 'Themeable component wrapper classes must be standalone and import the base class',
[Message.WRAPPER_IMPORTS_BASE]: 'Themed component wrapper classes must import the base class',
[Message.WRAPPER_IMPORTS_BASE]: 'Themed component wrapper classes must only import the base class',
},
},
defaultOptions: [],

View File

@@ -48,8 +48,8 @@ Unit tests are exempt from this rule, because they may redefine components using
schema: [],
fixable: 'code',
messages: {
[Message.BASE]: 'Unthemed version of themeable components should have a selector starting with \'ds-base-\'',
[Message.WRAPPER]: 'Themed component wrapper of themeable components shouldn\'t have a selector starting with \'ds-themed-\'',
[Message.BASE]: 'Unthemed version of themeable component should have a selector starting with \'ds-base-\'',
[Message.WRAPPER]: 'Themed component wrapper of themeable component shouldn\'t have a selector starting with \'ds-themed-\'',
[Message.THEMED]: 'Theme override of themeable component should have a selector starting with \'ds-themed-\'',
},
},

View File

@@ -242,7 +242,7 @@ export class Something {
filename: fixture('src/app/test/test.component.spec.ts'),
code: `
By.css('ds-themeable');
By.Css('#test > ds-themeable > #nest');
By.css('#test > ds-themeable > #nest');
`,
},
{
@@ -250,7 +250,7 @@ By.Css('#test > ds-themeable > #nest');
filename: fixture('src/app/test/test.component.cy.ts'),
code: `
By.css('ds-themeable');
By.Css('#test > ds-themeable > #nest');
By.css('#test > ds-themeable > #nest');
`,
},
],