Skip to content

Conversation

MichaelAJay
Copy link
Contributor

@MichaelAJay MichaelAJay commented Oct 17, 2025

Adds and configures eslint-plugin-import.
Maintains import-sort rules which are auto-fixable.

}],
'import/order': ['error', {
groups: ['builtin', 'external', 'internal', 'parent', 'sibling', 'index', 'object', 'type'],
'newlines-between': 'always',
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this doing what you want? e.g. it turns the imports in bitcore-node/src/config.ts from

import { cpus, homedir } from 'os';
import { ConfigType } from './types/Config';
import { merge } from './utils';
import parseArgv from './utils/parseArgv';

to

import { cpus, homedir } from 'os';

import { ConfigType } from './types/Config';
import { merge } from './utils';
import parseArgv from './utils/parseArgv';

Perhaps you meant the import/newline-after-import rule?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would expect newlines-between to be never

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants