Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions apps/oxlint/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,8 @@
"darwin-x64",
"darwin-arm64"
]
},
"imports": {
"#oxlint": "./dist/index.js"
}
}
2 changes: 1 addition & 1 deletion apps/oxlint/test/fixtures/basic_custom_plugin/plugin.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { Plugin } from '../../../dist/index.js';
import type { Plugin } from '#oxlint';

const plugin: Plugin = {
meta: {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { Plugin } from '../../../dist/index.js';
import type { Plugin } from '#oxlint';

const plugin: Plugin = {
meta: {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { Plugin } from '../../../dist/index.js';
import type { Plugin } from '#oxlint';

const plugin: Plugin = {
meta: {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { Plugin } from '../../../dist/index.js';
import type { Plugin } from '#oxlint';

const plugin: Plugin = {
meta: {
Expand Down
2 changes: 1 addition & 1 deletion apps/oxlint/test/fixtures/comments/plugin.ts
Original file line number Diff line number Diff line change
@@ -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'}`;
Expand Down
2 changes: 1 addition & 1 deletion apps/oxlint/test/fixtures/context_properties/plugin.ts
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
2 changes: 1 addition & 1 deletion apps/oxlint/test/fixtures/context_wrapping/plugin.ts
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
2 changes: 1 addition & 1 deletion apps/oxlint/test/fixtures/createOnce/plugin.ts
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { Plugin } from '../../../dist/index.js';
import type { Plugin } from '#oxlint';

const plugin: Plugin = {
meta: {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { Plugin } from '../../../dist/index.js';
import type { Plugin } from '#oxlint';

const plugin: Plugin = {
meta: {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { Plugin } from '../../../dist/index.js';
import type { Plugin } from '#oxlint';

const plugin: Plugin = {
meta: {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { Plugin } from '../../../dist/index.js';
import type { Plugin } from '#oxlint';

const plugin: Plugin = {
meta: {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { Plugin } from '../../../dist/index.js';
import type { Plugin } from '#oxlint';

const plugin: Plugin = {
meta: {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { Plugin } from '../../../dist/index.js';
import type { Plugin } from '#oxlint';

const plugin: Plugin = {
meta: {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { Plugin } from '../../../dist/index.js';
import type { Plugin } from '#oxlint';

const plugin: Plugin = {
meta: {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { Plugin } from '../../../dist/index.js';
import type { Plugin } from '#oxlint';

const plugin: Plugin = {
meta: {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { Plugin } from '../../../dist/index.js';
import type { Plugin } from '#oxlint';

const plugin: Plugin = {
meta: {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { Plugin } from '../../../dist/index.js';
import type { Plugin } from '#oxlint';

const plugin: Plugin = {
meta: {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { Plugin } from '../../../dist/index.js';
import type { Plugin } from '#oxlint';

const plugin: Plugin = {
meta: {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { Plugin } from '../../../dist/index.js';
import type { Plugin } from '#oxlint';

const plugin: Plugin = {
meta: {
Expand Down
4 changes: 2 additions & 2 deletions apps/oxlint/test/fixtures/definePlugin/plugin.ts
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
4 changes: 2 additions & 2 deletions apps/oxlint/test/fixtures/defineRule/plugin.ts
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
2 changes: 1 addition & 1 deletion apps/oxlint/test/fixtures/diagnostic_loc/plugin.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { Plugin } from '../../../dist/index.js';
import type { Plugin } from '#oxlint';

const plugin: Plugin = {
meta: {
Expand Down
2 changes: 1 addition & 1 deletion apps/oxlint/test/fixtures/estree/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down
2 changes: 1 addition & 1 deletion apps/oxlint/test/fixtures/fixes/plugin.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { Diagnostic, Node, Plugin } from '../../../dist/index.js';
import type { Diagnostic, Node, Plugin } from '#oxlint';

const plugin: Plugin = {
meta: {
Expand Down
2 changes: 1 addition & 1 deletion apps/oxlint/test/fixtures/isSpaceBetween/plugin.ts
Original file line number Diff line number Diff line change
@@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion apps/oxlint/test/fixtures/languageOptions/plugin.ts
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
2 changes: 1 addition & 1 deletion apps/oxlint/test/fixtures/load_paths/plugins/plugin4.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { Plugin } from '../../../../dist/index.js';
import type { Plugin } from '#oxlint';

const plugin: Plugin = {
meta: {
Expand Down
2 changes: 1 addition & 1 deletion apps/oxlint/test/fixtures/load_paths/plugins/plugin5.cts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

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

const plugin: Plugin = {
meta: {
Expand Down
2 changes: 1 addition & 1 deletion apps/oxlint/test/fixtures/load_paths/plugins/plugin6.mts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { Plugin } from '../../../../dist/index.js';
import type { Plugin } from '#oxlint';

const plugin: Plugin = {
meta: {
Expand Down
2 changes: 1 addition & 1 deletion apps/oxlint/test/fixtures/message_id_error/plugin.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { Plugin } from '../../../dist/index.js';
import type { Plugin } from '#oxlint';

const plugin: Plugin = {
meta: {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { Plugin } from '../../../dist/index.js';
import type { Plugin } from '#oxlint';

const plugin: Plugin = {
meta: {
Expand Down
2 changes: 1 addition & 1 deletion apps/oxlint/test/fixtures/message_id_plugin/plugin.ts
Original file line number Diff line number Diff line change
@@ -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 = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { Plugin } from '../../../dist/index.js';
import type { Plugin } from '#oxlint';

const plugin: Plugin = {
meta: {
Expand Down
2 changes: 1 addition & 1 deletion apps/oxlint/test/fixtures/parent/plugin.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { Plugin } from '../../../dist/index.js';
import type { Plugin } from '#oxlint';

const plugin: Plugin = {
meta: {
Expand Down
2 changes: 1 addition & 1 deletion apps/oxlint/test/fixtures/parser_services/plugin.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { Plugin, Node } from '../../../dist/index.js';
import type { Plugin, Node } from '#oxlint';

const SPAN: Node = {
start: 0,
Expand Down
2 changes: 1 addition & 1 deletion apps/oxlint/test/fixtures/reserved_name/plugin.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { Plugin } from '../../../dist/index.js';
import type { Plugin } from '#oxlint';

const plugin: Plugin = {
meta: {
Expand Down
2 changes: 1 addition & 1 deletion apps/oxlint/test/fixtures/scope_manager/plugin.ts
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
2 changes: 1 addition & 1 deletion apps/oxlint/test/fixtures/selector/plugin.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { ESTree, Plugin, Visitor } from '../../../dist/index.js';
import type { ESTree, Plugin, Visitor } from '#oxlint';

const plugin: Plugin = {
meta: {
Expand Down
2 changes: 1 addition & 1 deletion apps/oxlint/test/fixtures/settings/plugin.ts
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
2 changes: 1 addition & 1 deletion apps/oxlint/test/fixtures/sourceCode/plugin.ts
Original file line number Diff line number Diff line change
@@ -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;

Expand Down
Original file line number Diff line number Diff line change
@@ -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;

Expand Down
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { Plugin, Rule } from '../../../dist/index.js';
import type { Plugin, Rule } from '#oxlint';

const rule: Rule = {
create(context) {
Expand Down
2 changes: 1 addition & 1 deletion apps/oxlint/test/fixtures/unicode_comments/plugin.ts
Original file line number Diff line number Diff line change
@@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion apps/oxlint/test/fixtures/utf16_offsets/plugin.ts
Original file line number Diff line number Diff line change
@@ -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: {
Expand Down
Loading