Skip to main content

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
3 weeks ago (0.6.0)
interface File

Represents a file read by ESLint.

Properties

The path that ESLint uses for this file. May be a virtual path if it was returned by a processor.

The path to the file on disk. This always maps directly to a file regardless of whether it was returned from a processor.

Indicates if the original source contained a byte-order marker. ESLint strips the BOM from the body, but this info is needed to correctly apply autofixing.

The body of the file to parse.

Add Package

deno add jsr:@eslint/core

Import symbol

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

---- OR ----

Import directly with a jsr specifier

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

Add Package

npx jsr add @eslint/core

Import symbol

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

Add Package

yarn dlx jsr add @eslint/core

Import symbol

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

Add Package

pnpm dlx jsr add @eslint/core

Import symbol

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

Add Package

bunx jsr add @eslint/core

Import symbol

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