You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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';
The text was updated successfully, but these errors were encountered:
sergeushenecz
changed the title
Groups work incorrect for sibling and newlines-between
Groups work incorrect for sibling with newlines-between
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']],
Actual behaviour:
Excepted behaviour
The text was updated successfully, but these errors were encountered: