Skip to content

Commit 2da21b0

Browse files
committed
ci: Format code
1 parent b9cbcd7 commit 2da21b0

File tree

8 files changed

+44
-59
lines changed

8 files changed

+44
-59
lines changed

.eslintrc.json

Lines changed: 15 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
{
22
"root": true,
3-
"ignorePatterns": [
4-
"!.storybook"
5-
],
3+
"ignorePatterns": ["!.storybook"],
64
"parserOptions": {
75
"sourceType": "module",
86
"ecmaVersion": "latest"
@@ -20,10 +18,7 @@
2018
"ignoreRestSiblings": true
2119
}
2220
],
23-
"import/extensions": [
24-
"error",
25-
"ignorePackages"
26-
],
21+
"import/extensions": ["error", "ignorePackages"],
2722
"import/no-duplicates": [
2823
"error",
2924
{
@@ -34,28 +29,13 @@
3429
"error",
3530
{
3631
"groups": [
37-
[
38-
"^\\u0000"
39-
],
40-
[
41-
"^node:"
42-
],
43-
[
44-
"^@?\\w"
45-
],
46-
[
47-
"^@seamapi/react/"
48-
],
49-
[
50-
"^fixtures/",
51-
"^lib/"
52-
],
53-
[
54-
"^"
55-
],
56-
[
57-
"^\\."
58-
]
32+
["^\\u0000"],
33+
["^node:"],
34+
["^@?\\w"],
35+
["^@seamapi/react/"],
36+
["^fixtures/", "^lib/"],
37+
["^"],
38+
["^\\."]
5939
]
6040
}
6141
],
@@ -64,21 +44,11 @@
6444
},
6545
"overrides": [
6646
{
67-
"files": [
68-
"*.js",
69-
"*.mjs",
70-
"*.cjs"
71-
],
72-
"extends": [
73-
"standard",
74-
"prettier"
75-
]
47+
"files": ["*.js", "*.mjs", "*.cjs"],
48+
"extends": ["standard", "prettier"]
7649
},
7750
{
78-
"files": [
79-
"*.ts",
80-
"*.tsx"
81-
],
51+
"files": ["*.ts", "*.tsx"],
8252
"extends": [
8353
"standard-with-typescript",
8454
"standard-jsx",
@@ -87,10 +57,7 @@
8757
"plugin:storybook/recommended",
8858
"prettier"
8959
],
90-
"plugins": [
91-
"simple-import-sort",
92-
"unused-imports"
93-
],
60+
"plugins": ["simple-import-sort", "unused-imports"],
9461
"parserOptions": {
9562
"project": "./tsconfig.json"
9663
},
@@ -108,14 +75,12 @@
10875
},
10976
"overrides": [
11077
{
111-
"files": [
112-
"**/*.stories.tsx"
113-
],
78+
"files": ["**/*.stories.tsx"],
11479
"rules": {
11580
"react-hooks/rules-of-hooks": "off"
11681
}
11782
}
11883
]
11984
}
12085
]
121-
}
86+
}

src/lib/ui/IconButton.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export function IconButton({
1515
return (
1616
<button
1717
{...props}
18-
type='button'
18+
type='button'
1919
ref={elRef}
2020
className={classNames(
2121
'seam-icon-btn',

src/lib/ui/TabSet.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ function TabButton<TabType extends string>({
102102
'seam-tab-button',
103103
isActive && 'seam-tab-button-active'
104104
)}
105-
type='button'
105+
type='button'
106106
onClick={handleClick}
107107
>
108108
<p className='seam-tab-button-label'>{title}</p>

src/lib/ui/TextButton.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ export function TextButton({
1010
...buttonProps
1111
}: TextButtonProps): JSX.Element {
1212
return (
13-
<button type='button' className={`seam-text-btn seam-color-${color}`} {...buttonProps} />
13+
<button
14+
type='button'
15+
className={`seam-text-btn seam-color-${color}`}
16+
{...buttonProps}
17+
/>
1418
)
1519
}

src/lib/ui/Tooltip/Tooltip.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,11 @@ export function Tooltip({ children }: PropsWithChildren): JSX.Element {
4040
return (
4141
<div className='seam-tooltip'>
4242
<div className='seam-tooltip-trigger-wrap'>
43-
<button type='button' onClick={handleToggle} className='seam-tooltip-button'>
43+
<button
44+
type='button'
45+
onClick={handleToggle}
46+
className='seam-tooltip-button'
47+
>
4448
<div className='seam-tooltip-button-icon seam-tooltip-button-icon-default'>
4549
<InfoIcon />
4650
</div>

src/lib/ui/device/EditableDeviceName.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,8 @@ function IconButton(
170170
): JSX.Element {
171171
return (
172172
<button
173-
{...props}
174-
type='button'
173+
{...props}
174+
type='button'
175175
className={classNames(
176176
'seam-editable-device-name-icon-button',
177177
props.className

src/lib/ui/layout/AccordionRow.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,11 @@ export function AccordionRow({
1919

2020
return (
2121
<div className='seam-accordion-row' aria-expanded={isExpanded}>
22-
<button type='button' className='seam-accordion-row-trigger' onClick={toggle}>
22+
<button
23+
type='button'
24+
className='seam-accordion-row-trigger'
25+
onClick={toggle}
26+
>
2327
<div className='seam-row-inner-wrap'>
2428
<p className='seam-row-label'>{label}</p>
2529
<div className='seam-row-trigger-left-content'>{leftContent}</div>

src/lib/ui/thermostat/TemperatureControl.tsx

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,11 @@ export function TemperatureControl({
3030

3131
return (
3232
<div className='seam-temperature-control'>
33-
<button type='button' className='seam-temperature-stepper-button' onClick={decrement}>
33+
<button
34+
type='button'
35+
className='seam-temperature-stepper-button'
36+
onClick={decrement}
37+
>
3438
<TemperatureSubtractIcon />
3539
</button>
3640
<RangeSlider
@@ -43,7 +47,11 @@ export function TemperatureControl({
4347
}}
4448
unit={unit}
4549
/>
46-
<button type='button' className='seam-temperature-stepper-button' onClick={increment}>
50+
<button
51+
type='button'
52+
className='seam-temperature-stepper-button'
53+
onClick={increment}
54+
>
4755
<TemperatureAddIcon />
4856
</button>
4957
</div>

0 commit comments

Comments
 (0)