Merged in fix/3697-prettier-configs (pull request #3396)

fix(SW-3691): Setup one prettier config for whole repo

* Setup prettierrc in root and remove other configs


Approved-by: Joakim Jäderberg
Approved-by: Linus Flood
This commit is contained in:
Rasmus Langvad
2026-01-07 12:45:50 +00:00
parent 932413412b
commit d0546926a9
500 changed files with 18367 additions and 18419 deletions

View File

@@ -1,6 +1,6 @@
import { cva } from 'class-variance-authority'
import { cva } from "class-variance-authority"
import styles from './button.module.css'
import styles from "./button.module.css"
export const buttonVariants = cva(styles.btn, {
variants: {
@@ -18,14 +18,14 @@ export const buttonVariants = cva(styles.btn, {
large: styles.large,
},
theme: {
base: '',
primaryDark: '',
primaryStrong: '',
primaryLight: '',
secondaryLight: '',
secondaryDark: '',
tertiaryLight: '',
tertiaryDark: '',
base: "",
primaryDark: "",
primaryStrong: "",
primaryLight: "",
secondaryLight: "",
secondaryDark: "",
tertiaryLight: "",
tertiaryDark: "",
},
variant: {
clean: styles.clean,
@@ -43,112 +43,112 @@ export const buttonVariants = cva(styles.btn, {
},
},
defaultVariants: {
intent: 'primary',
size: 'medium',
theme: 'primaryLight',
variant: 'default',
intent: "primary",
size: "medium",
theme: "primaryLight",
variant: "default",
},
compoundVariants: [
{
className: styles.basePrimary,
intent: 'primary',
theme: 'base',
intent: "primary",
theme: "base",
},
{
className: styles.baseSecondary,
intent: 'secondary',
theme: 'base',
intent: "secondary",
theme: "base",
},
{
className: styles.baseTertiary,
intent: 'tertiary',
theme: 'base',
intent: "tertiary",
theme: "base",
},
{
className: styles.baseInverted,
intent: 'inverted',
theme: 'base',
intent: "inverted",
theme: "base",
},
{
className: styles.primaryDarkPrimary,
intent: 'primary',
theme: 'primaryDark',
intent: "primary",
theme: "primaryDark",
},
{
className: styles.primaryDarkSecondary,
intent: 'secondary',
theme: 'primaryDark',
intent: "secondary",
theme: "primaryDark",
},
{
className: styles.primaryLightPrimary,
intent: 'primary',
theme: 'primaryLight',
intent: "primary",
theme: "primaryLight",
},
{
className: styles.primaryLightSecondary,
intent: 'secondary',
theme: 'primaryLight',
intent: "secondary",
theme: "primaryLight",
},
{
className: styles.primaryStrongPrimary,
intent: 'primary',
theme: 'primaryStrong',
intent: "primary",
theme: "primaryStrong",
},
{
className: styles.primaryStrongSecondary,
intent: 'secondary',
theme: 'primaryStrong',
intent: "secondary",
theme: "primaryStrong",
},
{
className: styles.secondaryDarkPrimary,
intent: 'primary',
theme: 'secondaryDark',
intent: "primary",
theme: "secondaryDark",
},
{
className: styles.secondaryDarkSecondary,
intent: 'secondary',
theme: 'secondaryDark',
intent: "secondary",
theme: "secondaryDark",
},
{
className: styles.secondaryLightPrimary,
intent: 'primary',
theme: 'secondaryLight',
intent: "primary",
theme: "secondaryLight",
},
{
className: styles.secondaryLightSecondary,
intent: 'secondary',
theme: 'secondaryLight',
intent: "secondary",
theme: "secondaryLight",
},
{
className: styles.tertiaryDarkPrimary,
intent: 'primary',
theme: 'tertiaryDark',
intent: "primary",
theme: "tertiaryDark",
},
{
className: styles.tertiaryDarkSecondary,
intent: 'secondary',
theme: 'tertiaryDark',
intent: "secondary",
theme: "tertiaryDark",
},
{
className: styles.tertiaryLightPrimary,
intent: 'primary',
theme: 'tertiaryLight',
intent: "primary",
theme: "tertiaryLight",
},
{
className: styles.tertiaryLightSecondary,
intent: 'secondary',
theme: 'tertiaryLight',
intent: "secondary",
theme: "tertiaryLight",
},
{
className: styles.baseText,
intent: 'text',
theme: 'base',
intent: "text",
theme: "base",
},
{
className: styles.baseTextInverted,
intent: 'textInverted',
theme: 'base',
intent: "textInverted",
theme: "base",
},
],
})