diff --git a/apps/oxlint/package.json b/apps/oxlint/package.json index f5bbcb516268e..78db6a130730f 100644 --- a/apps/oxlint/package.json +++ b/apps/oxlint/package.json @@ -45,5 +45,8 @@ "darwin-x64", "darwin-arm64" ] + }, + "imports": { + "#oxlint": "./dist/index.js" } } diff --git a/apps/oxlint/test/fixtures/basic_custom_plugin/plugin.ts b/apps/oxlint/test/fixtures/basic_custom_plugin/plugin.ts index d8f0b772b32f1..812cb4346d223 100644 --- a/apps/oxlint/test/fixtures/basic_custom_plugin/plugin.ts +++ b/apps/oxlint/test/fixtures/basic_custom_plugin/plugin.ts @@ -1,4 +1,4 @@ -import type { Plugin } from '../../../dist/index.js'; +import type { Plugin } from '#oxlint'; const plugin: Plugin = { meta: { diff --git a/apps/oxlint/test/fixtures/basic_custom_plugin_many_files/plugin.ts b/apps/oxlint/test/fixtures/basic_custom_plugin_many_files/plugin.ts index d8f0b772b32f1..812cb4346d223 100644 --- a/apps/oxlint/test/fixtures/basic_custom_plugin_many_files/plugin.ts +++ b/apps/oxlint/test/fixtures/basic_custom_plugin_many_files/plugin.ts @@ -1,4 +1,4 @@ -import type { Plugin } from '../../../dist/index.js'; +import type { Plugin } from '#oxlint'; const plugin: Plugin = { meta: { diff --git a/apps/oxlint/test/fixtures/basic_custom_plugin_multiple_rules/plugin.ts b/apps/oxlint/test/fixtures/basic_custom_plugin_multiple_rules/plugin.ts index b09ba9139af5a..a67e84a74d078 100644 --- a/apps/oxlint/test/fixtures/basic_custom_plugin_multiple_rules/plugin.ts +++ b/apps/oxlint/test/fixtures/basic_custom_plugin_multiple_rules/plugin.ts @@ -1,4 +1,4 @@ -import type { Plugin } from '../../../dist/index.js'; +import type { Plugin } from '#oxlint'; const plugin: Plugin = { meta: { diff --git a/apps/oxlint/test/fixtures/basic_custom_plugin_warn_severity/plugin.ts b/apps/oxlint/test/fixtures/basic_custom_plugin_warn_severity/plugin.ts index d8f0b772b32f1..812cb4346d223 100644 --- a/apps/oxlint/test/fixtures/basic_custom_plugin_warn_severity/plugin.ts +++ b/apps/oxlint/test/fixtures/basic_custom_plugin_warn_severity/plugin.ts @@ -1,4 +1,4 @@ -import type { Plugin } from '../../../dist/index.js'; +import type { Plugin } from '#oxlint'; const plugin: Plugin = { meta: { diff --git a/apps/oxlint/test/fixtures/comments/plugin.ts b/apps/oxlint/test/fixtures/comments/plugin.ts index e98188ed2f73d..6f7fda99fa40d 100644 --- a/apps/oxlint/test/fixtures/comments/plugin.ts +++ b/apps/oxlint/test/fixtures/comments/plugin.ts @@ -1,6 +1,6 @@ import assert from 'node:assert'; -import type { Comment, Plugin, Rule } from '../../../dist/index.js'; +import type { Comment, Plugin, Rule } from '#oxlint'; function formatComments(comments: Comment[]): string { let text = `${comments.length} comment${comments.length === 1 ? '' : 's'}`; diff --git a/apps/oxlint/test/fixtures/context_properties/plugin.ts b/apps/oxlint/test/fixtures/context_properties/plugin.ts index a72fdf4783db8..1b4757a7dc882 100644 --- a/apps/oxlint/test/fixtures/context_properties/plugin.ts +++ b/apps/oxlint/test/fixtures/context_properties/plugin.ts @@ -1,4 +1,4 @@ -import type { Node, Plugin, Rule } from '../../../dist/index.js'; +import type { Node, Plugin, Rule } from '#oxlint'; const SPAN: Node = { start: 0, diff --git a/apps/oxlint/test/fixtures/context_wrapping/plugin.ts b/apps/oxlint/test/fixtures/context_wrapping/plugin.ts index fdb7dcfb3edf5..7ffbcc80e914a 100644 --- a/apps/oxlint/test/fixtures/context_wrapping/plugin.ts +++ b/apps/oxlint/test/fixtures/context_wrapping/plugin.ts @@ -1,4 +1,4 @@ -import type { Plugin, Rule, Context, Diagnostic, Node } from '../../../dist/index.js'; +import type { Plugin, Rule, Context, Diagnostic, Node } from '#oxlint'; const SPAN: Node = { start: 0, diff --git a/apps/oxlint/test/fixtures/createOnce/plugin.ts b/apps/oxlint/test/fixtures/createOnce/plugin.ts index 7d76de014161f..473f959558d33 100644 --- a/apps/oxlint/test/fixtures/createOnce/plugin.ts +++ b/apps/oxlint/test/fixtures/createOnce/plugin.ts @@ -1,4 +1,4 @@ -import type { Node, Plugin, Rule } from '../../../dist/index.js'; +import type { Node, Plugin, Rule } from '#oxlint'; const SPAN: Node = { start: 0, diff --git a/apps/oxlint/test/fixtures/custom_plugin_disable_directives/plugin.ts b/apps/oxlint/test/fixtures/custom_plugin_disable_directives/plugin.ts index 62ff992daa53d..b566cf43406c5 100644 --- a/apps/oxlint/test/fixtures/custom_plugin_disable_directives/plugin.ts +++ b/apps/oxlint/test/fixtures/custom_plugin_disable_directives/plugin.ts @@ -1,4 +1,4 @@ -import type { Plugin } from '../../../dist/index.js'; +import type { Plugin } from '#oxlint'; const plugin: Plugin = { meta: { diff --git a/apps/oxlint/test/fixtures/custom_plugin_lint_after_hook_error/plugin.ts b/apps/oxlint/test/fixtures/custom_plugin_lint_after_hook_error/plugin.ts index 7763d3317d396..0e4f26c6d5bb1 100644 --- a/apps/oxlint/test/fixtures/custom_plugin_lint_after_hook_error/plugin.ts +++ b/apps/oxlint/test/fixtures/custom_plugin_lint_after_hook_error/plugin.ts @@ -1,4 +1,4 @@ -import type { Plugin } from '../../../dist/index.js'; +import type { Plugin } from '#oxlint'; const plugin: Plugin = { meta: { diff --git a/apps/oxlint/test/fixtures/custom_plugin_lint_before_hook_error/plugin.ts b/apps/oxlint/test/fixtures/custom_plugin_lint_before_hook_error/plugin.ts index ef3810d3825eb..8dab7885a800e 100644 --- a/apps/oxlint/test/fixtures/custom_plugin_lint_before_hook_error/plugin.ts +++ b/apps/oxlint/test/fixtures/custom_plugin_lint_before_hook_error/plugin.ts @@ -1,4 +1,4 @@ -import type { Plugin } from '../../../dist/index.js'; +import type { Plugin } from '#oxlint'; const plugin: Plugin = { meta: { diff --git a/apps/oxlint/test/fixtures/custom_plugin_lint_createOnce_error/plugin.ts b/apps/oxlint/test/fixtures/custom_plugin_lint_createOnce_error/plugin.ts index eea86ab9fa8ce..abb930edefb04 100644 --- a/apps/oxlint/test/fixtures/custom_plugin_lint_createOnce_error/plugin.ts +++ b/apps/oxlint/test/fixtures/custom_plugin_lint_createOnce_error/plugin.ts @@ -1,4 +1,4 @@ -import type { Plugin } from '../../../dist/index.js'; +import type { Plugin } from '#oxlint'; const plugin: Plugin = { meta: { diff --git a/apps/oxlint/test/fixtures/custom_plugin_lint_create_error/plugin.ts b/apps/oxlint/test/fixtures/custom_plugin_lint_create_error/plugin.ts index 515db9ff2c699..cb78f4e54da5d 100644 --- a/apps/oxlint/test/fixtures/custom_plugin_lint_create_error/plugin.ts +++ b/apps/oxlint/test/fixtures/custom_plugin_lint_create_error/plugin.ts @@ -1,4 +1,4 @@ -import type { Plugin } from '../../../dist/index.js'; +import type { Plugin } from '#oxlint'; const plugin: Plugin = { meta: { diff --git a/apps/oxlint/test/fixtures/custom_plugin_lint_fix_error/plugin.ts b/apps/oxlint/test/fixtures/custom_plugin_lint_fix_error/plugin.ts index 6f87e5ff7e8fc..b1efa8d2bb2a1 100644 --- a/apps/oxlint/test/fixtures/custom_plugin_lint_fix_error/plugin.ts +++ b/apps/oxlint/test/fixtures/custom_plugin_lint_fix_error/plugin.ts @@ -1,4 +1,4 @@ -import type { Plugin } from '../../../dist/index.js'; +import type { Plugin } from '#oxlint'; const plugin: Plugin = { meta: { diff --git a/apps/oxlint/test/fixtures/custom_plugin_lint_visit_error/plugin.ts b/apps/oxlint/test/fixtures/custom_plugin_lint_visit_error/plugin.ts index b02de0fc59544..2eed5f340f858 100644 --- a/apps/oxlint/test/fixtures/custom_plugin_lint_visit_error/plugin.ts +++ b/apps/oxlint/test/fixtures/custom_plugin_lint_visit_error/plugin.ts @@ -1,4 +1,4 @@ -import type { Plugin } from '../../../dist/index.js'; +import type { Plugin } from '#oxlint'; const plugin: Plugin = { meta: { diff --git a/apps/oxlint/test/fixtures/custom_plugin_missing_rule/plugin.ts b/apps/oxlint/test/fixtures/custom_plugin_missing_rule/plugin.ts index b7ce410eb57e2..de167ca4ee839 100644 --- a/apps/oxlint/test/fixtures/custom_plugin_missing_rule/plugin.ts +++ b/apps/oxlint/test/fixtures/custom_plugin_missing_rule/plugin.ts @@ -1,4 +1,4 @@ -import type { Plugin } from '../../../dist/index.js'; +import type { Plugin } from '#oxlint'; const plugin: Plugin = { meta: { diff --git a/apps/oxlint/test/fixtures/custom_plugin_nested_config/plugin.ts b/apps/oxlint/test/fixtures/custom_plugin_nested_config/plugin.ts index d8f0b772b32f1..812cb4346d223 100644 --- a/apps/oxlint/test/fixtures/custom_plugin_nested_config/plugin.ts +++ b/apps/oxlint/test/fixtures/custom_plugin_nested_config/plugin.ts @@ -1,4 +1,4 @@ -import type { Plugin } from '../../../dist/index.js'; +import type { Plugin } from '#oxlint'; const plugin: Plugin = { meta: { diff --git a/apps/oxlint/test/fixtures/custom_plugin_nested_config_duplicate/plugin.ts b/apps/oxlint/test/fixtures/custom_plugin_nested_config_duplicate/plugin.ts index d8f0b772b32f1..812cb4346d223 100644 --- a/apps/oxlint/test/fixtures/custom_plugin_nested_config_duplicate/plugin.ts +++ b/apps/oxlint/test/fixtures/custom_plugin_nested_config_duplicate/plugin.ts @@ -1,4 +1,4 @@ -import type { Plugin } from '../../../dist/index.js'; +import type { Plugin } from '#oxlint'; const plugin: Plugin = { meta: { diff --git a/apps/oxlint/test/fixtures/custom_plugin_via_overrides/plugin.ts b/apps/oxlint/test/fixtures/custom_plugin_via_overrides/plugin.ts index d8f0b772b32f1..812cb4346d223 100644 --- a/apps/oxlint/test/fixtures/custom_plugin_via_overrides/plugin.ts +++ b/apps/oxlint/test/fixtures/custom_plugin_via_overrides/plugin.ts @@ -1,4 +1,4 @@ -import type { Plugin } from '../../../dist/index.js'; +import type { Plugin } from '#oxlint'; const plugin: Plugin = { meta: { diff --git a/apps/oxlint/test/fixtures/custom_plugin_via_overrides_missing_rule/plugin.ts b/apps/oxlint/test/fixtures/custom_plugin_via_overrides_missing_rule/plugin.ts index d8f0b772b32f1..812cb4346d223 100644 --- a/apps/oxlint/test/fixtures/custom_plugin_via_overrides_missing_rule/plugin.ts +++ b/apps/oxlint/test/fixtures/custom_plugin_via_overrides_missing_rule/plugin.ts @@ -1,4 +1,4 @@ -import type { Plugin } from '../../../dist/index.js'; +import type { Plugin } from '#oxlint'; const plugin: Plugin = { meta: { diff --git a/apps/oxlint/test/fixtures/definePlugin/plugin.ts b/apps/oxlint/test/fixtures/definePlugin/plugin.ts index fd4426a4ca8cf..52bb1b05b0645 100644 --- a/apps/oxlint/test/fixtures/definePlugin/plugin.ts +++ b/apps/oxlint/test/fixtures/definePlugin/plugin.ts @@ -1,6 +1,6 @@ -import { definePlugin } from '../../../dist/index.js'; +import { definePlugin } from '#oxlint'; -import type { Node, Rule } from '../../../dist/index.js'; +import type { Node, Rule } from '#oxlint'; const SPAN: Node = { start: 0, diff --git a/apps/oxlint/test/fixtures/definePlugin_and_defineRule/plugin.ts b/apps/oxlint/test/fixtures/definePlugin_and_defineRule/plugin.ts index 90d94798e0a4a..8e0c7157e5a74 100644 --- a/apps/oxlint/test/fixtures/definePlugin_and_defineRule/plugin.ts +++ b/apps/oxlint/test/fixtures/definePlugin_and_defineRule/plugin.ts @@ -1,6 +1,6 @@ -import { definePlugin, defineRule } from '../../../dist/index.js'; +import { definePlugin, defineRule } from '#oxlint'; -import type { Node } from '../../../dist/index.js'; +import type { Node } from '#oxlint'; const SPAN: Node = { start: 0, diff --git a/apps/oxlint/test/fixtures/defineRule/plugin.ts b/apps/oxlint/test/fixtures/defineRule/plugin.ts index a680b20ad1f15..287adbab541a8 100644 --- a/apps/oxlint/test/fixtures/defineRule/plugin.ts +++ b/apps/oxlint/test/fixtures/defineRule/plugin.ts @@ -1,6 +1,6 @@ -import { defineRule } from '../../../dist/index.js'; +import { defineRule } from '#oxlint'; -import type { Node } from '../../../dist/index.js'; +import type { Node } from '#oxlint'; const SPAN: Node = { start: 0, diff --git a/apps/oxlint/test/fixtures/diagnostic_loc/plugin.ts b/apps/oxlint/test/fixtures/diagnostic_loc/plugin.ts index 6c2baf031b481..799575db17a47 100644 --- a/apps/oxlint/test/fixtures/diagnostic_loc/plugin.ts +++ b/apps/oxlint/test/fixtures/diagnostic_loc/plugin.ts @@ -1,4 +1,4 @@ -import type { Plugin } from '../../../dist/index.js'; +import type { Plugin } from '#oxlint'; const plugin: Plugin = { meta: { diff --git a/apps/oxlint/test/fixtures/estree/plugin.ts b/apps/oxlint/test/fixtures/estree/plugin.ts index 72fc5e84f797a..c946aa175b69b 100644 --- a/apps/oxlint/test/fixtures/estree/plugin.ts +++ b/apps/oxlint/test/fixtures/estree/plugin.ts @@ -2,7 +2,7 @@ import assert from 'node:assert'; -import type { Plugin } from '../../../dist/index.js'; +import type { Plugin } from '#oxlint'; const plugin: Plugin = { meta: { diff --git a/apps/oxlint/test/fixtures/fixes/plugin.ts b/apps/oxlint/test/fixtures/fixes/plugin.ts index e58d3274f7d3c..a9beaeb38baeb 100644 --- a/apps/oxlint/test/fixtures/fixes/plugin.ts +++ b/apps/oxlint/test/fixtures/fixes/plugin.ts @@ -1,4 +1,4 @@ -import type { Diagnostic, Node, Plugin } from '../../../dist/index.js'; +import type { Diagnostic, Node, Plugin } from '#oxlint'; const plugin: Plugin = { meta: { diff --git a/apps/oxlint/test/fixtures/isSpaceBetween/plugin.ts b/apps/oxlint/test/fixtures/isSpaceBetween/plugin.ts index 1d72c81530252..c016ff2f70356 100644 --- a/apps/oxlint/test/fixtures/isSpaceBetween/plugin.ts +++ b/apps/oxlint/test/fixtures/isSpaceBetween/plugin.ts @@ -1,6 +1,6 @@ import assert from 'node:assert'; -import type { Plugin, Rule, Node } from '../../../dist/index.js'; +import type { Plugin, Rule, Node } from '#oxlint'; const testRule: Rule = { create(context) { diff --git a/apps/oxlint/test/fixtures/languageOptions/plugin.ts b/apps/oxlint/test/fixtures/languageOptions/plugin.ts index adb71e326df05..f14b4aefa2903 100644 --- a/apps/oxlint/test/fixtures/languageOptions/plugin.ts +++ b/apps/oxlint/test/fixtures/languageOptions/plugin.ts @@ -1,6 +1,6 @@ import assert from 'node:assert'; -import type { Plugin, Node } from '../../../dist/index.js'; +import type { Plugin, Node } from '#oxlint'; const SPAN: Node = { start: 0, diff --git a/apps/oxlint/test/fixtures/load_paths/plugins/plugin4.ts b/apps/oxlint/test/fixtures/load_paths/plugins/plugin4.ts index 13408edc25ab0..4a2dafa97a8fc 100644 --- a/apps/oxlint/test/fixtures/load_paths/plugins/plugin4.ts +++ b/apps/oxlint/test/fixtures/load_paths/plugins/plugin4.ts @@ -1,4 +1,4 @@ -import type { Plugin } from '../../../../dist/index.js'; +import type { Plugin } from '#oxlint'; const plugin: Plugin = { meta: { diff --git a/apps/oxlint/test/fixtures/load_paths/plugins/plugin5.cts b/apps/oxlint/test/fixtures/load_paths/plugins/plugin5.cts index 8e8d511345633..e3458eb43f534 100644 --- a/apps/oxlint/test/fixtures/load_paths/plugins/plugin5.cts +++ b/apps/oxlint/test/fixtures/load_paths/plugins/plugin5.cts @@ -1,6 +1,6 @@ 'use strict'; -import type { Plugin } from '../../../../dist/index.js'; +import type { Plugin } from '#oxlint'; const plugin: Plugin = { meta: { diff --git a/apps/oxlint/test/fixtures/load_paths/plugins/plugin6.mts b/apps/oxlint/test/fixtures/load_paths/plugins/plugin6.mts index a7baf78df7efe..d725f28298a27 100644 --- a/apps/oxlint/test/fixtures/load_paths/plugins/plugin6.mts +++ b/apps/oxlint/test/fixtures/load_paths/plugins/plugin6.mts @@ -1,4 +1,4 @@ -import type { Plugin } from '../../../../dist/index.js'; +import type { Plugin } from '#oxlint'; const plugin: Plugin = { meta: { diff --git a/apps/oxlint/test/fixtures/message_id_error/plugin.ts b/apps/oxlint/test/fixtures/message_id_error/plugin.ts index 3e87bda6383e0..ab8989939c130 100644 --- a/apps/oxlint/test/fixtures/message_id_error/plugin.ts +++ b/apps/oxlint/test/fixtures/message_id_error/plugin.ts @@ -1,4 +1,4 @@ -import type { Plugin } from '../../../dist/index.js'; +import type { Plugin } from '#oxlint'; const plugin: Plugin = { meta: { diff --git a/apps/oxlint/test/fixtures/message_id_interpolation/plugin.ts b/apps/oxlint/test/fixtures/message_id_interpolation/plugin.ts index 126c3445cd21a..8e0d05344dc82 100644 --- a/apps/oxlint/test/fixtures/message_id_interpolation/plugin.ts +++ b/apps/oxlint/test/fixtures/message_id_interpolation/plugin.ts @@ -1,4 +1,4 @@ -import type { Plugin } from '../../../dist/index.js'; +import type { Plugin } from '#oxlint'; const plugin: Plugin = { meta: { diff --git a/apps/oxlint/test/fixtures/message_id_plugin/plugin.ts b/apps/oxlint/test/fixtures/message_id_plugin/plugin.ts index f0fd2cd4ef9f1..c590b77488e4d 100644 --- a/apps/oxlint/test/fixtures/message_id_plugin/plugin.ts +++ b/apps/oxlint/test/fixtures/message_id_plugin/plugin.ts @@ -1,4 +1,4 @@ -import type { Plugin } from '../../../dist/index.js'; +import type { Plugin } from '#oxlint'; const MESSAGE_ID_ERROR = 'no-var/error'; const messages = { diff --git a/apps/oxlint/test/fixtures/message_interpolation/plugin.ts b/apps/oxlint/test/fixtures/message_interpolation/plugin.ts index 823809c534d60..3506bfcd6b84e 100644 --- a/apps/oxlint/test/fixtures/message_interpolation/plugin.ts +++ b/apps/oxlint/test/fixtures/message_interpolation/plugin.ts @@ -1,4 +1,4 @@ -import type { Plugin } from '../../../dist/index.js'; +import type { Plugin } from '#oxlint'; const plugin: Plugin = { meta: { diff --git a/apps/oxlint/test/fixtures/parent/plugin.ts b/apps/oxlint/test/fixtures/parent/plugin.ts index 2f71df1c09a84..944cac8437553 100644 --- a/apps/oxlint/test/fixtures/parent/plugin.ts +++ b/apps/oxlint/test/fixtures/parent/plugin.ts @@ -1,4 +1,4 @@ -import type { Plugin } from '../../../dist/index.js'; +import type { Plugin } from '#oxlint'; const plugin: Plugin = { meta: { diff --git a/apps/oxlint/test/fixtures/parser_services/plugin.ts b/apps/oxlint/test/fixtures/parser_services/plugin.ts index b8930daee2ab2..14e96a79ba3d1 100644 --- a/apps/oxlint/test/fixtures/parser_services/plugin.ts +++ b/apps/oxlint/test/fixtures/parser_services/plugin.ts @@ -1,4 +1,4 @@ -import type { Plugin, Node } from '../../../dist/index.js'; +import type { Plugin, Node } from '#oxlint'; const SPAN: Node = { start: 0, diff --git a/apps/oxlint/test/fixtures/reserved_name/plugin.ts b/apps/oxlint/test/fixtures/reserved_name/plugin.ts index d0a707b7ae736..246900922e036 100644 --- a/apps/oxlint/test/fixtures/reserved_name/plugin.ts +++ b/apps/oxlint/test/fixtures/reserved_name/plugin.ts @@ -1,4 +1,4 @@ -import type { Plugin } from '../../../dist/index.js'; +import type { Plugin } from '#oxlint'; const plugin: Plugin = { meta: { diff --git a/apps/oxlint/test/fixtures/scope_manager/plugin.ts b/apps/oxlint/test/fixtures/scope_manager/plugin.ts index 8740a1955f580..9ef7cba13fd47 100644 --- a/apps/oxlint/test/fixtures/scope_manager/plugin.ts +++ b/apps/oxlint/test/fixtures/scope_manager/plugin.ts @@ -1,6 +1,6 @@ import assert from 'node:assert'; -import type { Node, Plugin, Rule, Scope } from '../../../dist/index.js'; +import type { Node, Plugin, Rule, Scope } from '#oxlint'; const SPAN: Node = { start: 0, diff --git a/apps/oxlint/test/fixtures/selector/plugin.ts b/apps/oxlint/test/fixtures/selector/plugin.ts index 6bc23a8481f04..042533b140945 100644 --- a/apps/oxlint/test/fixtures/selector/plugin.ts +++ b/apps/oxlint/test/fixtures/selector/plugin.ts @@ -1,4 +1,4 @@ -import type { ESTree, Plugin, Visitor } from '../../../dist/index.js'; +import type { ESTree, Plugin, Visitor } from '#oxlint'; const plugin: Plugin = { meta: { diff --git a/apps/oxlint/test/fixtures/settings/plugin.ts b/apps/oxlint/test/fixtures/settings/plugin.ts index e5638bde95088..8fe2ffadc7522 100644 --- a/apps/oxlint/test/fixtures/settings/plugin.ts +++ b/apps/oxlint/test/fixtures/settings/plugin.ts @@ -1,4 +1,4 @@ -import type { Node, Plugin, Rule } from '../../../dist/index.js'; +import type { Node, Plugin, Rule } from '#oxlint'; const SPAN: Node = { start: 0, diff --git a/apps/oxlint/test/fixtures/sourceCode/plugin.ts b/apps/oxlint/test/fixtures/sourceCode/plugin.ts index ca05332e4efb2..a6c63fbc20ed1 100644 --- a/apps/oxlint/test/fixtures/sourceCode/plugin.ts +++ b/apps/oxlint/test/fixtures/sourceCode/plugin.ts @@ -1,6 +1,6 @@ import assert from 'node:assert'; -import type { ESTree, Node, Plugin, Rule } from '../../../dist/index.js'; +import type { ESTree, Node, Plugin, Rule } from '#oxlint'; type Program = ESTree.Program; diff --git a/apps/oxlint/test/fixtures/sourceCode_late_access/plugin.ts b/apps/oxlint/test/fixtures/sourceCode_late_access/plugin.ts index b3bea50914e4f..73622823470e1 100644 --- a/apps/oxlint/test/fixtures/sourceCode_late_access/plugin.ts +++ b/apps/oxlint/test/fixtures/sourceCode_late_access/plugin.ts @@ -1,6 +1,6 @@ import assert from 'node:assert'; -import type { ESTree, Node, Plugin, Rule } from '../../../dist/index.js'; +import type { ESTree, Node, Plugin, Rule } from '#oxlint'; type Program = ESTree.Program; diff --git a/apps/oxlint/test/fixtures/sourceCode_late_access_after_only/plugin.ts b/apps/oxlint/test/fixtures/sourceCode_late_access_after_only/plugin.ts index e70d3556982fc..a6cd5410798bc 100644 --- a/apps/oxlint/test/fixtures/sourceCode_late_access_after_only/plugin.ts +++ b/apps/oxlint/test/fixtures/sourceCode_late_access_after_only/plugin.ts @@ -1,4 +1,4 @@ -import type { Node, Plugin, Rule } from '../../../dist/index.js'; +import type { Node, Plugin, Rule } from '#oxlint'; const SPAN: Node = { start: 0, diff --git a/apps/oxlint/test/fixtures/sourceCode_scope_methods/plugin.ts b/apps/oxlint/test/fixtures/sourceCode_scope_methods/plugin.ts index 74d34b0529891..46a9b8eb702ab 100644 --- a/apps/oxlint/test/fixtures/sourceCode_scope_methods/plugin.ts +++ b/apps/oxlint/test/fixtures/sourceCode_scope_methods/plugin.ts @@ -1,4 +1,4 @@ -import type { Plugin, Rule } from '../../../dist/index.js'; +import type { Plugin, Rule } from '#oxlint'; const rule: Rule = { create(context) { diff --git a/apps/oxlint/test/fixtures/unicode_comments/plugin.ts b/apps/oxlint/test/fixtures/unicode_comments/plugin.ts index d70f88b9b641c..a84a56f3d2437 100644 --- a/apps/oxlint/test/fixtures/unicode_comments/plugin.ts +++ b/apps/oxlint/test/fixtures/unicode_comments/plugin.ts @@ -1,5 +1,5 @@ import assert from 'node:assert'; -import type { Plugin, Rule } from '../../../dist/index.js'; +import type { Plugin, Rule } from '#oxlint'; const unicodeCommentsRule: Rule = { create(context) { diff --git a/apps/oxlint/test/fixtures/utf16_offsets/plugin.ts b/apps/oxlint/test/fixtures/utf16_offsets/plugin.ts index 8facc5eb8f4c9..ce741a58a245b 100644 --- a/apps/oxlint/test/fixtures/utf16_offsets/plugin.ts +++ b/apps/oxlint/test/fixtures/utf16_offsets/plugin.ts @@ -1,6 +1,6 @@ // oxlint-disable typescript/restrict-template-expressions -import type { Plugin } from '../../../dist/index.js'; +import type { Plugin } from '#oxlint'; const plugin: Plugin = { meta: {