Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
rajsite committed Mar 27, 2024
1 parent a80f87e commit b27a845
Show file tree
Hide file tree
Showing 12 changed files with 23 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const severityStates = [
['Default', BannerSeverity.default],
['Error', BannerSeverity.error],
['Warning', BannerSeverity.warning],
['Information', BannerSeverity.information],
['Information', BannerSeverity.information]
] as const;
type SeverityState = (typeof severityStates)[number];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { breadcrumbItemTag } from '../../breadcrumb-item';

const appearanceStates = [
['Default', BreadcrumbAppearance.default],
['Prominent', BreadcrumbAppearance.prominent],
['Prominent', BreadcrumbAppearance.prominent]
] as const;
type AppearanceState = (typeof appearanceStates)[number];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import { loremIpsum } from '../../utilities/tests/lorem-ipsum';
const appearanceStates = [
['Block', DropdownAppearance.block],
['Outline', DropdownAppearance.outline],
['Underline', DropdownAppearance.underline],
['Underline', DropdownAppearance.underline]
] as const;
type AppearanceState = (typeof appearanceStates)[number];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,14 @@ import {
} from '../../theme-provider/design-tokens';

const sizeStates = [
['Small Dialog', `width: var(${dialogSmallWidth.cssCustomProperty}); height: var(${dialogSmallHeight.cssCustomProperty}); max-height: var(${dialogSmallMaxHeight.cssCustomProperty});`],
['Large Dialog', `width: var(${dialogLargeWidth.cssCustomProperty}); height: var(${dialogLargeHeight.cssCustomProperty}); max-height: var(${dialogLargeMaxHeight.cssCustomProperty});`],
[
'Small Dialog',
`width: var(${dialogSmallWidth.cssCustomProperty}); height: var(${dialogSmallHeight.cssCustomProperty}); max-height: var(${dialogSmallMaxHeight.cssCustomProperty});`
],
[
'Large Dialog',
`width: var(${dialogLargeWidth.cssCustomProperty}); height: var(${dialogLargeHeight.cssCustomProperty}); max-height: var(${dialogLargeMaxHeight.cssCustomProperty});`
]
] as const;
type SizeState = (typeof sizeStates)[number];

Expand All @@ -43,7 +49,10 @@ const component = html`
</${dialogTag}>
`;

const dialogSizingTestCase = ([sizeName, size]: SizeState): ViewTemplate => html`
const dialogSizingTestCase = ([
sizeName,
size
]: SizeState): ViewTemplate => html`
<p class="spacer">${() => sizeName}</p>
<style>
${dialogTag}::part(control) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const severityStates = [
['Error', IconSeverity.error],
['Warning', IconSeverity.warning],
['Success', IconSeverity.success],
['Information', IconSeverity.information],
['Information', IconSeverity.information]
] as const;
type SeverityState = (typeof severityStates)[number];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import { numberFieldTag } from '..';
const appearanceStates = [
['Underline', NumberFieldAppearance.underline],
['Outline', NumberFieldAppearance.outline],
['Block', NumberFieldAppearance.block],
['Block', NumberFieldAppearance.block]
] as const;
type AppearanceState = (typeof appearanceStates)[number];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import { loremIpsum } from '../../utilities/tests/lorem-ipsum';
const appearanceStates = [
['Underline', DropdownAppearance.underline],
['Outline', DropdownAppearance.outline],
['Block', DropdownAppearance.block],
['Block', DropdownAppearance.block]
] as const;
type AppearanceState = (typeof appearanceStates)[number];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import { SpinnerAppearance } from '../types';

const appearanceStates = [
['Default', SpinnerAppearance.default],
['Accent', SpinnerAppearance.accent],
['Accent', SpinnerAppearance.accent]
] as const;
type AppearanceState = (typeof appearanceStates)[number];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import {
const alignmentStates = [
['Default', NumberTextAlignment.default],
['Left', NumberTextAlignment.left],
['Right', NumberTextAlignment.right],
['Right', NumberTextAlignment.right]
] as const;
type AlignmentState = (typeof alignmentStates)[number];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ type ValueState = (typeof valueStates)[number];

const appearanceStates = [
['Outline', TextAreaAppearance.outline],
['Block', TextAreaAppearance.block],
['Block', TextAreaAppearance.block]
] as const;
type AppearanceState = (typeof appearanceStates)[number];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ const appearanceStates = [
['Underline', TextFieldAppearance.underline],
['Outline', TextFieldAppearance.outline],
['Block', TextFieldAppearance.block],
['Frameless', TextFieldAppearance.frameless],
['Frameless', TextFieldAppearance.frameless]
] as const;
type AppearanceState = (typeof appearanceStates)[number];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ type IconVisibleState = (typeof iconVisibleStates)[number];
const severityStates = [
['Default', TooltipSeverity.default],
['Error', TooltipSeverity.error],
['Information', TooltipSeverity.information],
['Information', TooltipSeverity.information]
] as const;
type SeverityState = (typeof severityStates)[number];

Expand Down

0 comments on commit b27a845

Please sign in to comment.