Skip to content

Groups work incorrect for sibling with newlines-between  #2304

Open
@sergeushenecz

Description

@sergeushenecz

Hello everyone. I have some problem with newlines-between and groups. I want merge 'parent', 'sibling', 'index' to one group but my code work not as excepted. Maybe i to do some wrong
'import/order': ['error', { 'newlines-between': 'always', groups: ['external', 'internal', ['parent', 'sibling', 'index']],

import React, { Component } from 'react';
import PropTypes from 'prop-types';
import messages from './messages';
import { StyledDivider, StyledForm } from './styles';
import SupplierSelect from 'components/a';
import CurrencySelect from 'components/b';
import Errors from 'components/errors';

Actual behaviour:

import React, { Component } from 'react';
import PropTypes from 'prop-types';

import SupplierSelect from 'components/a';
import CurrencySelect from 'components/b';
import Errors from 'components/errors';

import messages from './messages';
import { StyledDivider, StyledForm } from './styles';

Excepted behaviour

import React, { Component } from 'react';
import PropTypes from 'prop-types';

import SupplierSelect from 'components/a';
import CurrencySelect from 'components/b';
import Errors from 'components/errors';
import messages from './messages';
import { StyledDivider, StyledForm } from './styles';

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy