Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Groups work incorrect for sibling with newlines-between #2304

Open
sergeushenecz opened this issue Nov 15, 2021 · 0 comments
Open

Groups work incorrect for sibling with newlines-between #2304

sergeushenecz opened this issue Nov 15, 2021 · 0 comments

Comments

@sergeushenecz
Copy link

sergeushenecz commented Nov 15, 2021

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';
@sergeushenecz sergeushenecz changed the title Groups work incorrect for sibling and newlines-between Groups work incorrect for sibling with newlines-between Nov 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant