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
6 changes: 3 additions & 3 deletions apps/oxlint/src-js/plugins/context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ import { settings, initSettings } from "./settings.ts";
import visitorKeys from "../generated/keys.ts";
import { debugAssertIsNonNull } from "../utils/asserts.ts";
import { envs, globals, initGlobals } from "./globals.ts";
import { version as packageVersion } from "../../package.json" with { type: "json" };

import type { Globals, Envs } from "./globals.ts";
import type { RuleDetails } from "./load.ts";
Expand Down Expand Up @@ -91,13 +92,12 @@ const PARSER = Object.freeze({
/**
* Parser name.
*/
name: "oxc",
name: "oxlint",

/**
* Parser version.
*/
// TODO: This can be statically defined, but need it be to be updated when we make a new release.
version: "0.0.0",
version: packageVersion,

/**
* Parse code into an AST.
Expand Down
2 changes: 1 addition & 1 deletion apps/oxlint/test/fixtures/languageOptions/output.snap.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

x language-options-plugin(lang): parser:
| object keys: name,version,parse,VisitorKeys,Syntax,latestEcmaVersion,supportedEcmaVersions
| name: oxc
| name: oxlint
| typeof version: string
| typeof parse: function
| latestEcmaVersion: 17
Expand Down
Loading