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

@@ -87,6 +87,7 @@
"yaml": "^2.6.0"
},
"devDependencies": {
"@biomejs/biome": "^1.9.4",
"@sentry/types": "^8.36.0",
"@smithy/util-stream": "^3.2.1",
"@types/bootstrap": "^5.2.10",
@@ -108,27 +109,12 @@
"@types/url-join": "^4.0.3",
"@types/webpack-env": "^1.18.5",
"@types/ws": "^8.5.13",
"@typescript-eslint/eslint-plugin": "^7.18.0",
"@typescript-eslint/parser": "^7.18.0",
"@vitest/coverage-v8": "^2.1.4",
"aws-sdk-client-mock": "^4.1.0",
"cheerio": "^1.0.0",
"css-loader": "^7.1.2",
"css-minimizer-webpack-plugin": "^7.0.0",
"cypress": "^13.15.1",
"eslint": "^8.57.1",
"eslint-config-prettier": "^9.1.0",
"eslint-import-resolver-typescript": "^3.6.3",
"eslint-plugin-header": "^3.1.1",
"eslint-plugin-import": "^2.31.0",
"eslint-plugin-jsdoc": "^48.11.0",
"eslint-plugin-n": "^17.12.0",
"eslint-plugin-prettier": "^5.2.1",
"eslint-plugin-promise": "^6.6.0",
"eslint-plugin-requirejs": "^4.0.1",
"eslint-plugin-sonarjs": "^0.25.1",
"eslint-plugin-unicorn": "^51.0.1",
"eslint-plugin-unused-imports": "^3.2.0",
"file-loader": "^6.2.0",
"husky": "^9.1.6",
"lint-staged": "^15.2.10",
@@ -150,17 +136,23 @@
"webpack-dev-middleware": "^7.4.2",
"webpack-manifest-plugin": "^5.0.0"
},
"optionalDependencies": {
"@rollup/rollup-linux-x64-gnu": "*",
"@rollup/rollup-linux-x64-musl": "*",
"@rollup/rollup-darwin-x64": "*",
"@rollup/rollup-darwin-arm64": "*",
"@rollup/rollup-win32-x64-msvc": "*"
},
"scripts": {
"ci-lint": "eslint --format github .",
"ci-test": "vitest run --coverage",
"ci-test": "vitest run",
"ci-lint": "biome check .",
"cypress": "cypress run",
"lint": "eslint --max-warnings=0 . --fix && prettier --write .",
"lint-check": "eslint --max-warnings=0 . && prettier --check .",
"lint-files": "eslint --max-warnings=0",
"lint": "biome check . --write",
"lint-check": "biome check .",
"test-coverage": "vitest run --coverage",
"test": "vitest run",
"test:watch": "vitest",
"test-min": "vitest run --exclude test/filter-tests.ts",
"fix": "npm run lint && npm run format && npm run ts-check",
"check": "npm run ts-check && npm run lint-check && npm run test-min -- --reporter min",
"dev": "cross-env NODE_ENV=DEV node --no-warnings=ExperimentalWarning --import=tsx app.ts",
"debugger": "cross-env NODE_ENV=DEV node --import=tsx --inspect-brk app.ts",
@@ -169,8 +161,6 @@
"sentry": "npx -p @sentry/cli sentry-cli",
"update-browserslist": "npx browserslist@latest -- --update-db",
"prepare": "husky",
"format": "prettier --write .",
"format-files": "prettier --write --ignore-unknown",
"ts-compile": "tsc",
"ts-check": "tsc -p ./tsconfig.backend.json --noEmit && tsc -p ./tsconfig.frontend.json --noEmit && tsc -p ./tsconfig.tests.json --noEmit",
"webpack": "node --no-warnings=ExperimentalWarning --import=tsx ./node_modules/webpack-cli/bin/cli.js --node-env=production --config webpack.config.esm.ts"