UNPKG

eslint-interactive

Version:

The CLI tool to run `eslint --fix` for each rule

10 lines (7 loc) 315 B
import { readFileSync } from 'node:fs'; import { dirname, join } from 'node:path'; import { fileURLToPath } from 'node:url'; const PACKAGE_JSON = JSON.parse( readFileSync(join(dirname(fileURLToPath(import.meta.url)), '..', '..', 'package.json'), 'utf8'), ); export const VERSION: string = PACKAGE_JSON.version;