Skip to content

Commit 9c26ab0

Browse files
committed
style: format lint
1 parent 6861a77 commit 9c26ab0

File tree

11 files changed

+25
-12
lines changed

11 files changed

+25
-12
lines changed

site/src/components/antdv-token-previewer/component-demos/autoComplete/auto-complete.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { defineComponent, ref } from 'vue';
22
import { AutoComplete } from 'ant-design-vue';
33
import type { ComponentDemo } from '../../interface';
44

5-
const mockVal = (str: string, repeat: number = 1) => ({
5+
const mockVal = (str: string, repeat = 1) => ({
66
value: str.repeat(repeat),
77
});
88

site/src/components/antdv-token-previewer/component-demos/form/form.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable no-console */
12
import { defineComponent, ref, toRaw, reactive } from 'vue';
23
import { Form, FormItem, Input, Button, Checkbox } from 'ant-design-vue';
34
import type { ComponentDemo } from '../../interface';

site/src/components/vue-colorful/components/common/Alpha.tsx

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
import type { PropType } from 'vue';
22
import { defineComponent, toRefs, computed } from 'vue';
33

4-
import { Interactive, Interaction } from './Interactive';
4+
import type { Interaction } from './Interactive';
5+
import { Interactive } from './Interactive';
56
import { Pointer } from './Pointer';
67

78
import { hsvaToHslaString } from '../../utils/convert';
89
import { formatClassName } from '../../utils/format';
910
import { clamp } from '../../utils/clamp';
1011
import { round } from '../../utils/round';
11-
import { HsvaColor } from '../../types';
12+
import type { HsvaColor } from '../../types';
1213

1314
export interface AlphaProps {
1415
hsva: HsvaColor;

site/src/components/vue-colorful/components/common/AlphaColorPicker.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { Hue } from './Hue';
55
import { Saturation } from './Saturation';
66
import { Alpha } from './Alpha';
77

8-
import { ColorModel, ColorPickerBaseProps, AnyColor } from '../../types';
8+
import type { ColorModel, ColorPickerBaseProps, AnyColor } from '../../types';
99
import { useColorManipulation } from '../../hooks/useColorManipulation';
1010
import { useStyleSheet } from '../../hooks/useStyleSheet';
1111
import { formatClassName } from '../../utils/format';

site/src/components/vue-colorful/components/common/ColorInput.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { PropType } from 'vue';
22
import { defineComponent, toRefs, ref, watchEffect } from 'vue';
33

4-
import { ColorInputBaseProps } from '../../types';
4+
import type { ColorInputBaseProps } from '../../types';
55

66
export interface ColorInputProps extends ColorInputBaseProps {
77
/** Blocks typing invalid characters and limits string length */

site/src/components/vue-colorful/components/common/ColorPicker.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { defineComponent, toRefs, ref, computed } from 'vue';
44
import { Hue } from './Hue';
55
import { Saturation } from './Saturation';
66

7-
import { ColorModel, ColorPickerBaseProps, AnyColor } from '../../types';
7+
import type { ColorModel, ColorPickerBaseProps, AnyColor } from '../../types';
88
import { useColorManipulation } from '../../hooks/useColorManipulation';
99
import { useStyleSheet } from '../../hooks/useStyleSheet';
1010
import { formatClassName } from '../../utils/format';

site/src/components/vue-colorful/components/common/Hue.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
import type { PropType } from 'vue';
22
import { defineComponent, toRefs } from 'vue';
33

4-
import { Interactive, Interaction } from './Interactive';
4+
import type { Interaction } from './Interactive';
5+
import { Interactive } from './Interactive';
56
import { Pointer } from './Pointer';
67

78
import { hsvaToHslString } from '../../utils/convert';

site/src/components/vue-colorful/components/common/Saturation.tsx

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
import type { PropType } from 'vue';
22
import { defineComponent, toRefs } from 'vue';
33

4-
import { Interactive, Interaction } from './Interactive';
4+
import type { Interaction } from './Interactive';
5+
import { Interactive } from './Interactive';
56
import { Pointer } from './Pointer';
6-
import { HsvaColor } from '../../types';
7+
import type { HsvaColor } from '../../types';
78
import { hsvaToHslString } from '../../utils/convert';
89
import { clamp } from '../../utils/clamp';
910
import { round } from '../../utils/round';

site/src/components/vue-colorful/types.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { InputHTMLAttributes } from 'vue';
1+
import type { InputHTMLAttributes } from 'vue';
22

33
export interface RgbColor {
44
r: number;

site/src/utils/generateOnlineDemo.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ import 'ant-design-vue/dist/reset.css';
4040
const app = createApp(App);
4141
4242
app.use(Antd).mount('#app');
43-
`
43+
`;
4444

4545
function getDeps(code: string) {
4646
return (code.match(/from '([^']+)';\n/g) || [])

tsconfig.json

+10-1
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,14 @@
2323
"importsNotUsedAsValues": "preserve",
2424
"stripInternal": true
2525
},
26-
"exclude": ["node_modules", "lib", "es", "dist", "scripts", "**/__tests__/**/*", "site/dist"]
26+
"exclude": [
27+
"node_modules",
28+
"lib",
29+
"es",
30+
"dist",
31+
"locale",
32+
"scripts",
33+
"**/__tests__/**/*",
34+
"site/dist"
35+
]
2736
}

0 commit comments

Comments
 (0)