eslint-plugin-import-helpers icon indicating copy to clipboard operation
eslint-plugin-import-helpers copied to clipboard

ESLint plugin to help enforce a configurable order for import statements

Results 13 eslint-plugin-import-helpers issues
Sort by recently updated
recently updated
newest added

#### What? Add a way to allow sorting for unassigned imports. Please check the updated order-imports.md for documentation. Resolves issues: https://github.com/Tibfib/eslint-plugin-import-helpers/issues/35 https://github.com/Tibfib/eslint-plugin-import-helpers/issues/24 #### My Usecase A very common use-case is...

I know that the documentation has a clause about such imports, but can there still be some way? I just want the style imports to always be at the bottom...

now that both flow and typescript support them ```js import lodash from 'lodash'; import React from 'react'; import SharedComponent from '@shared/components/SharedComponent'; import SiblingComponent from './SiblingComponent'; import type { SiblingComponentType }...

Lets say I have this configuration ``` 'rules': { 'import-helpers/order-imports': ['error', { newlinesBetween: 'always', groups: ['module', ['/aaa/', '/bbb/', '/ccc/']], }, ], }, ``` ``` import {...} from '@external-module'; import {...}...

In the update to support ESLint v7, I was forced to add output to a test... However, when I added the correct (at least I'm pretty sure it's correct) output...

I have `import-helpers/sort-order` configured like so: ```js { groups: [ 'absolute', 'module', '/^\\$src/', 'parent', 'sibling', 'index' ], newlinesBetween: 'always', alphabetize: { order: 'asc' } } ``` I am seeing that...

**Problem:** When it is necessary to use a function before imports, such as jest, having a way to allow it to be at the top of the file without disabling...

I trying to sort imports with '.css' extension and add write rule in config like this: ``` "import-helpers/order-imports": [ "warn", { "newlinesBetween": "always", "groups": [ "module", "/^@shared/", "/^@server/", "/^@client/", "/^@/",...

The section with type imports looks wrong My config is: ``` 'import-helpers/order-imports': [ 'error', { newlinesBetween: 'always', // new line between groups groups: [ ['/^react$/', '/^next/', 'module'], ['/^@framework/', '/^@lib/'], '/^@contexts/',...

Bumps [json5](https://github.com/json5/json5) from 2.2.1 to 2.2.3. Release notes Sourced from json5's releases. v2.2.3 Fix: [email protected] is now the 'latest' release according to npm instead of v1.0.2. (#299) v2.2.2 Fix: Properties...

dependencies