Skip to content

Commit 9212a8e

Browse files
committed
cleanup
1 parent 8e566e1 commit 9212a8e

19 files changed

+1127
-79
lines changed

package.json

+9-19
Original file line numberDiff line numberDiff line change
@@ -31,35 +31,25 @@
3131
},
3232
"devDependencies": {
3333
"esbuild": "^0.14.49",
34+
"prettier-eslint": "^15.0.1",
3435
"rollup": "^2.77.0",
3536
"rollup-plugin-dts": "^4.2.2",
3637
"rollup-plugin-esbuild": "^4.9.1"
3738
},
38-
"peerDependencies": {},
3939
"bugs": {
4040
"url": "https://github.com/Laosing/linie-avatars/issues"
4141
},
4242
"bin": {
4343
"linie-avatars": "bin/build.js"
4444
},
4545
"dependencies": {
46-
"ansi-styles": "^3.2.1",
47-
"debug": "^4.3.4",
48-
"color-convert": "^1.9.3",
49-
"color-name": "^1.1.3",
50-
"chalk": "^2.4.2",
51-
"es-module-lexer": "^0.9.3",
52-
"esbuild-linux-64": "^0.14.49",
53-
"escape-string-regexp": "^1.0.5",
54-
"estree-walker": "^2.0.2",
55-
"has-flag": "^3.0.0",
56-
"joycon": "^3.1.1",
57-
"jsonc-parser": "^3.1.0",
58-
"magic-string": "^0.26.2",
59-
"js-tokens": "^4.0.0",
60-
"ms": "^2.1.2",
61-
"picomatch": "^2.3.1",
62-
"supports-color": "^5.5.0",
63-
"sourcemap-codec": "^1.4.8"
46+
"@types/react": "^18.0.15",
47+
"eslint": "^8.20.0",
48+
"svgson": "^5.2.1",
49+
"typescript": "^4.7.4",
50+
"uppercamelcase": "^3.0.0"
51+
},
52+
"peerDependencies": {
53+
"react": ">=17.0.0"
6454
}
6555
}

src/icons/avatar-01.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, { forwardRef, LegacyRef } from 'react';
1+
import React, { forwardRef, LegacyRef } from "react";
22

