mirror of
https://github.com/lumehq/lume.git
synced 2025-03-17 21:32:32 +01:00
update config
This commit is contained in:
parent
0a56b85492
commit
ce8fd685f3
@ -1,6 +1,6 @@
|
||||
{
|
||||
"parser": "@typescript-eslint/parser",
|
||||
"plugins": ["@typescript-eslint"],
|
||||
"plugins": ["@typescript-eslint", "react-refresh"],
|
||||
"extends": [
|
||||
"plugin:react/recommended",
|
||||
"plugin:react/jsx-runtime",
|
||||
@ -11,6 +11,7 @@
|
||||
"rules": {
|
||||
"@typescript-eslint/no-unused-vars": "error",
|
||||
"@typescript-eslint/no-explicit-any": "warn",
|
||||
"react-refresh/only-export-components": "error",
|
||||
"react/no-unknown-property": ["error", { "ignore": ["fetchpriority"] }]
|
||||
},
|
||||
"ignorePatterns": ["dist", "**/*.js", "**/*.json", "node_modules"]
|
||||
|
@ -58,6 +58,7 @@
|
||||
"eslint-config-prettier": "^8.8.0",
|
||||
"eslint-plugin-react": "^7.32.2",
|
||||
"eslint-plugin-react-hooks": "^4.6.0",
|
||||
"eslint-plugin-react-refresh": "^0.3.4",
|
||||
"husky": "^8.0.3",
|
||||
"lint-staged": "^13.2.1",
|
||||
"postcss": "^8.4.23",
|
||||
|
11
pnpm-lock.yaml
generated
11
pnpm-lock.yaml
generated
@ -29,6 +29,7 @@ specifiers:
|
||||
eslint-config-prettier: ^8.8.0
|
||||
eslint-plugin-react: ^7.32.2
|
||||
eslint-plugin-react-hooks: ^4.6.0
|
||||
eslint-plugin-react-refresh: ^0.3.4
|
||||
husky: ^8.0.3
|
||||
iconoir-react: ^6.6.0
|
||||
jotai: ^2.0.4
|
||||
@ -102,6 +103,7 @@ devDependencies:
|
||||
eslint-config-prettier: 8.8.0_eslint@8.39.0
|
||||
eslint-plugin-react: 7.32.2_eslint@8.39.0
|
||||
eslint-plugin-react-hooks: 4.6.0_eslint@8.39.0
|
||||
eslint-plugin-react-refresh: 0.3.4_eslint@8.39.0
|
||||
husky: 8.0.3
|
||||
lint-staged: 13.2.1
|
||||
postcss: 8.4.23
|
||||
@ -2447,6 +2449,15 @@ packages:
|
||||
eslint: 8.39.0
|
||||
dev: true
|
||||
|
||||
/eslint-plugin-react-refresh/0.3.4_eslint@8.39.0:
|
||||
resolution:
|
||||
{ integrity: sha512-E0ViBglxSQAERBp6eTj5fPgtCRtDonnbCFiVQBhf4Dto2blJRxg1dFUMdMh7N6ljTI4UwPhHwYDQ3Dyo4m6bwA== }
|
||||
peerDependencies:
|
||||
eslint: '>=7'
|
||||
dependencies:
|
||||
eslint: 8.39.0
|
||||
dev: true
|
||||
|
||||
/eslint-plugin-react/7.32.2_eslint@8.39.0:
|
||||
resolution:
|
||||
{ integrity: sha512-t2fBMa+XzonrrNkyVirzKlvn5RXzzPwRHtMvLAtVZrt8oxgnTQaYbU6SXTOO1mwQgp1y5+toMSKInnzGr0Knqg== }
|
||||
|
@ -5,6 +5,19 @@ import topLevelAwait from 'vite-plugin-top-level-await';
|
||||
import viteTsconfigPaths from 'vite-tsconfig-paths';
|
||||
|
||||
export default defineConfig({
|
||||
clearScreen: false,
|
||||
server: {
|
||||
strictPort: true,
|
||||
},
|
||||
envPrefix: ['VITE_', 'TAURI_'],
|
||||
build: {
|
||||
// Tauri uses Chromium on Windows and WebKit on macOS and Linux
|
||||
target: process.env.TAURI_PLATFORM == 'windows' ? 'chrome105' : 'safari13',
|
||||
// don't minify for debug builds
|
||||
minify: !process.env.TAURI_DEBUG ? 'esbuild' : false,
|
||||
// produce sourcemaps for debug builds
|
||||
sourcemap: !!process.env.TAURI_DEBUG,
|
||||
},
|
||||
plugins: [
|
||||
react(),
|
||||
ssr({ prerender: true }),
|
||||
@ -14,7 +27,4 @@ export default defineConfig({
|
||||
promiseImportName: (i) => `__tla_${i}`,
|
||||
}),
|
||||
],
|
||||
define: {
|
||||
global: 'window',
|
||||
},
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user