Commit c7861be
authored
chore: activate no-unused-vars and import linters (#4096)
Once this is merged, oxlint is at a pretty sensible baseline.
**Enable `no-unused-vars`, `typescript/consistent-type-imports`, and
`import/no-duplicates` lint rules**
Turns on three previously-disabled oxlint rules across the monorepo and
fixes all violations:
- **`no-unused-vars`** – enabled as an error with standard ignore
patterns: unused function arguments are ignored by default (`args:
"none"`), variables/caught errors/destructured array elements prefixed
with `_` are allowed, and rest siblings are permitted.
- **`typescript/consistent-type-imports`** – enforced as an error; all
type-only imports now use the `import type` syntax.
- **`import/no-duplicates`** – enforced as an error; duplicate import
statements from the same module have been merged.
The remaining commits clean up the violations found across the codebase:
removing unused variables/imports/type aliases, adding `_` prefixes to
intentionally unused bindings, fixing duplicate imports, and converting
value imports to `import type` where appropriate.1 parent 86ef3c4 commit c7861be
846 files changed
Lines changed: 3194 additions & 3571 deletions
File tree
- apps
- coordinator/src
- docker-provider/src
- kubernetes-provider/src
- supervisor/src
- clients
- services
- workloadManager
- workloadServer
- webapp
- app
- components
- admin
- billing
- code
- tsql
- errors
- integrations
- logs
- metrics
- primitives
- TreeView
- charts
- query
- runs/v3
- ai
- run
- sessions/v1
- hooks
- models
- presenters
- v3
- routes
- _app._index
- _app.orgs.$organizationId.subscription.v3.canceled
- _app.orgs.$organizationId.subscription.v3.complete
- _app.orgs.$organizationId.subscription.v3.failed
- _app.orgs.$organizationId.subscription.v3.free_connect_failed
- _app.orgs.$organizationId.subscription.v3.free_connect_success
- _app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.agents.$agentParam
- _app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.alerts.new
- _app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.apikeys
- _app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.branches
- _app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.bulk-actions.$bulkActionParam
- _app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.bulk-actions
- _app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.concurrency
- _app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.dashboards.custom.$dashboardId
- _app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.environment-variables.new
- _app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.environment-variables
- _app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.errors._index
- _app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.logs
- _app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.models.$modelId
- _app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.models._index
- _app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.playground.$agentParam
- _app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.playground
- _app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.query
- _app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.queues
- _app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.regions
- _app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.schedules.new
- _app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.settings.integrations
- _app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.tasks.scheduled.$taskParam
- _app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.test
- _app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.waitpoints.tokens
- _app.orgs.$organizationSlug.projects.$projectParam.env.$envParam
- _app.orgs.$organizationSlug.settings.billing-limits
- _app.orgs.$organizationSlug.settings.billing
- _app.orgs.$organizationSlug.settings.private-connections._index
- _app.orgs.$organizationSlug.settings.private-connections.new
- _app.orgs.$organizationSlug.settings.roles
- _app.orgs.$organizationSlug.settings.sso
- _app.orgs.$organizationSlug.settings.team
- _app.orgs.$organizationSlug_.select-plan
- account._index
- account.authorization-code.$authorizationCode
- account.tokens
- login.mfa
- projects.v3.$projectRef.metrics
- resources.account.mfa.setup
- resources.orgs.$organizationSlug.projects.$projectParam.env.$envParam.runs.$runParam.spans.$spanParam
- resources.orgs.$organizationSlug.projects.$projectParam.env.$envParam.schedules.new
- resources.orgs.$organizationSlug.projects.$projectParam.env.$envParam.waitpoints.$waitpointFriendlyId.complete
- storybook.charts
- storybook.filter
- storybook.info-panel
- storybook.input-fields
- storybook.run-and-span-timeline
- storybook.select
- storybook.table
- storybook.timeline
- storybook.tree-view
- storybook
- runEngine
- concerns
- services
- services
- db
- metadata
- mfa
- realtime
- routeBuilders
- runsRepository
- secrets
- unkey
- utils
- v3
- environmentVariables
- eventRepository
- marqs
- models
- mollifier
- services
- alerts
- billingLimit
- bulk
- worker
- utils
- prisma
- test
- engine
- fixtures
- utils
- internal-packages
- cache/src/stores
- clickhouse/src
- client
- database/src
- emails
- emails
- src
- transports
- llm-model-catalog/src
- otlp-importer/scripts
- replication/src
- run-engine/src
- batch-queue
- engine
- systems
- tests
- helpers
- utils
- run-queue
- tests
- run-queue/src/run-queue/tests
- run-store/src
- schedule-engine
- src/engine
- test
- sdk-compat-tests/src
- fixtures
- esm-import
- typescript
- tests
- sso/src
- testcontainers/src
- tracing/src
- tsql/src
- query
- zod-worker/src
- packages
- cli-v3
- e2e
- fixtures/emit-decorator-metadata/src/trigger
- src
- cli
- commands
- workers
- deploy
- dev
- entryPoints
- managed
- executions
- indexing
- mcp
- tools
- runtimes
- utilities
- core
- src
- v3
- apiClientManager
- apiClient
- apps
- clock
- heartbeats
- inputStreams
- isomorphic
- lifecycleHooks
- locals
- logger
- machines
- otel
- realtimeStreams
- resource-catalog
- runEngineWorker
- supervisor
- workload
- runMetadata
- runTimelineMetrics
- runtime
- schemas
- serverOnly
- sessionStreams
- taskContext
- test
- timeout
- traceContext
- types
- usage
- utils
- waitUntil
- workers
- test
- python/src
- react-hooks/src
- hooks
- utils
- redis-worker/src
- fair-queue
- schedulers
- tests
- mollifier
- rsc/src
- schema-to-json/src
- trigger-sdk
- src/v3
- schedules
- test
- test
- scripts
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
15 | 26 | | |
16 | 27 | | |
17 | 28 | | |
18 | 29 | | |
19 | | - | |
20 | | - | |
| 30 | + | |
| 31 | + | |
21 | 32 | | |
22 | 33 | | |
23 | 34 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
334 | 334 | | |
335 | 335 | | |
336 | 336 | | |
337 | | - | |
| 337 | + | |
338 | 338 | | |
339 | 339 | | |
340 | 340 | | |
| |||
364 | 364 | | |
365 | 365 | | |
366 | 366 | | |
367 | | - | |
| 367 | + | |
368 | 368 | | |
369 | 369 | | |
370 | 370 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
208 | 208 | | |
209 | 209 | | |
210 | 210 | | |
211 | | - | |
| 211 | + | |
212 | 212 | | |
213 | 213 | | |
214 | 214 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
10 | | - | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
| 1 | + | |
| 2 | + | |
4 | 3 | | |
5 | 4 | | |
6 | 5 | | |
7 | 6 | | |
8 | 7 | | |
9 | | - | |
10 | | - | |
| 8 | + | |
11 | 9 | | |
| 10 | + | |
12 | 11 | | |
13 | | - | |
14 | 12 | | |
15 | 13 | | |
16 | 14 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | | - | |
10 | | - | |
| 8 | + | |
11 | 9 | | |
12 | 10 | | |
13 | 11 | | |
14 | 12 | | |
15 | 13 | | |
16 | 14 | | |
| 15 | + | |
17 | 16 | | |
18 | 17 | | |
19 | 18 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
7 | 10 | | |
8 | 11 | | |
9 | 12 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | 1 | | |
3 | | - | |
4 | | - | |
5 | | - | |
| 2 | + | |
6 | 3 | | |
7 | 4 | | |
| 5 | + | |
8 | 6 | | |
9 | 7 | | |
10 | 8 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
0 commit comments