mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-12-27 18:38:37 +08:00
- 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
56 lines
1.3 KiB
JSON
56 lines
1.3 KiB
JSON
{
|
|
"$schema": "https://turbo.build/schema.json",
|
|
"globalDependencies": [".env"],
|
|
"tasks": {
|
|
"parallel": {
|
|
"dependsOn": ["^parallel"]
|
|
},
|
|
"lint": {
|
|
"dependsOn": ["^parallel", "^build"]
|
|
},
|
|
"lint-fast": {
|
|
"dependsOn": ["^parallel", "^build"]
|
|
},
|
|
"ts-check": {
|
|
"dependsOn": ["^parallel"]
|
|
},
|
|
"build": {
|
|
"dependsOn": ["^build"],
|
|
"outputs": ["dist/**", "build/**"]
|
|
},
|
|
"test": {
|
|
"dependsOn": ["^build"],
|
|
"cache": false
|
|
},
|
|
"integration-test": {
|
|
"dependsOn": ["^build"],
|
|
"cache": false
|
|
},
|
|
"dev": {
|
|
"dependsOn": ["^build"],
|
|
"persistent": true,
|
|
"cache": false
|
|
},
|
|
"start": {
|
|
"dependsOn": ["build"]
|
|
},
|
|
"@monkeytype/frontend#check-assets": {
|
|
"dependsOn": ["^parallel", "@monkeytype/schemas#build"]
|
|
},
|
|
"@monkeytype/frontend#build": {
|
|
"dependsOn": ["^build"],
|
|
"env": ["BACKEND_URL", "RECAPTCHA_SITE_KEY", "SENTRY"],
|
|
"outputs": ["dist/**"]
|
|
},
|
|
"@monkeytype/frontend#dev": {
|
|
"dependsOn": ["^build"],
|
|
"env": ["BACKEND_URL", "RECAPTCHA_SITE_KEY", "SERVER_OPEN"],
|
|
"persistent": true
|
|
},
|
|
"@monkeytype/backend#dev": {
|
|
"dependsOn": ["^build"],
|
|
"env": ["DB_URI", "REDIS_URI", "PORT"],
|
|
"persistent": true
|
|
}
|
|
}
|
|
}
|