Skip to content

Comments

test(linter/plugins): use subpath imports#15920

Merged
graphite-app[bot] merged 1 commit intomainfrom
11-20-test_linter_plugins_use_subpath_imports
Nov 21, 2025
Merged

test(linter/plugins): use subpath imports#15920
graphite-app[bot] merged 1 commit intomainfrom
11-20-test_linter_plugins_use_subpath_imports

Conversation

@overlookmotel
Copy link
Member

@overlookmotel overlookmotel commented Nov 20, 2025

Shorten imports in test fixtures using subpath imports.

Before:

import type { Plugin } from '../../../dist/index.js';

After:

import type { Plugin } from '#oxlint';

Copy link
Member Author

overlookmotel commented Nov 20, 2025


How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • 0-merge - adds this PR to the back of the merge queue
  • hotfix - for urgent hot fixes, skip the queue and merge this PR next

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

This stack of pull requests is managed by Graphite. Learn more about stacking.

@camc314 camc314 added the 0-merge Merge with Graphite Merge Queue label Nov 21, 2025
Copy link
Contributor

camc314 commented Nov 21, 2025

Merge activity

@graphite-app graphite-app bot changed the base branch from 11-20-test_linter_plugins_automate_testing_all_fixtures to graphite-base/15920 November 21, 2025 11:38
@graphite-app graphite-app bot changed the base branch from graphite-base/15920 to main November 21, 2025 11:43
Shorten imports in test fixtures using [subpath imports](https://nodejs.org/docs/latest-v24.x/api/packages.html#subpath-imports).

Before:

```ts
import type { Plugin } from '../../../dist/index.js';
```

After:

```ts
import type { Plugin } from '#oxlint';
```
@graphite-app graphite-app bot force-pushed the 11-20-test_linter_plugins_use_subpath_imports branch from 8b6108a to 690abec Compare November 21, 2025 11:44
@graphite-app graphite-app bot merged commit 690abec into main Nov 21, 2025
18 checks passed
@graphite-app graphite-app bot deleted the 11-20-test_linter_plugins_use_subpath_imports branch November 21, 2025 11:50
@graphite-app graphite-app bot removed the 0-merge Merge with Graphite Merge Queue label Nov 21, 2025
Copilot AI pushed a commit that referenced this pull request Nov 21, 2025
Shorten imports in test fixtures using [subpath imports](https://nodejs.org/docs/latest-v24.x/api/packages.html#subpath-imports).

Before:

```ts
import type { Plugin } from '../../../dist/index.js';
```

After:

```ts
import type { Plugin } from '#oxlint';
```
graphite-app bot pushed a commit that referenced this pull request Nov 24, 2025
#15920 altered `import`s in tests to use `'#eslint'` subpath. Make recently-added tests follow the same pattern.
taearls pushed a commit to taearls/oxc that referenced this pull request Dec 11, 2025
Shorten imports in test fixtures using [subpath imports](https://nodejs.org/docs/latest-v24.x/api/packages.html#subpath-imports).

Before:

```ts
import type { Plugin } from '../../../dist/index.js';
```

After:

```ts
import type { Plugin } from '#oxlint';
```
taearls pushed a commit to taearls/oxc that referenced this pull request Dec 11, 2025
oxc-project#15920 altered `import`s in tests to use `'#eslint'` subpath. Make recently-added tests follow the same pattern.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-cli Area - CLI A-linter Area - Linter A-linter-plugins Area - Linter JS plugins C-test Category - Testing. Code is missing test cases, or a PR is adding them

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants