diff --git a/.vscode/extensions.json b/.vscode/extensions.json index 1222e54..0aaf53b 100644 --- a/.vscode/extensions.json +++ b/.vscode/extensions.json @@ -2,7 +2,6 @@ "recommendations": [ "biomejs.biome", "streetsidesoftware.code-spell-checker", - "dbaeumer.vscode-eslint", "jawandarajbir.react-vscode-extension-pack" ] } diff --git a/.vscode/settings.json b/.vscode/settings.json index d60c16a..d2ef48d 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,15 +1,25 @@ { "editor.formatOnSave": true, "editor.codeActionsOnSave": { + "source.fixAll.biome": "explicit", "quickfix.biome": "explicit", "source.organizeImports": "explicit" }, + "[css]": { + "editor.defaultFormatter": "biomejs.biome" + }, "[javascript]": { "editor.defaultFormatter": "biomejs.biome" }, "[javascriptreact]": { "editor.defaultFormatter": "biomejs.biome" }, + "[json]": { + "editor.defaultFormatter": "biomejs.biome" + }, + "[jsonc]": { + "editor.defaultFormatter": "biomejs.biome" + }, "[typescript]": { "editor.defaultFormatter": "biomejs.biome" }, diff --git a/biome.json b/biome.json index 2a7b3e8..c3c51bd 100644 --- a/biome.json +++ b/biome.json @@ -7,7 +7,7 @@ }, "files": { "ignoreUnknown": false, - "includes": ["src/**"] + "includes": ["src/**", "scripts/**"] }, "formatter": { "enabled": true, diff --git a/rspack.config.ts b/rspack.config.ts index 7f2c7ee..219bf78 100644 --- a/rspack.config.ts +++ b/rspack.config.ts @@ -17,12 +17,12 @@ export default defineConfig({ filename: '[name].js', }, resolve: { - extensions: ['...', '.ts', '.tsx', '.jsx'], + extensions: ['...', '.ts', '.tsx'], }, module: { rules: [ { - test: /\.(jsx?|tsx?)$/, + test: /\.(tsx?)$/, use: [ { loader: 'builtin:swc-loader', @@ -64,7 +64,6 @@ export default defineConfig({ css: true, }, performance: { - maxEntrypointSize: 1024000, - maxAssetSize: 1024000, + hints: false, }, }); diff --git a/scripts/generate-private-key.js b/scripts/generate-private-key.js index f773b0f..df17e65 100644 --- a/scripts/generate-private-key.js +++ b/scripts/generate-private-key.js @@ -1,7 +1,4 @@ -/* eslint-env node */ -'use strict'; - -const fs = require('fs'); +const fs = require('node:fs'); const RSA = require('node-rsa'); const privateKeyFile = './private.ppk'; diff --git a/scripts/npm-start.js b/scripts/npm-start.js index 0039246..b39316e 100644 --- a/scripts/npm-start.js +++ b/scripts/npm-start.js @@ -1,6 +1,3 @@ -/* eslint-env node */ -'use strict'; - const runAll = require('npm-run-all'); runAll(['develop', 'upload'], {