chore: format all common files (#431)

This commit is contained in:
tecvan
2025-07-31 21:46:47 +08:00
committed by GitHub
parent 8136ddd82d
commit 40088b0a05
60 changed files with 658 additions and 288 deletions

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
const { NODE_ENV } = process.env;
const IS_DEV_MODE = NODE_ENV === 'development'; // local environment

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import {
Project,
SyntaxKind,

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import type { IConfig } from '../../autoinstallers/plugins/node_modules/rush-init-project-plugin';
import SelectTeamPlugin from '../_plugins/SelectTeamPlugin';
import SetDefaultAuthorPlugin from '../_plugins/SetDefaultAuthorPlugin';
@@ -21,8 +21,8 @@ import SetDefaultAuthorPlugin from '../_plugins/SetDefaultAuthorPlugin';
const config: IConfig = {
plugins: [new SetDefaultAuthorPlugin(), new SelectTeamPlugin()],
defaultProjectConfiguration: {
tags:['level-4']
}
tags: ['level-4'],
},
};
export default config;

View File

@@ -16,6 +16,9 @@
"test:cov": "npm run test -- --coverage"
},
"dependencies": {
"@coze-arch/bot-api": "workspace:*",
"@coze-arch/i18n": "workspace:*",
"@coze-arch/logger": "workspace:*",
"@douyinfe/semi-icons": "^2.36.0",
"@douyinfe/semi-ui": "2.61.0",
"immer": "^10.0.3",
@@ -23,18 +26,15 @@
"react-dom": "~18.2.0",
"react-error-boundary": "^4.0.9",
"react-router-dom": "^6.11.1",
"zustand": "^4.4.7",
"@coze-arch/logger": "workspace:*",
"@coze-arch/i18n": "workspace:*",
"@coze-arch/bot-api": "workspace:*"
"zustand": "^4.4.7"
},
"devDependencies": {
"@douyinfe/semi-rspack-plugin": "~2.48.0",
"@edenx/plugin-tailwind": "1.51.0",
"@coze-arch/eslint-config": "workspace:*",
"@coze-arch/stylelint-config": "workspace:*",
"@coze-arch/ts-config": "workspace:*",
"@coze-arch/vitest-config": "workspace:*",
"@coze-arch/stylelint-config": "workspace:*",
"@douyinfe/semi-rspack-plugin": "~2.48.0",
"@edenx/plugin-tailwind": "1.51.0",
"@rspack/cli": "0.4.0",
"@rspack/core": "0.4.0",
"@rspack/plugin-react-refresh": "0.4.0",
@@ -52,7 +52,7 @@
"tailwindcss": "~3.3.3",
"ts-morph": "^20.0.0",
"ts-node": "^10.9.1",
"vitest": "~3.0.5"
}
}

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import path from 'path';
import refreshPlugin from '@rspack/plugin-react-refresh';

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { RouterProvider } from 'react-router-dom';
import { createRoot } from 'react-dom/client';
@@ -27,7 +27,7 @@ browserClient('init', {
bid: '',
});
browserClient('start');
reporter.init(browserClient)
reporter.init(browserClient);
const root = createRoot(document.getElementById('root'));
root.render(<RouterProvider router={router} />);

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import React from 'react';
import './index.less';

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import React from 'react';
import { Button } from '@douyinfe/semi-ui';

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { immer } from 'zustand/middleware/immer';
import { devtools } from 'zustand/middleware';
import { create } from 'zustand';

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { createBrowserRouter } from 'react-router-dom';
import { Page2 } from '@/pages/page2';

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { devtools } from 'zustand/middleware';
import { create } from 'zustand';

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { type StateCreator } from 'zustand';
export interface UserInfoSlice {

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// Automatically generated based on env/index.ts, do not modify manually
declare const IS_CI: boolean;
declare const IS_DEV_MODE: boolean;

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
declare module '*.svg';
declare module '*.png';
declare module '*.less';

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { defineConfig } from '@coze-arch/vitest-config';
export default defineConfig({