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:
@@ -1,25 +1,25 @@
|
||||
import { withThemeByClassName } from '@storybook/addon-themes'
|
||||
import type { Preview, ReactRenderer } from '@storybook/nextjs-vite'
|
||||
import { IntlProvider } from 'react-intl'
|
||||
import { reactIntl } from './reactIntl'
|
||||
import { withThemeByClassName } from "@storybook/addon-themes"
|
||||
import type { Preview, ReactRenderer } from "@storybook/nextjs-vite"
|
||||
import { IntlProvider } from "react-intl"
|
||||
import { reactIntl } from "./reactIntl"
|
||||
|
||||
import '../lib/design-system-new-deprecated.css'
|
||||
import '../lib/fonts.css'
|
||||
import '../lib/normalize.css'
|
||||
import '../lib/style.css'
|
||||
import "../lib/design-system-new-deprecated.css"
|
||||
import "../lib/fonts.css"
|
||||
import "../lib/normalize.css"
|
||||
import "../lib/style.css"
|
||||
|
||||
export const themes = {
|
||||
themes: {
|
||||
Scandic: 'scandic',
|
||||
'Scandic Go': 'scandic-go',
|
||||
'Downtown Camper': 'downtown-camper',
|
||||
'Grand Hotel': 'grand-hotel',
|
||||
Haymarket: 'haymarket',
|
||||
'Hotel Norge': 'hotel-norge',
|
||||
Marski: 'marski',
|
||||
'The Dock': 'the-dock',
|
||||
Scandic: "scandic",
|
||||
"Scandic Go": "scandic-go",
|
||||
"Downtown Camper": "downtown-camper",
|
||||
"Grand Hotel": "grand-hotel",
|
||||
Haymarket: "haymarket",
|
||||
"Hotel Norge": "hotel-norge",
|
||||
Marski: "marski",
|
||||
"The Dock": "the-dock",
|
||||
},
|
||||
defaultTheme: 'Scandic',
|
||||
defaultTheme: "Scandic",
|
||||
}
|
||||
|
||||
const preview: Preview = {
|
||||
@@ -36,14 +36,14 @@ const preview: Preview = {
|
||||
initialGlobals: {
|
||||
locale: reactIntl.defaultLocale,
|
||||
locales: {
|
||||
en: { icon: '🇬🇧', title: 'English', right: 'EN' },
|
||||
sv: { icon: '🇸🇪', title: 'Svenska', right: 'SV' },
|
||||
da: { icon: '🇩🇰', title: 'Dansk', right: 'DA' },
|
||||
no: { icon: '🇳🇴', title: 'Norsk', right: 'NO' },
|
||||
fi: { icon: '🇫🇮', title: 'Suomi', right: 'FI' },
|
||||
de: { icon: '🇩🇪', title: 'Deutsch', right: 'DE' },
|
||||
en: { icon: "🇬🇧", title: "English", right: "EN" },
|
||||
sv: { icon: "🇸🇪", title: "Svenska", right: "SV" },
|
||||
da: { icon: "🇩🇰", title: "Dansk", right: "DA" },
|
||||
no: { icon: "🇳🇴", title: "Norsk", right: "NO" },
|
||||
fi: { icon: "🇫🇮", title: "Suomi", right: "FI" },
|
||||
de: { icon: "🇩🇪", title: "Deutsch", right: "DE" },
|
||||
},
|
||||
backgrounds: { value: 'scandicSubtle' },
|
||||
backgrounds: { value: "scandicSubtle" },
|
||||
},
|
||||
parameters: {
|
||||
reactIntl,
|
||||
@@ -61,13 +61,13 @@ const preview: Preview = {
|
||||
options: {
|
||||
storySort: {
|
||||
order: [
|
||||
'Introduction',
|
||||
'Tokens',
|
||||
'Core Components',
|
||||
'Product Components',
|
||||
'Patterns',
|
||||
'Compositions',
|
||||
'*',
|
||||
"Introduction",
|
||||
"Tokens",
|
||||
"Core Components",
|
||||
"Product Components",
|
||||
"Patterns",
|
||||
"Compositions",
|
||||
"*",
|
||||
],
|
||||
},
|
||||
},
|
||||
@@ -75,12 +75,12 @@ const preview: Preview = {
|
||||
backgrounds: {
|
||||
options: {
|
||||
// 👇 Scandic
|
||||
scandicPrimary: { name: 'Scandic Primary', value: '#FAF6F2' },
|
||||
scandicSubtle: { name: 'Scandic Subtle', value: '#F2ECE6' },
|
||||
scandicPrimaryDark: { name: 'Scandic Primary Dark', value: '#4D001B' },
|
||||
scandicPrimary: { name: "Scandic Primary", value: "#FAF6F2" },
|
||||
scandicSubtle: { name: "Scandic Subtle", value: "#F2ECE6" },
|
||||
scandicPrimaryDark: { name: "Scandic Primary Dark", value: "#4D001B" },
|
||||
// 👇 Default values
|
||||
storybookDark: { name: 'Storybook Dark', value: '#333' },
|
||||
storybookLight: { name: 'Storybook Light', value: '#F7F9F2' },
|
||||
storybookDark: { name: "Storybook Dark", value: "#333" },
|
||||
storybookLight: { name: "Storybook Light", value: "#F7F9F2" },
|
||||
},
|
||||
},
|
||||
|
||||
@@ -88,11 +88,11 @@ const preview: Preview = {
|
||||
// 'todo' - show a11y violations in the test UI only
|
||||
// 'error' - fail CI on a11y violations
|
||||
// 'off' - skip a11y checks entirely
|
||||
test: 'todo',
|
||||
test: "todo",
|
||||
},
|
||||
},
|
||||
|
||||
tags: ['autodocs'],
|
||||
tags: ["autodocs"],
|
||||
}
|
||||
|
||||
export default preview
|
||||
|
||||
Reference in New Issue
Block a user