eslint-plugin-import-order-alphabetical icon indicating copy to clipboard operation
eslint-plugin-import-order-alphabetical copied to clipboard

Ignore sorting within one group

Open alexandrzavalii opened this issue 5 years ago • 1 comments

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 PropTypes from 'prop-types';
import { useParams } from 'react-router-dom';

maybe add something like that

    'eslint-plugin-import-order-alphabetical': [
      'error',
      {
        groups: [ 
           ['builtin', {ignoreOrder: true}], 
          'external', 'internal', 'index', ['sibling', 'parent']],
        'newlines-between': 'always',
      },
    ]

alexandrzavalii avatar Nov 06 '19 09:11 alexandrzavalii

Nope but feel free to make a PR!

janpaul123 avatar Nov 06 '19 22:11 janpaul123