mirror of
https://github.com/detleph/components.git
synced 2026-09-04 00:26:01 +02:00
Merge pull request #2 from detleph/create-pull-request/patch
Reformat files using prettier
This commit is contained in:
+13
-16
@@ -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,3 +1,3 @@
|
||||
<script>
|
||||
window.global = window;
|
||||
</script>
|
||||
</script>
|
||||
|
||||
@@ -6,4 +6,4 @@ export const parameters = {
|
||||
date: /Date$/,
|
||||
},
|
||||
},
|
||||
}
|
||||
};
|
||||
|
||||
+6
-6
@@ -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
@@ -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()],
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user