mirror of
https://github.com/compiler-explorer/compiler-explorer.git
synced 2025-12-27 10:33:59 -05:00
Migrate to Biome for linting and formatting (#7033)
This commit is contained in:
36
package.json
36
package.json
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user