Skip to content

v16.0.0

Latest

Choose a tag to compare

@CKEditorBot CKEditorBot released this 09 Jun 11:10
f0c1adc

MAJOR BREAKING CHANGES ℹ️

  • eslint-config-ckeditor5: Updated the @stylistic/no-multiple-empty-lines rule in default config to enforce a single empty line at the beginning and end of files. Closes ckeditor/ckeditor5-internal#4485.

  • eslint-config-ckeditor5: The CSS preset now enables @eslint/css validation rules for all CSS files: no-duplicate-imports, no-duplicate-keyframe-selectors, no-empty-blocks, no-invalid-at-rule-placement, no-invalid-at-rules, no-invalid-named-grid-areas, no-unmatchable-selectors, selector-complexity, prefer-logical-properties, and use-baseline with { available: 'widely' }. It also enables ckeditor5-rules/css-indent and ckeditor5-rules/no-disallowed-color-formats for all CSS files, and ckeditor5-rules/ck-content-variable-name for **/theme/**/*.css.

    The preset enables ckeditor5-rules/ck-content-variable-name with no options, so it has no built-in exemptions. Consumers that previously relied on the old Stylelint -suggestion- and -comment- exemptions, for example var(--ck-suggestion-marker) inside a .ck-content selector, must configure ignoredVariableSubstrings or rename the affected variables to use the --ck-content-* prefix.

  • eslint-plugin-ckeditor5-rules: The ckeditor5-rules/require-as-const-returns-in-methods rule now checks only the pluginName method.

Features

  • eslint-plugin-ckeditor5-rules: Added a new ckeditor5-rules/css-indent rule that enforces tab indentation in CSS files. The rule checks indentation in nested blocks and multi-line parenthesized values, and can automatically fix reported indentation issues.
  • eslint-plugin-ckeditor5-rules: Added a new ckeditor5-rules/no-disallowed-color-formats rule for CSS files. The rule rejects hex colors, rgb() and rgba() calls, and named CSS colors. Use HSL or CSS custom properties instead.
  • eslint-plugin-ckeditor5-rules: Added a new ckeditor5-rules/ck-content-variable-name rule for CSS files. The rule requires variables used inside .ck-content selectors to use the --ck-content-* prefix. Exemptions can be configured with the ignoredVariableSubstrings option.
  • eslint-plugin-ckeditor5-rules: Extended ckeditor5-rules/license-header to validate CSS files. Missing, incorrect, or incorrectly positioned CSS license headers are reported and can be automatically fixed.

Released packages

Check out the Versioning policy guide for more information.

Released packages (summary)

Major releases (contain major breaking changes):