monkeytype/package.json
Jack a067a32b7a
chore: move main linting to oxlint (@miodec) (#7144)
- main linting is now done by oxlint. eslint remains for linting json
files in the frontend (until oxlint adds support)
 - move type checking to the lint step (with --type-check)
this improves performance by removing a duplicated typescript parse task
(instead of parsing for linting then again for type checking, it parses
once for both)
- add a `lint-fast` npm script to get some fast fail behavior. it simply
lints with no type information
- oxc plugins are still in preview, so the custom plugin that checks for
`__testing` usage outside of tests runs outside the main linting job
until performance is improved
- fixes some type issues (and config issues) that were not visible due
to a missing type check on some files. now type checking will run on
every file that is linted
 - split up oxc config for easier management

waiting https://github.com/oxc-project/tsgolint/pull/494

seeing around 3x improvement in type aware linting
2025-12-15 22:16:16 +01:00

86 lines
3.4 KiB
JSON

{
"name": "monkeytype",
"version": "25.49.0",
"private": true,
"license": "GPL-3.0",
"type": "module",
"scripts": {
"preinstall": "npx only-allow pnpm",
"full-check": "turbo lint build test integration-test check-assets --force",
"prepare": "husky install",
"pre-commit": "lint-staged",
"ts-check": "turbo run ts-check",
"lint": "turbo run lint",
"lint-be": "turbo run lint --filter @monkeytype/backend",
"lint-fe": "turbo run lint --filter @monkeytype/frontend",
"lint-pkg": "turbo run lint --filter=\"./packages/*\"",
"lint-fast": "turbo run lint-fast",
"lint-fast-be": "turbo run lint-fast --filter @monkeytype/backend",
"lint-fast-fe": "turbo run lint-fast --filter @monkeytype/frontend",
"lint-fast-pkg": "turbo run lint-fast --filter=\"./packages/*\"",
"build": "turbo run build",
"build-be": "turbo run build --filter @monkeytype/backend",
"build-fe": "turbo run build --filter @monkeytype/frontend",
"build-pkg": "turbo run build --filter=\"./packages/*\"",
"test": "turbo run test integration-test",
"test-be": "turbo run test integration-test --filter @monkeytype/backend",
"test-fe": "turbo run test --filter @monkeytype/frontend",
"test-pkg": "turbo run test --filter=\"./packages/*\"",
"dev": "turbo run dev --force",
"dev-be": "turbo run dev --force --filter @monkeytype/backend",
"dev-fe": "turbo run dev --force --filter @monkeytype/frontend",
"dev-pkg": "turbo run dev --force --filter=\"./packages/*\"",
"start": "turbo run start",
"start-be": "turbo run start --filter @monkeytype/backend",
"start-fe": "turbo run start --filter @monkeytype/frontend",
"docker": "cd backend && npm run docker",
"audit-fe": "cd frontend && npm run audit",
"preview-fe": "monkeytype-release --preview-fe",
"release": "monkeytype-release",
"release-fe": "monkeytype-release --fe",
"release-be": "monkeytype-release --be",
"release-no-deploy": "monkeytype-release --no-deploy",
"release-dry": "monkeytype-release --dry",
"hotfix": "monkeytype-release --hotfix",
"hotfix-fe": "monkeytype-release --hotfix --fe",
"hotfix-be": "monkeytype-release --hotfix --be",
"hotfix-dry": "monkeytype-release --hotfix --dry",
"format-check": "oxfmt . --check",
"format-fix": "oxfmt .",
"lint-json-assets": "cd frontend && eslint \"./static/**/*.json\"",
"check-assets": "turbo check-assets --filter @monkeytype/frontend",
"check-assets-quotes": "turbo check-assets --filter @monkeytype/frontend -- quotes",
"check-assets-languages": "turbo check-assets --filter @monkeytype/frontend -- languages",
"check-assets-others": "turbo check-assets --filter @monkeytype/frontend -- others",
"knip": "knip"
},
"lint-staged": {
"*": [
"oxfmt --no-error-on-unmatched-pattern"
],
"*.{ts,js}": [
"oxlint --type-aware --type-check"
]
},
"devDependencies": {
"@commitlint/cli": "17.7.1",
"@commitlint/config-conventional": "19.2.2",
"@monkeytype/release": "workspace:*",
"@vitest/coverage-v8": "4.0.8",
"conventional-changelog": "6.0.0",
"husky": "8.0.1",
"knip": "2.19.2",
"lint-staged": "13.2.3",
"only-allow": "1.2.1",
"oxfmt": "0.18.0",
"oxlint": "1.33.0",
"oxlint-tsgolint": "0.9.0",
"prettier": "3.7.1",
"turbo": "2.5.6",
"vitest": "4.0.8"
},
"packageManager": "pnpm@9.6.0",
"engines": {
"node": "24.11.0 || 22.21.0"
}
}