diff --git a/.vscode/settings.json b/.vscode/settings.json index 06d7fab162..bff6abe868 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -7,7 +7,9 @@ "source.organizeImports.biome": "explicit" }, "editor.defaultFormatter": "biomejs.biome", - "css.customData": ["./.vscode/css-data.json"], + "css.customData": [ + "./.vscode/css-data.json" + ], "[css]": { "editor.defaultFormatter": "biomejs.biome" }, @@ -24,5 +26,8 @@ }, "[html]": { "editor.defaultFormatter": "biomejs.biome" + }, + "[jsonc]": { + "editor.defaultFormatter": "biomejs.biome" } } diff --git a/apps/_components/tsconfig.json b/apps/_components/tsconfig.json index 3995b15236..887c0caec4 100644 --- a/apps/_components/tsconfig.json +++ b/apps/_components/tsconfig.json @@ -10,16 +10,9 @@ "noEmit": false, "incremental": true, "moduleResolution": "Bundler", - "types": [ - "@digdir/designsystemet-theme/colors.d.ts", - "./declarations.d.ts", - ], + "types": ["@digdir/designsystemet-theme/colors.d.ts", "./declarations.d.ts"] }, - "include": [ - "./src", - "./stories", - "declarations.d.ts" - ], + "include": ["./src", "./stories", "declarations.d.ts"], "plugins": [ { "name": "next" diff --git a/apps/storefront/tsconfig.json b/apps/storefront/tsconfig.json index a30167788e..7d2fd8d97b 100644 --- a/apps/storefront/tsconfig.json +++ b/apps/storefront/tsconfig.json @@ -3,21 +3,11 @@ "compilerOptions": { "baseUrl": ".", "paths": { - "@components": [ - "components" - ], - "@layouts": [ - "layouts" - ], - "@blog": [ - "app/bloggen/_components" - ] + "@components": ["components"], + "@layouts": ["layouts"], + "@blog": ["app/bloggen/_components"] }, - "lib": [ - "dom", - "dom.iterable", - "esnext" - ], + "lib": ["dom", "dom.iterable", "esnext"], "allowJs": true, "skipLibCheck": true, "strict": true, @@ -30,9 +20,7 @@ "jsx": "preserve", "incremental": true, "forceConsistentCasingInFileNames": true, - "types": [ - "@digdir/designsystemet-theme/colors.d.ts", - ], + "types": ["@digdir/designsystemet-theme/colors.d.ts"], "plugins": [ { "name": "next" @@ -46,7 +34,5 @@ "**/*.css", ".next/types/**/*.ts" ], - "exclude": [ - "node_modules" - ] + "exclude": ["node_modules"] } diff --git a/plugins/figma/src/ui/pages/Theme/Theme.tsx b/plugins/figma/src/ui/pages/Theme/Theme.tsx index 73534426a1..f9565807ef 100644 --- a/plugins/figma/src/ui/pages/Theme/Theme.tsx +++ b/plugins/figma/src/ui/pages/Theme/Theme.tsx @@ -12,7 +12,10 @@ import { Link as RouterLink, useParams } from 'react-router-dom'; import { getDummyTheme } from '@common/dummyTheme'; import { colorCliOptions } from '@digdir/designsystemet'; -import { type CssColor, generateThemeForColor } from '@digdir/designsystemet/color'; +import { + type CssColor, + generateThemeForColor, +} from '@digdir/designsystemet/color'; import { type ColorTheme, useThemeStore } from '../../../common/store'; import { themeToFigmaFormat } from '../../../common/utils'; import classes from './Theme.module.css';