Skip to content

Commit

Permalink
Add eslint rule 'allow-imports-only-from-main-package-entry-point'.
Browse files Browse the repository at this point in the history
  • Loading branch information
pszczesniak committed Jun 13, 2024
1 parent 38934e0 commit ff0c76e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ module.exports = {
// Also, importing non-DLL packages is not allowed. If the package requires other features to work, they should be
// specified as soft-requirements.
// Read more: https://ckeditor.com/docs/ckeditor5/latest/builds/guides/migration/migration-to-26.html#soft-requirements.
'ckeditor5-rules/ckeditor-imports': 'error'
'ckeditor5-rules/ckeditor-imports': 'error',
'ckeditor5-rules/allow-imports-only-from-main-package-entry-point': 'error'
},
overrides: [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ module.exports = {
// Ignore the entire `dist/`.
'dist/**'
],
rules: {
'ckeditor5-rules/allow-imports-only-from-main-package-entry-point': 'error'
},
overrides: [
{
files: [ 'tests/**/*.js', 'sample/**/*.js' ],
Expand Down

0 comments on commit ff0c76e

Please sign in to comment.