style: format lint
parent
6861a77d29
commit
9c26ab05d3
|
@ -2,7 +2,7 @@ import { defineComponent, ref } from 'vue';
|
|||
import { AutoComplete } from 'ant-design-vue';
|
||||
import type { ComponentDemo } from '../../interface';
|
||||
|
||||
const mockVal = (str: string, repeat: number = 1) => ({
|
||||
const mockVal = (str: string, repeat = 1) => ({
|
||||
value: str.repeat(repeat),
|
||||
});
|
||||
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
/* eslint-disable no-console */
|
||||
import { defineComponent, ref, toRaw, reactive } from 'vue';
|
||||
import { Form, FormItem, Input, Button, Checkbox } from 'ant-design-vue';
|
||||
import type { ComponentDemo } from '../../interface';
|
||||
|
|
|
@ -1,14 +1,15 @@
|
|||
import type { PropType } from 'vue';
|
||||
import { defineComponent, toRefs, computed } from 'vue';
|
||||
|
||||
import { Interactive, Interaction } from './Interactive';
|
||||
import type { Interaction } from './Interactive';
|
||||
import { Interactive } from './Interactive';
|
||||
import { Pointer } from './Pointer';
|
||||
|
||||
import { hsvaToHslaString } from '../../utils/convert';
|
||||
import { formatClassName } from '../../utils/format';
|
||||
import { clamp } from '../../utils/clamp';
|
||||
import { round } from '../../utils/round';
|
||||
import { HsvaColor } from '../../types';
|
||||
import type { HsvaColor } from '../../types';
|
||||
|
||||
export interface AlphaProps {
|
||||
hsva: HsvaColor;
|
||||
|
|
|
@ -5,7 +5,7 @@ import { Hue } from './Hue';
|
|||
import { Saturation } from './Saturation';
|
||||
import { Alpha } from './Alpha';
|
||||
|
||||
import { ColorModel, ColorPickerBaseProps, AnyColor } from '../../types';
|
||||
import type { ColorModel, ColorPickerBaseProps, AnyColor } from '../../types';
|
||||
import { useColorManipulation } from '../../hooks/useColorManipulation';
|
||||
import { useStyleSheet } from '../../hooks/useStyleSheet';
|
||||
import { formatClassName } from '../../utils/format';
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import type { PropType } from 'vue';
|
||||
import { defineComponent, toRefs, ref, watchEffect } from 'vue';
|
||||
|
||||
import { ColorInputBaseProps } from '../../types';
|
||||
import type { ColorInputBaseProps } from '../../types';
|
||||
|
||||
export interface ColorInputProps extends ColorInputBaseProps {
|
||||
/** Blocks typing invalid characters and limits string length */
|
||||
|
|
|
@ -4,7 +4,7 @@ import { defineComponent, toRefs, ref, computed } from 'vue';
|
|||
import { Hue } from './Hue';
|
||||
import { Saturation } from './Saturation';
|
||||
|
||||
import { ColorModel, ColorPickerBaseProps, AnyColor } from '../../types';
|
||||
import type { ColorModel, ColorPickerBaseProps, AnyColor } from '../../types';
|
||||
import { useColorManipulation } from '../../hooks/useColorManipulation';
|
||||
import { useStyleSheet } from '../../hooks/useStyleSheet';
|
||||
import { formatClassName } from '../../utils/format';
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
import type { PropType } from 'vue';
|
||||
import { defineComponent, toRefs } from 'vue';
|
||||
|
||||
import { Interactive, Interaction } from './Interactive';
|
||||
import type { Interaction } from './Interactive';
|
||||
import { Interactive } from './Interactive';
|
||||
import { Pointer } from './Pointer';
|
||||
|
||||
import { hsvaToHslString } from '../../utils/convert';
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
import type { PropType } from 'vue';
|
||||
import { defineComponent, toRefs } from 'vue';
|
||||
|
||||
import { Interactive, Interaction } from './Interactive';
|
||||
import type { Interaction } from './Interactive';
|
||||
import { Interactive } from './Interactive';
|
||||
import { Pointer } from './Pointer';
|
||||
import { HsvaColor } from '../../types';
|
||||
import type { HsvaColor } from '../../types';
|
||||
import { hsvaToHslString } from '../../utils/convert';
|
||||
import { clamp } from '../../utils/clamp';
|
||||
import { round } from '../../utils/round';
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { InputHTMLAttributes } from 'vue';
|
||||
import type { InputHTMLAttributes } from 'vue';
|
||||
|
||||
export interface RgbColor {
|
||||
r: number;
|
||||
|
|
|
@ -40,7 +40,7 @@ import 'ant-design-vue/dist/reset.css';
|
|||
const app = createApp(App);
|
||||
|
||||
app.use(Antd).mount('#app');
|
||||
`
|
||||
`;
|
||||
|
||||
function getDeps(code: string) {
|
||||
return (code.match(/from '([^']+)';\n/g) || [])
|
||||
|
|
|
@ -23,5 +23,14 @@
|
|||
"importsNotUsedAsValues": "preserve",
|
||||
"stripInternal": true
|
||||
},
|
||||
"exclude": ["node_modules", "lib", "es", "dist", "scripts", "**/__tests__/**/*", "site/dist"]
|
||||
"exclude": [
|
||||
"node_modules",
|
||||
"lib",
|
||||
"es",
|
||||
"dist",
|
||||
"locale",
|
||||
"scripts",
|
||||
"**/__tests__/**/*",
|
||||
"site/dist"
|
||||
]
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue