Skip to content

build: enable type-aware linting and fix turbo dependencies#112

Merged
overbalance merged 1 commit intoopen-telemetry:mainfrom
embrace-io:overbalance/minor-housekeeping
Jan 16, 2026
Merged

build: enable type-aware linting and fix turbo dependencies#112
overbalance merged 1 commit intoopen-telemetry:mainfrom
embrace-io:overbalance/minor-housekeeping

Conversation

@overbalance
Copy link
Copy Markdown
Contributor

@overbalance overbalance commented Jan 7, 2026

Which problem is this PR solving?

Type-aware ESLint rules were not enabled, preventing detection of instance method usage issues. Additionally, turbo had an incorrect dependency.

Short description of the changes

  • Enable type-aware ESLint with projectService for source files (excluding tests)
  • Fix turbo check-types task to depend on ^build instead of ^check-types

Type of change

  • Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?

  • CI passes

@overbalance overbalance requested a review from a team as a code owner January 7, 2026 18:16
@overbalance overbalance force-pushed the overbalance/minor-housekeeping branch from 99567fa to de4d3e4 Compare January 12, 2026 16:17
"@opentelemetry/api-logs": "*",
"@opentelemetry/instrumentation": "*",
"@opentelemetry/web-utils": "*"
"@opentelemetry/api-logs": "0.209.0",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change is so each instrumentation can use its own version of the api right?

Copy link
Copy Markdown
Contributor Author

@overbalance overbalance Jan 12, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not necessarily. It's to ensure the "latest" version isn't blindly installed. Ideally all packages use the same dependency versions.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am going to revert back to * and we can discuss offline.

Comment thread eslint.config.js
export default [
{
files: ['packages/*/src/**/*.{js,ts,mjs}'],
ignores: ['**/*.test.ts', '**/*.spec.ts'],
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we want to ignore test files?

Copy link
Copy Markdown
Contributor Author

@overbalance overbalance Jan 15, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. The two eslint plugins are for source code only.

@overbalance overbalance force-pushed the overbalance/minor-housekeeping branch from 7e5e791 to 30eb233 Compare January 15, 2026 22:37
@overbalance overbalance force-pushed the overbalance/minor-housekeeping branch from 30eb233 to f7726d8 Compare January 16, 2026 01:28
@overbalance overbalance merged commit 57dd967 into open-telemetry:main Jan 16, 2026
7 checks passed
@overbalance overbalance deleted the overbalance/minor-housekeeping branch January 16, 2026 18:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants