eslint-plugin-import
eslint-plugin-import copied to clipboard
ESLint plugin with rules that help validate proper imports.
The plugin uses `@typescript-eslint/parser` as the default parser for typescript files in the exported typescript config. `eslint-import-resolver-node` is also used as the default resolver. This PR adds the packages as...
The core eslint rule will support most TS usecases, but it won't support "import equals" and it won't allow different treatment of type/value imports. That being said - there are...
I get this message a lot, with no rhyme or reason as to why... For this code: ```javascript import { Observable } from 'rxjs/Observable'; import 'rxjs/add/observable/interval'; import 'rxjs/add/observable/of'; import 'rxjs/add/operator/filter';...
close #2108
From [this announcement](https://medium.com/@nodejs/announcing-core-node-js-support-for-ecmascript-modules-c5d6dc29b663) > Package entry points and the package.json “exports” field > > There are now two fields that can define entry points for a package: “main” and“exports”. The...
context: https://github.com/alexgorbatchev/eslint-import-resolver-typescript/issues/74#issuecomment-850754909 `process.cwd()` could be incorrect, [`context.getCwd()`](https://github.com/eslint/eslint/pull/12389) is the replacement.
Hi, I was trying to figure why a certain rule wasn't working even though I had enabled `plugin:import/recommended`. I eventually realised that the recommended config actually doesn't enable that rule....
Closes https://github.com/import-js/eslint-plugin-import/pull/2482.
Hi there 👋 I'm having a bit of trouble with the `import/no-restricted-paths` rule for a fine tuned setup. Given the following file structure, I'd like to lint our usage of...
With `import/order`, when using `'newlines-between': 'always-and-inside-groups'` there seems to be no way to control how the fix happens. Example problem: ```ts import AddressTextField from './AddressTextField' import CityField from './CityField' import...