eslint-import-context

Provide context info for eslint-plugin-import-x, so no extra arguments need to be added.

MIT 11 个版本
安装
npm install eslint-import-context
yarn add eslint-import-context
pnpm add eslint-import-context
bun add eslint-import-context
README

eslint-import-context

GitHub Actions Workflow Status Codecov type-coverage CodeRabbit Pull Request Reviews npm GitHub Release

Conventional Commits Renovate enabled JavaScript Style Guide changesets

Provide context info for eslint-plugin-import-x, so no extra arguments need to be added.

TOC

Usage

Install

# pnpm
pnpm add eslint-import-context

# yarn
yarn add eslint-import-context

# npm
npm i eslint-import-context

# bun
bun add eslint-import-context

API

import { useRuleContext, getTsconfigWithContext } from 'eslint-import-context'

const ruleContext = useRuleContext()

const tsconfig = getTsconfigWithContext(ruleContext)

Sponsors and Backers

Sponsors

Sponsors

1stG RxTS UnTS
1stG Open Collective sponsors RxTS Open Collective sponsors UnTS Open Collective sponsors

Backers

1stG RxTS UnTS
1stG Open Collective backers RxTS Open Collective backers UnTS Open Collective backers

Changelog

Detailed changes for each release are documented in CHANGELOG.md.

License

MIT © JounQin@1stG.me

版本列表
0.2.0 2025-08-19
0.1.9 2025-06-26
0.1.8 2025-06-05
0.1.7 2025-06-04
0.1.6 2025-05-27
0.1.5 2025-05-26
0.1.4 2025-05-25
0.1.3 2025-05-24
0.1.2 2025-05-24
0.1.1 2025-05-24
0.1.0 2025-05-24