Skip to content

Commit 23a7bc3

Browse files
committed
style: lint fix
1 parent ffa832d commit 23a7bc3

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

src/rules/stylelint/unit-allowed-list.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ type UnitAllowedListIgnoreProperties = Partial<
99
>
1010
>
1111

12-
type UnitAllowedListIgnoreFunctions =
13-
| CSSFunction | RegExpLike
14-
| (CSSFunction | RegExpLike)[]
12+
type UnitAllowedListIgnoreFunctions
13+
= | CSSFunction | RegExpLike
14+
| (CSSFunction | RegExpLike)[]
1515

1616
export type UnitAllowedListOptions = RuleConfig<
1717
Unit | Unit[],

src/rules/stylelint/unit-disallowed-list.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ type UnitDisallowedListIgnoreProperties = Partial<
99
>
1010
>
1111

12-
type UnitDisallowedListIgnoreFunctions =
13-
| CSSFunction | RegExpLike
14-
| (CSSFunction | RegExpLike)[]
12+
type UnitDisallowedListIgnoreFunctions
13+
= | CSSFunction | RegExpLike
14+
| (CSSFunction | RegExpLike)[]
1515

1616
type UnitDisallowedListIgnoreMediaFeatureNames = Partial<
1717
Record<

src/utils.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@ export type RenamePrefix<
1818
*
1919
* @see [copied from issue](https://github.com/microsoft/TypeScript/issues/29729#issuecomment-471566609)
2020
*/
21-
export type LiteralUnion<Union extends Base, Base = string> =
22-
| Union
23-
| (Base & { zz_IGNORE_ME?: never })
21+
export type LiteralUnion<Union extends Base, Base = string>
22+
= | Union
23+
| (Base & { zz_IGNORE_ME?: never })
2424

2525
export type RegExpLike = RegExp | `/${string}/` | string
2626

27-
export type KebabCase<S extends string, B extends boolean = true> =
28-
S extends `${infer F}${infer O}`
27+
export type KebabCase<S extends string, B extends boolean = true>
28+
= S extends `${infer F}${infer O}`
2929
? F extends Uncapitalize<F>
3030
? `${F}${KebabCase<O, false>}`
3131
: B extends true

0 commit comments

Comments
 (0)