33
type Props = {
44
color?: string,
@@ -7,7 +7,7 @@ type Props = {
77
type Ref = LegacyRef<SVGSVGElement> | undefined;
88

99
const Avatar01 = forwardRef(
10-
({ color = 'currentColor', size = 24, ...rest }: Props, ref: Ref) => {
10+
({ color = "currentColor", size = 24, ...rest }: Props, ref: Ref) => {
1111
return (
1212
<svg
1313
ref={ref}
@@ -42,6 +42,6 @@ const Avatar01 = forwardRef(
4242
}
4343
);
4444

45-
Avatar01.displayName = 'Avatar01';
45+
Avatar01.displayName = "Avatar01";
4646

4747
export default Avatar01;

src/icons/avatar-02.tsx

+10-10
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
import React, { forwardRef, LegacyRef } from 'react';
1+
import React, { forwardRef, LegacyRef } from "react"
22

33
type Props = {
4-
color?: string,
5-
size?: string | number,
6-
};
7-
type Ref = LegacyRef<SVGSVGElement> | undefined;
4+
color?: string
5+
size?: string | number
6+
}
7+
type Ref = LegacyRef<SVGSVGElement> | undefined
88

99
const Avatar02 = forwardRef(
10-
({ color = 'currentColor', size = 24, ...rest }: Props, ref: Ref) => {
10+
({ color = "currentColor", size = 24, ...rest }: Props, ref: Ref) => {
1111
return (
1212
<svg
1313
ref={ref}
@@ -68,10 +68,10 @@ const Avatar02 = forwardRef(
6868
/>
6969
</g>
7070
</svg>
71-
);
71+
)
7272
}
73-
);
73+
)
7474

75-
Avatar02.displayName = 'Avatar02';
75+
Avatar02.displayName = "Avatar02"
7676

77-
export default Avatar02;
77+
export default Avatar02

src/icons/avatar-03.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, { forwardRef, LegacyRef } from 'react';
1+
import React, { forwardRef, LegacyRef } from "react";
22

33
type Props = {
44
color?: string,
@@ -7,7 +7,7 @@ type Props = {
77
type Ref = LegacyRef<SVGSVGElement> | undefined;
88

99
const Avatar03 = forwardRef(
10-
({ color = 'currentColor', size = 24, ...rest }: Props, ref: Ref) => {
10+
({ color = "currentColor", size = 24, ...rest }: Props, ref: Ref) => {
1111
return (
1212
<svg
1313
ref={ref}
@@ -65,6 +65,6 @@ const Avatar03 = forwardRef(
6565
}
6666
);
6767

68-
Avatar03.displayName = 'Avatar03';
68+
Avatar03.displayName = "Avatar03";
6969

7070
export default Avatar03;

src/icons/avatar-04.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, { forwardRef, LegacyRef } from 'react';
1+
import React, { forwardRef, LegacyRef } from "react";
22

33
type Props = {
44
color?: string,
@@ -7,7 +7,7 @@ type Props = {
77
type Ref = LegacyRef<SVGSVGElement> | undefined;
88

99
const Avatar04 = forwardRef(
10-
({ color = 'currentColor', size = 24, ...rest }: Props, ref: Ref) => {
10+
({ color = "currentColor", size = 24, ...rest }: Props, ref: Ref) => {
1111
return (
1212
<svg
1313
ref={ref}
@@ -57,6 +57,6 @@ const Avatar04 = forwardRef(
5757
}
5858
);
5959

60-
Avatar04.displayName = 'Avatar04';
60+
Avatar04.displayName = "Avatar04";
6161

6262
export default Avatar04;

src/icons/avatar-05.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, { forwardRef, LegacyRef } from 'react';
1+
import React, { forwardRef, LegacyRef } from "react";
22

33
type Props = {
44
color?: string,
@@ -7,7 +7,7 @@ type Props = {
77
type Ref = LegacyRef<SVGSVGElement> | undefined;
88

99
const Avatar05 = forwardRef(
10-
({ color = 'currentColor', size = 24, ...rest }: Props, ref: Ref) => {
10+
({ color = "currentColor", size = 24, ...rest }: Props, ref: Ref) => {
1111
return (
1212
<svg
1313
ref={ref}
@@ -50,6 +50,6 @@ const Avatar05 = forwardRef(
5050
}
5151
);
5252

53-
Avatar05.displayName = 'Avatar05';
53+
Avatar05.displayName = "Avatar05";
5454

5555
export default Avatar05;

src/icons/avatar-06.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, { forwardRef, LegacyRef } from 'react';
1+
import React, { forwardRef, LegacyRef } from "react";
22

33
type Props = {
44
color?: string,
@@ -7,7 +7,7 @@ type Props = {
77
type Ref = LegacyRef<SVGSVGElement> | undefined;
88

99
const Avatar06 = forwardRef(
10-
({ color = 'currentColor', size = 24, ...rest }: Props, ref: Ref) => {
10+
({ color = "currentColor", size = 24, ...rest }: Props, ref: Ref) => {
1111
return (
1212
<svg
1313
ref={ref}
@@ -45,6 +45,6 @@ const Avatar06 = forwardRef(
4545
}
4646
);
4747

48-
Avatar06.displayName = 'Avatar06';
48+
Avatar06.displayName = "Avatar06";
4949

5050
export default Avatar06;

src/icons/avatar-07.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, { forwardRef, LegacyRef } from 'react';
1+
import React, { forwardRef, LegacyRef } from "react";
22

33
type Props = {
44
color?: string,
@@ -7,7 +7,7 @@ type Props = {
77
type Ref = LegacyRef<SVGSVGElement> | undefined;
88

99
const Avatar07 = forwardRef(
10-
({ color = 'currentColor', size = 24, ...rest }: Props, ref: Ref) => {
10+
({ color = "currentColor", size = 24, ...rest }: Props, ref: Ref) => {
1111
return (
1212
<svg
1313
ref={ref}
@@ -52,6 +52,6 @@ const Avatar07 = forwardRef(
5252
}
5353
);
5454

55-
Avatar07.displayName = 'Avatar07';
55+
Avatar07.displayName = "Avatar07";
5656

5757
export default Avatar07;

src/icons/avatar-08.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, { forwardRef, LegacyRef } from 'react';
1+
import React, { forwardRef, LegacyRef } from "react";
22

33
type Props = {
44
color?: string,
@@ -7,7 +7,7 @@ type Props = {
77
type Ref = LegacyRef<SVGSVGElement> | undefined;
88

99
const Avatar08 = forwardRef(
10-
({ color = 'currentColor', size = 24, ...rest }: Props, ref: Ref) => {
10+
({ color = "currentColor", size = 24, ...rest }: Props, ref: Ref) => {
1111
return (
1212
<svg
1313
ref={ref}
@@ -48,6 +48,6 @@ const Avatar08 = forwardRef(
4848
}
4949
);
5050

51-
Avatar08.displayName = 'Avatar08';
51+
Avatar08.displayName = "Avatar08";
5252

5353
export default Avatar08;

src/icons/avatar-09.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, { forwardRef, LegacyRef } from 'react';
1+
import React, { forwardRef, LegacyRef } from "react";
22

33
type Props = {
44
color?: string,
@@ -7,7 +7,7 @@ type Props = {
77
type Ref = LegacyRef<SVGSVGElement> | undefined;
88

99
const Avatar09 = forwardRef(
10-
({ color = 'currentColor', size = 24, ...rest }: Props, ref: Ref) => {
10+
({ color = "currentColor", size = 24, ...rest }: Props, ref: Ref) => {
1111
return (
1212
<svg
1313
ref={ref}
@@ -66,6 +66,6 @@ const Avatar09 = forwardRef(
6666
}
6767
);
6868

69-
Avatar09.displayName = 'Avatar09';
69+
Avatar09.displayName = "Avatar09";
7070

7171
export default Avatar09;

src/icons/avatar-10.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, { forwardRef, LegacyRef } from 'react';
1+
import React, { forwardRef, LegacyRef } from "react";
22

33
type Props = {
44
color?: string,
@@ -7,7 +7,7 @@ type Props = {
77
type Ref = LegacyRef<SVGSVGElement> | undefined;
88

99
const Avatar10 = forwardRef(
10-
({ color = 'currentColor', size = 24, ...rest }: Props, ref: Ref) => {
10+
({ color = "currentColor", size = 24, ...rest }: Props, ref: Ref) => {
1111
return (
1212
<svg
1313
ref={ref}
@@ -45,6 +45,6 @@ const Avatar10 = forwardRef(
4545
}
4646
);
4747

48-
Avatar10.displayName = 'Avatar10';
48+
Avatar10.displayName = "Avatar10";
4949

5050
export default Avatar10;

src/icons/avatar-11.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, { forwardRef, LegacyRef } from 'react';
1+
import React, { forwardRef, LegacyRef } from "react";
22

33
type Props = {
44
color?: string,
@@ -7,7 +7,7 @@ type Props = {
77
type Ref = LegacyRef<SVGSVGElement> | undefined;
88

99
const Avatar11 = forwardRef(
10-
({ color = 'currentColor', size = 24, ...rest }: Props, ref: Ref) => {
10+
({ color = "currentColor", size = 24, ...rest }: Props, ref: Ref) => {
1111
return (
1212
<svg
1313
ref={ref}
@@ -50,6 +50,6 @@ const Avatar11 = forwardRef(
5050
}
5151
);
5252

53-
Avatar11.displayName = 'Avatar11';
53+
Avatar11.displayName = "Avatar11";
5454

5555
export default Avatar11;

src/icons/avatar-12.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, { forwardRef, LegacyRef } from 'react';
1+
import React, { forwardRef, LegacyRef } from "react";
22

33
type Props = {
44
color?: string,
@@ -7,7 +7,7 @@ type Props = {
77
type Ref = LegacyRef<SVGSVGElement> | undefined;
88

99
const Avatar12 = forwardRef(
10-
({ color = 'currentColor', size = 24, ...rest }: Props, ref: Ref) => {
10+
({ color = "currentColor", size = 24, ...rest }: Props, ref: Ref) => {
1111
return (
1212
<svg
1313
ref={ref}
@@ -45,6 +45,6 @@ const Avatar12 = forwardRef(
4545
}
4646
);
4747

48-
Avatar12.displayName = 'Avatar12';
48+
Avatar12.displayName = "Avatar12";
4949

5050
export default Avatar12;

src/icons/avatar-13.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, { forwardRef, LegacyRef } from 'react';
1+
import React, { forwardRef, LegacyRef } from "react";
22

33
type Props = {
44
color?: string,
@@ -7,7 +7,7 @@ type Props = {
77
type Ref = LegacyRef<SVGSVGElement> | undefined;
88

99
const Avatar13 = forwardRef(
10-
({ color = 'currentColor', size = 24, ...rest }: Props, ref: Ref) => {
10+
({ color = "currentColor", size = 24, ...rest }: Props, ref: Ref) => {
1111
return (
1212
<svg
1313
ref={ref}
@@ -46,6 +46,6 @@ const Avatar13 = forwardRef(
4646
}
4747
);
4848

49-
Avatar13.displayName = 'Avatar13';
49+
Avatar13.displayName = "Avatar13";
5050

5151
export default Avatar13;

src/icons/avatar-14.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, { forwardRef, LegacyRef } from 'react';
1+
import React, { forwardRef, LegacyRef } from "react";
22

33
type Props = {
44
color?: string,
@@ -7,7 +7,7 @@ type Props = {
77
type Ref = LegacyRef<SVGSVGElement> | undefined;
88

99
const Avatar14 = forwardRef(
10-
({ color = 'currentColor', size = 24, ...rest }: Props, ref: Ref) => {
10+
({ color = "currentColor", size = 24, ...rest }: Props, ref: Ref) => {
1111
return (
1212
<svg
1313
ref={ref}
@@ -45,6 +45,6 @@ const Avatar14 = forwardRef(
4545
}
4646
);
4747

48-
Avatar14.displayName = 'Avatar14';
48+
Avatar14.displayName = "Avatar14";
4949

5050
export default Avatar14;

0 commit comments

Comments
 (0)