Merge pull request #2 from detleph/create-pull-request/patch

Reformat files using prettier
This commit is contained in:
Stephan
2022-10-03 19:49:15 +02:00
committed by GitHub
5 changed files with 26 additions and 29 deletions
+13 -16
View File
@@ -1,25 +1,22 @@
const { mergeConfig } = require( "vite")
const { mergeConfig } = require("vite");
const svgr = require("vite-plugin-svgr");
module.exports = {
"stories": [
"../src/**/*.stories.mdx",
"../src/**/*.stories.@(js|jsx|ts|tsx)"
],
"addons": [
stories: ["../src/**/*.stories.mdx", "../src/**/*.stories.@(js|jsx|ts|tsx)"],
addons: [
"@storybook/addon-links",
"@storybook/addon-essentials",
"@storybook/addon-interactions",
"storybook-addon-react-router-v6"
"storybook-addon-react-router-v6",
],
"framework": "@storybook/react",
"core": {
"builder": "@storybook/builder-vite"
framework: "@storybook/react",
core: {
builder: "@storybook/builder-vite",
},
"features": {
"storyStoreV7": true
features: {
storyStoreV7: true,
},
async viteFinal(config, {configType}) {
return mergeConfig(config, {plugins: [svgr()]})
}
}
async viteFinal(config, { configType }) {
return mergeConfig(config, { plugins: [svgr()] });
},
};
+1 -1
View File
@@ -1,3 +1,3 @@
<script>
window.global = window;
</script>
</script>
+1 -1
View File
@@ -6,4 +6,4 @@ export const parameters = {
date: /Date$/,
},
},
}
};
+6 -6
View File
@@ -1,10 +1,10 @@
import React from 'react'
import ReactDOM from 'react-dom/client'
import App from './App'
import './index.css'
import React from "react";
import ReactDOM from "react-dom/client";
import App from "./App";
import "./index.css";
ReactDOM.createRoot(document.getElementById('root') as HTMLElement).render(
ReactDOM.createRoot(document.getElementById("root") as HTMLElement).render(
<React.StrictMode>
<App />
</React.StrictMode>
)
);
+5 -5
View File
@@ -1,8 +1,8 @@
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import svgr from "vite-plugin-svgr"
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
import svgr from "vite-plugin-svgr";
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react(), svgr()]
})
plugins: [react(), svgr()],
});