Migrate to Biome for linting and formatting (#7033)

This commit is contained in:
Mats Jun Larsen
2025-02-03 02:54:31 +09:00
committed by GitHub
parent 7adb9f3b3e
commit 5eea63328f
367 changed files with 2437 additions and 6217 deletions

View File

@@ -22,12 +22,11 @@
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
// POSSIBILITY OF SUCH DAMAGE.
import fs from 'fs';
import os from 'os';
import path from 'path';
import {fileURLToPath} from 'url';
import fs from 'node:fs';
import os from 'node:os';
import path from 'node:path';
import {fileURLToPath} from 'node:url';
/* eslint-disable n/no-unpublished-import */
import CopyWebpackPlugin from 'copy-webpack-plugin';
import CssMinimizerPlugin from 'css-minimizer-webpack-plugin';
import MiniCssExtractPlugin from 'mini-css-extract-plugin';
@@ -39,10 +38,7 @@ import {WebpackManifestPlugin} from 'webpack-manifest-plugin';
const __dirname = path.resolve(path.dirname(fileURLToPath(import.meta.url)));
const isDev = process.env.NODE_ENV !== 'production';
function log(message: string) {
// eslint-disable-next-line no-console
console.log('webpack: ' + message);
}
function log(message: string) {}
log(`compiling for ${isDev ? 'development' : 'production'}.`);
// Memory limits us in most cases, so restrict parallelism to keep us in a sane amount of RAM
@@ -102,7 +98,6 @@ if (isDev) {
plugins.push(new Webpack.HotModuleReplacementPlugin());
}
// eslint-disable-next-line import/no-default-export
export default {
mode: isDev ? 'development' : 'production',
entry: {