Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
auto-install-peers=true
7 changes: 0 additions & 7 deletions .prettierrc

This file was deleted.

Binary file added packages/.DS_Store
Binary file not shown.
1 change: 1 addition & 0 deletions packages/demo/.prettierrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"parser": "babel",
"singleQuote": true,
"printWidth": 120
}
9 changes: 5 additions & 4 deletions packages/demo/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import ReactDom from 'react-dom/client';
import React, { ReactNode } from 'react';
import { BrowserRouter as Router, useLocation, useRoutes } from 'react-router-dom';
import React from 'react';
import { HashRouter, useLocation, useRoutes } from 'react-router-dom';
import router from '@/routers';
import './index.scss';
import { useLayoutEffect } from 'react';
Expand All @@ -18,9 +18,10 @@ const AutoScrollToTop: React.FC<{ children: React.ReactElement }> = ({ children
};

ReactDom.createRoot(document.getElementById('root') as HTMLElement).render(
<Router>
<HashRouter>
<AutoScrollToTop>
<App />
</AutoScrollToTop>
</Router>
</HashRouter>

);
1 change: 1 addition & 0 deletions packages/demo/loaders/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
const prettier = require('prettier');
function format(code) {
return prettier.format(code, {
parser: 'babel',
semi: true,
singleQuote: true,
printWidth: 120,
Expand Down
1 change: 1 addition & 0 deletions packages/design-icon/.prettierrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"singleQuote": true,
"parser": "babel",
"printWidth": 120
}
1 change: 1 addition & 0 deletions packages/design-props/.prettierrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"parser": "babel",
"singleQuote": true,
"printWidth": 120
}
1 change: 1 addition & 0 deletions packages/design/.prettierrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"parser": "babel",
"singleQuote": true,
"printWidth": 120
}
Loading