Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

eslint-import-context

un-ts0MIT0.1.6TypeScript support: included

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

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 Code Style: Prettier 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

changelog

Change Log

0.1.6

Patch Changes

  • #15 71ca774 Thanks @JounQin! - fix(types): incorrect and unfinished NodeResolverOptions typing

0.1.5

Patch Changes

0.1.4

Patch Changes

0.1.3

Patch Changes

  • #8 080209e Thanks @JounQin! - fix: stick on type: commonjs to ensure only one entry

0.1.2

Patch Changes

0.1.1

Patch Changes

0.1.0

Minor Changes