Last 12 weeks · 3 commits
5 of 6 standards met
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!)
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!)
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.