linted-clean
This commit is contained in:
parent
fce8abfd94
commit
59584938ff
|
@ -21,22 +21,6 @@ const config: StorybookConfig = {
|
||||||
docs: {
|
docs: {
|
||||||
autodocs: 'tag'
|
autodocs: 'tag'
|
||||||
},
|
},
|
||||||
viteFinal: (config) => {
|
|
||||||
if (config.build) {
|
|
||||||
config.build.sourcemap = true
|
|
||||||
config.build.minify = process.env.NODE_ENV === 'production'
|
|
||||||
}
|
|
||||||
if (config.css) {
|
|
||||||
config.css.preprocessorOptions = {
|
|
||||||
scss: {
|
|
||||||
silenceDeprecations: ['mixed-decls'],
|
|
||||||
additionalData: '@import "~/styles/imports";\n',
|
|
||||||
includePaths: ['./public', './src/styles', './node_modules']
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return config
|
|
||||||
},
|
|
||||||
previewHead: (head) => `
|
previewHead: (head) => `
|
||||||
${head}
|
${head}
|
||||||
<style>
|
<style>
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
"function-no-unknown": [
|
"function-no-unknown": [
|
||||||
true,
|
true,
|
||||||
{
|
{
|
||||||
"ignoreFunctions": ["divide", "transparentize"]
|
"ignoreFunctions": ["divide", "transparentize", "map-get", "percentage"]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"function-url-quotes": null,
|
"function-url-quotes": null,
|
||||||
|
@ -55,6 +55,6 @@
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"scss/at-if-no-null": true,
|
"scss/at-if-no-null": true,
|
||||||
"media-query-no-invalid": true
|
"media-query-no-invalid": null
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -36,7 +36,7 @@ export const Button = (props: Props) => {
|
||||||
class={clsx(
|
class={clsx(
|
||||||
styles.button,
|
styles.button,
|
||||||
styles[props.size ?? 'M'],
|
styles[props.size ?? 'M'],
|
||||||
styles[props.variant ?? 'primary'],
|
styles[(props.variant ?? 'primary') as keyof typeof styles],
|
||||||
{
|
{
|
||||||
[styles.loading]: props.loading,
|
[styles.loading]: props.loading,
|
||||||
[styles.subscribeButton]: props.isSubscribeButton
|
[styles.subscribeButton]: props.isSubscribeButton
|
||||||
|
|
Loading…
Reference in New Issue
Block a user