eslint-plugin-import-order-alphabetical
eslint-plugin-import-order-alphabetical copied to clipboard
DEPRECATED
In the version of eslint 7.22.0, has this bug: ``` AssertionError [ERR_ASSERTION]: Fix has invalid range: { "range": [ null, null ], "text": "import { ListrTask } from 'listr2'\nimport fs...
Is there a way to ignore sorting for the grouping? I would like to ignore sorting in the first grouping ``` import React, { useContext, useState } from 'react'; import...
I am working on a react application and one of the rules I have is to keep the react import always first. So, I would like to exclude this line...
Having: ```javascript import PropTypes from 'prop-types'; import Button from 'custom-button'; import SearchBox from 'custom-search-box'; ``` I would like to have them sorted: ```javascript import Button from 'custom-button'; import PropTypes from...
This can autofix: ```js const b = require('b') const a = require('a') ``` But this can't: ```js const b = require('b') const { a } = require('a') ```
I have this: ```javascript import A from './A'; import C from '../C'; import B from '../../B'; ``` When sorting with: ``` "import-order-alphabetical/order": [2, { "groups": [["builtin", "external"], ["index", "parent", "sibling"]]...
Although using imports and requires in the same file should be avoided, there are some bugs if you do. With these ESLint rules: ```json { "import/newline-after-import": "error", "import-order-alphabetical/order": [ "error",...