Skip to main content
This release is 5 versions behind 0.9.1 — the latest version of @eslint/core. Jump to latest

Built and signed on GitHub Actions

Runtime-agnostic core of ESLint.

This package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
This package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
This package works with Bun
This package works with Browsers
JSR Score
100%
Published
4 months ago (0.5.0)
interface Directive

Represents a disable directive.

Properties

type:
"disable"
| "enable"
| "disable-line"
| "disable-next-line"

The type of directive.

The node of the directive. May be in the AST or a comment/token.

The value of the directive.

The justification for the directive.

Add Package

deno add jsr:@eslint/core

Import symbol

import { type Directive } from "@eslint/core";

---- OR ----

Import directly with a jsr specifier

import { type Directive } from "jsr:@eslint/core";

Add Package

npx jsr add @eslint/core

Import symbol

import { type Directive } from "@eslint/core";

Add Package

yarn dlx jsr add @eslint/core

Import symbol

import { type Directive } from "@eslint/core";

Add Package

pnpm dlx jsr add @eslint/core

Import symbol

import { type Directive } from "@eslint/core";

Add Package

bunx jsr add @eslint/core

Import symbol

import { type Directive } from "@eslint/core";