Skip to content

Add ELSint rule to check inter-packages imports #8581

@jodator

Description

@jodator

📝 Provide a description of the new feature

Follow-up for the #8395. We're going to change how we import things from other packages.

This ESLint rule should check if the imports from other packages are pointing to the package entry file instead of direct import.

In other words, depending on how the #8578 is resolved the imports should point to entry file:

import { Plugin } from '@ckeditor/ckeditor5-core/core';
// or (see #8578)
import { Plugin } from 'ckeditor/core';

The wrong import would be:

import Plugin from '@ckeditor/ckeditor5-core/src/plugin';

If you'd like to see this feature implemented, add a 👍 reaction to this post.

Metadata

Metadata

Assignees

Labels

domain:dxThis issue reports a developer experience problem or possible improvement.domain:extending-buildstype:featureThis issue reports a feature request (an idea for a new functionality or a missing option).

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions