GitShow/antfu/eslint-plugin-unimport
antfu

eslint-plugin-unimport

Insert imports automatically from Unimport in ESLint.

by antfu
Star on GitHubForknpm

TypeScript

56 stars4 forks2 contributorsActive · 1mo agoSince 2023v2.0.0MIT

Meet the team

See all 2 on GitHub →
antfu
antfu28 contributions
RYGRIT
RYGRIT1 contribution

Languages

View on GitHub →
TypeScript97.4%
Vue2.6%

Commit activity

Last 12 weeks · 3 commits

Full graph →

Community health

5 of 6 standards met

Community profile →
85
✓README✓License✓Contributing✓Code of Conduct○Issue Template✓PR Template

Recent fixes

View closed PRs →
RYGRIT
[Windows] Auto-insert incorrectly imports locally defined symbolsClosedIssue

Describe the bug On Windows, the rule incorrectly attempts to auto-import symbols that are already defined and exported within the same file. This leads to ESLint errors like because the plugin inserts a duplicate import statement. This happens because the path comparison between the unimport registry entry () and the current ESLint file path () fails due to mismatched path separators (forward slashes vs backslashes). Reproduction https://github.com/RYGRIT/repro-unimport System Info Used Package Manager pnpm Validations [x] Follow our Code of Conduct [x] Read the Contributing Guide. [x] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate. [x] Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead. [x] The provided reproduction is a minimal reproducible of the bug. Contributions [x] I am willing to submit a PR to fix this issue [ ] I am willing to submit a PR with failing tests (actually just go ahead and do it, thanks!)

RYGRIT · 6mo ago
RYGRIT
fix: normalize paths in import checksMergedPR

Description #2

RYGRIT · 6mo ago
TomKriek
Typescript file glob pattern not working properlyClosedIssue

Describe the bug Heya, Loving the plugin so far it's saving a lot of headaches when it comes to .vue components. But as of right now the .ts files are being ignored even though there is a glob pattern set up for it. src/configs/auto-insert.ts I tinkered real quick with an only testing tool from digital ocean for repo for globbing. Versus the current glob pattern seems to capture the .ts files properly. Tested it locally by editing real quick and works. Reproduction See two attached glob tests System Info Used Package Manager npm Validations [X] Follow our Code of Conduct [X] Read the Contributing Guide. [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate. [X] Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead. [X] The provided reproduction is a minimal reproducible of the bug. Contributions [ ] I am willing to submit a PR to fix this issue [ ] I am willing to submit a PR with failing tests (actually just go ahead and do it, thanks!)

TomKriek · 1y ago
Structured data for AI agents

Repository: antfu/eslint-plugin-unimport. Description: Insert imports automatically from Unimport in ESLint. Stars: 56, Forks: 4. Primary language: TypeScript. Languages: TypeScript (97.4%), Vue (2.6%). License: MIT. Latest release: v2.0.0 (1mo ago). Open PRs: 0, open issues: 0. Last activity: 1mo ago. Community health: 85%. Top contributors: antfu, RYGRIT.

·@ofershap

Replace github.com with gitshow.dev