Open
Description
We have a complex import/order
config and are seeing some new behavior with our type
imports on v2.27.5 where previously sorted parent → sibling type imports want to now be sorted as sibling → parent.
'import/order': [
'error',
{
'alphabetize': {
order: 'asc',
caseInsensitive: true,
},
'groups': ['type', 'builtin', 'external', 'internal', 'parent', 'sibling', 'index', 'object'],
'newlines-between': 'always',
'warnOnUnassignedImports': true,
},
],
Before
import type { CommandOptions } from '../lib/baseCommand';
import type { Options } from './openapi/validate';
import Command from '../lib/baseCommand';
import isHidden from '../lib/decorators/isHidden';
import OpenAPIValidateCommand from './openapi/validate';
After
import type { Options } from './openapi/validate';
import type { CommandOptions } from '../lib/baseCommand'; <-- this line was moved
import Command from '../lib/baseCommand';
import isHidden from '../lib/decorators/isHidden';
import OpenAPIValidateCommand from './openapi/validate';