https://github.com/morevm/eslint-plugin-n-no-extraneous-import-problem
This repository shows a problem with the `no-extraneous-import` rule of the `eslint-plugin-n`.
https://github.com/morevm/eslint-plugin-n-no-extraneous-import-problem
Last synced: about 1 year ago
JSON representation
This repository shows a problem with the `no-extraneous-import` rule of the `eslint-plugin-n`.
- Host: GitHub
- URL: https://github.com/morevm/eslint-plugin-n-no-extraneous-import-problem
- Owner: MorevM
- Created: 2024-11-03T14:09:17.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2024-11-03T14:11:56.000Z (almost 2 years ago)
- Last Synced: 2025-01-05T07:13:22.935Z (over 1 year ago)
- Language: TypeScript
- Size: 11.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# eslint-plugin-n > no-extraneous-import problem
This repository shows a problem with the `no-extraneous-import` rule of the `eslint-plugin-n`.
## Steps to reproduce:
```bash
npm install && npm run lint:example
```
The rule `no-extraneous-import` warns about `~configurations/foo` import,
although according to the path defined in the `tsconfig.json`
this is an internal import.
This only happens for paths that contain the `~` or `@` character at the beginning. \
E.g. alias `#configurations/*` is working as expected, but `~configurations/*` is not.