mirror of
https://github.com/detleph/components.git
synced 2026-09-04 08:36:03 +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");
|
const svgr = require("vite-plugin-svgr");
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
"stories": [
|
stories: ["../src/**/*.stories.mdx", "../src/**/*.stories.@(js|jsx|ts|tsx)"],
|
||||||
"../src/**/*.stories.mdx",
|
addons: [
|
||||||
"../src/**/*.stories.@(js|jsx|ts|tsx)"
|
|
||||||
],
|
|
||||||
"addons": [
|
|
||||||
"@storybook/addon-links",
|
"@storybook/addon-links",
|
||||||
"@storybook/addon-essentials",
|
"@storybook/addon-essentials",
|
||||||
"@storybook/addon-interactions",
|
"@storybook/addon-interactions",
|
||||||
"storybook-addon-react-router-v6"
|
"storybook-addon-react-router-v6",
|
||||||
],
|
],
|
||||||
"framework": "@storybook/react",
|
framework: "@storybook/react",
|
||||||
"core": {
|
core: {
|
||||||
"builder": "@storybook/builder-vite"
|
builder: "@storybook/builder-vite",
|
||||||
},
|
},
|
||||||
"features": {
|
features: {
|
||||||
"storyStoreV7": true
|
storyStoreV7: true,
|
||||||
},
|
},
|
||||||
async viteFinal(config, {configType}) {
|
async viteFinal(config, { configType }) {
|
||||||
return mergeConfig(config, {plugins: [svgr()]})
|
return mergeConfig(config, { plugins: [svgr()] });
|
||||||
}
|
},
|
||||||
}
|
};
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
<script>
|
<script>
|
||||||
window.global = window;
|
window.global = window;
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -6,4 +6,4 @@ export const parameters = {
|
|||||||
date: /Date$/,
|
date: /Date$/,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
};
|
||||||
|
|||||||
+6
-6
@@ -1,10 +1,10 @@
|
|||||||
import React from 'react'
|
import React from "react";
|
||||||
import ReactDOM from 'react-dom/client'
|
import ReactDOM from "react-dom/client";
|
||||||
import App from './App'
|
import App from "./App";
|
||||||
import './index.css'
|
import "./index.css";
|
||||||
|
|
||||||
ReactDOM.createRoot(document.getElementById('root') as HTMLElement).render(
|
ReactDOM.createRoot(document.getElementById("root") as HTMLElement).render(
|
||||||
<React.StrictMode>
|
<React.StrictMode>
|
||||||
<App />
|
<App />
|
||||||
</React.StrictMode>
|
</React.StrictMode>
|
||||||
)
|
);
|
||||||
|
|||||||
+5
-5
@@ -1,8 +1,8 @@
|
|||||||
import { defineConfig } from 'vite'
|
import { defineConfig } from "vite";
|
||||||
import react from '@vitejs/plugin-react'
|
import react from "@vitejs/plugin-react";
|
||||||
import svgr from "vite-plugin-svgr"
|
import svgr from "vite-plugin-svgr";
|
||||||
|
|
||||||
// https://vitejs.dev/config/
|
// https://vitejs.dev/config/
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
plugins: [react(), svgr()]
|
plugins: [react(), svgr()],
|
||||||
})
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user