From 4e8673c4522eece7b0de0fe916c37dc313dff38c Mon Sep 17 00:00:00 2001 From: Yarmo Mackenbach Date: Fri, 14 Jun 2024 10:13:36 +0200 Subject: [PATCH] fix: temporarily disable biome, add it to nix --- biome.json | 2 +- flake.nix | 3 ++ package-lock.json | 118 ---------------------------------------------- package.json | 5 +- 4 files changed, 5 insertions(+), 123 deletions(-) diff --git a/biome.json b/biome.json index 167e1b6..dfba4a9 100644 --- a/biome.json +++ b/biome.json @@ -1,5 +1,5 @@ { - "$schema": "https://biomejs.dev/schemas/1.2.2/schema.json", + "$schema": "https://biomejs.dev/schemas/1.8.1/schema.json", "organizeImports": { "enabled": false }, diff --git a/flake.nix b/flake.nix index 50c3ebf..81aff15 100644 --- a/flake.nix +++ b/flake.nix @@ -17,12 +17,15 @@ devShell = with pkgs; mkShell { buildInputs = [ nodejs_20 + biome ]; shellHook = '' echo "node: `${nodejs_20}/bin/node --version`" echo "npm: `${nodejs_20}/bin/npm --version`" ''; + + BIOME_BINARY = "${pkgs.biome}/bin/biome"; }; }); } \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 1781bfb..1fdada9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -32,7 +32,6 @@ "winston": "^3.8.2" }, "devDependencies": { - "@biomejs/biome": "1.2.2", "@vercel/ncc": "^0.34.0", "chai": "^4.3.6", "copy-webpack-plugin": "^11.0.0", @@ -516,123 +515,6 @@ "node": ">=6.9.0" } }, - "node_modules/@biomejs/biome": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/@biomejs/biome/-/biome-1.2.2.tgz", - "integrity": "sha512-fXwXi56ZdaKO/N3rTmhWw41UxstoviODk+wia4WWNSlm23r8xJ/NxjaZ88scV2IsmsFHqc8rmwb2dkrStAdIEw==", - "dev": true, - "hasInstallScript": true, - "bin": { - "biome": "bin/biome" - }, - "engines": { - "node": ">=14.*" - }, - "optionalDependencies": { - "@biomejs/cli-darwin-arm64": "1.2.2", - "@biomejs/cli-darwin-x64": "1.2.2", - "@biomejs/cli-linux-arm64": "1.2.2", - "@biomejs/cli-linux-x64": "1.2.2", - "@biomejs/cli-win32-arm64": "1.2.2", - "@biomejs/cli-win32-x64": "1.2.2" - } - }, - "node_modules/@biomejs/cli-darwin-arm64": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/@biomejs/cli-darwin-arm64/-/cli-darwin-arm64-1.2.2.tgz", - "integrity": "sha512-Fx1IURKhoqH6wPawtKLT6wcfMSjRRcNK8+VWau0iDOjXvNtjJpSmICbU89B7Vt/gZRwPqkfDMBkFwm6V5vFTSQ==", - "cpu": [ - "arm64" - ], - "dev": true, - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": ">=14.*" - } - }, - "node_modules/@biomejs/cli-darwin-x64": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/@biomejs/cli-darwin-x64/-/cli-darwin-x64-1.2.2.tgz", - "integrity": "sha512-JNaAFOI/ZisnmzvcFNd73geJxaFaN2L4YsWM6cgBeKyLY/ycl9C/PBTFfEmeB1c7f5XIIal8P2cj47kLJpN5Ig==", - "cpu": [ - "x64" - ], - "dev": true, - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": ">=14.*" - } - }, - "node_modules/@biomejs/cli-linux-arm64": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/@biomejs/cli-linux-arm64/-/cli-linux-arm64-1.2.2.tgz", - "integrity": "sha512-JHXRnfhOLx8UO/Fcyn2c5pFRri0XKqRZm2wf5oH5GSfLVpckDw2X15dYGbu3nmfM/3pcAaTV46pUpjrCnaAieg==", - "cpu": [ - "arm64" - ], - "dev": true, - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=14.*" - } - }, - "node_modules/@biomejs/cli-linux-x64": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/@biomejs/cli-linux-x64/-/cli-linux-x64-1.2.2.tgz", - "integrity": "sha512-5Zr+iM7lUKsw81p9PkXRESuH2/AhRZ6RCWkgE+FSLcxMhXy/4RDR+o2YQDsJM6cWKIzOJM05vDHTGrDq7vXE4A==", - "cpu": [ - "x64" - ], - "dev": true, - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=14.*" - } - }, - "node_modules/@biomejs/cli-win32-arm64": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/@biomejs/cli-win32-arm64/-/cli-win32-arm64-1.2.2.tgz", - "integrity": "sha512-HvUcG2p++RvYP0zfOqh+DgiUUH+JI/uETr0kzWlOJ9F3lsG525pkywg4RSd4OvJd7Wpd3wt3UpN/A4IEJaVmbA==", - "cpu": [ - "arm64" - ], - "dev": true, - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=14.*" - } - }, - "node_modules/@biomejs/cli-win32-x64": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/@biomejs/cli-win32-x64/-/cli-win32-x64-1.2.2.tgz", - "integrity": "sha512-bfaFJwqJ9ApFga2o88OaROSd3pasYRzRGXHJWAE9VUUKdSNSTYxHOqVrNvV54yYPtL6Kt9xkuZa4HNu9it3TaA==", - "cpu": [ - "x64" - ], - "dev": true, - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=14.*" - } - }, "node_modules/@colors/colors": { "version": "1.6.0", "resolved": "https://registry.npmjs.org/@colors/colors/-/colors-1.6.0.tgz", diff --git a/package.json b/package.json index d24c48c..ccd3602 100644 --- a/package.json +++ b/package.json @@ -28,7 +28,6 @@ "winston": "^3.8.2" }, "devDependencies": { - "@biomejs/biome": "1.2.2", "@vercel/ncc": "^0.34.0", "chai": "^4.3.6", "copy-webpack-plugin": "^11.0.0", @@ -56,9 +55,7 @@ "build:server": "ncc build ./src/index.js -o dist", "build:static": "webpack --config webpack.config.js --env static=true --env mode=production", "build:static:dev": "webpack --config webpack.config.js --env static=true --env mode=development", - "lint": "npm run standard:check && npm run biome:check", - "biome:check": "biome check ./src && biome lint ./src", - "biome:fix": "biome check --apply ./src && biome lint --apply ./src", + "lint": "npm run standard:check", "standard:check": "standard ./src", "standard:fix": "standard --fix ./src", "license:check": "license-check-and-add check",