Skip to content

Commit 16eb057

Browse files
committed
chore: lint fix
1 parent 1f3ebfb commit 16eb057

File tree

4 files changed

+19
-15
lines changed

4 files changed

+19
-15
lines changed

packages/storybook/src/stories/field.stories.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import {
44
ScoutInput,
55
ScoutSelect,
66
ScoutSwitch,
7-
ScoutTextArea
7+
ScoutTextArea,
88
} from "@scouterna/ui-react";
99
import preview from "#.storybook/preview";
1010

@@ -37,7 +37,6 @@ export const WithTextArea = meta.story({
3737
),
3838
});
3939

40-
4140
export const WithFieldTypeValidation = WithInput.extend({
4241
args: {
4342
helpText: "This field must contain a valid email address.",

packages/storybook/src/stories/text-area.stories.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,7 @@ export const BasicExample = meta.story({
1515
args: {
1616
name: "Name",
1717
},
18-
render: (args) => (
19-
<ScoutTextArea {...args} />
20-
),
18+
render: (args) => <ScoutTextArea {...args} />,
2119
});
2220

2321
export const Disabled = BasicExample.extend({

packages/ui-webc/src/components/text-area/text-area.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.textarea{
1+
.textarea {
22
resize: none;
33
padding: var(--spacing-2);
44
font: var(--type-body-base);

packages/ui-webc/src/components/text-area/text-area.tsx

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,16 @@
1-
import { Component, Event, type EventEmitter, h, Prop, State } from "@stencil/core";
1+
import {
2+
Component,
3+
Event,
4+
type EventEmitter,
5+
h,
6+
Prop,
7+
State
8+
} from "@stencil/core";
29

310
@Component({
411
tag: "scout-text-area",
512
styleUrl: "text-area.css",
6-
scoped: true
13+
scoped: true,
714
})
815

916
export class ScoutTextArea {
@@ -30,10 +37,10 @@ export class ScoutTextArea {
3037
@Prop() label?: string;
3138

3239
/**
33-
* Custom validation function run on top of the implicit validation performed
34-
* by the browser. Return a string with the validation message to mark the
35-
* input as invalid, or null to mark it as valid.
36-
*/
40+
* Custom validation function run on top of the implicit validation performed
41+
* by the browser. Return a string with the validation message to mark the
42+
* input as invalid, or null to mark it as valid.
43+
*/
3744
@Prop() validate?: (value: string) => string | null;
3845

3946
@Event() scoutInputChange: EventEmitter<{
@@ -44,8 +51,8 @@ export class ScoutTextArea {
4451
@Event() scoutBlur: EventEmitter<void>;
4552

4653
/**
47-
* Internal event used for form field association.
48-
*/
54+
* Internal event used for form field association.
55+
*/
4956
@Event() _fieldId: EventEmitter<string>;
5057

5158
@State() ariaId: string;
@@ -70,7 +77,7 @@ export class ScoutTextArea {
7077
}
7178
render() {
7279
return (
73-
<textarea
80+
<textarea
7481
class="textarea"
7582
name={this.name}
7683
autofocus={this.autofocus}

0 commit comments

Comments
 (0)