MAJOR BREAKING CHANGES ℹ️
-
eslint-config-ckeditor5: Updated the
@stylistic/no-multiple-empty-linesrule 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/cssvalidation 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, anduse-baselinewith{ available: 'widely' }. It also enablesckeditor5-rules/css-indentandckeditor5-rules/no-disallowed-color-formatsfor all CSS files, andckeditor5-rules/ck-content-variable-namefor**/theme/**/*.css.The preset enables
ckeditor5-rules/ck-content-variable-namewith no options, so it has no built-in exemptions. Consumers that previously relied on the old Stylelint-suggestion-and-comment-exemptions, for examplevar(--ck-suggestion-marker)inside a.ck-contentselector, must configureignoredVariableSubstringsor rename the affected variables to use the--ck-content-*prefix. -
eslint-plugin-ckeditor5-rules: The
ckeditor5-rules/require-as-const-returns-in-methodsrule now checks only thepluginNamemethod.
Features
- eslint-plugin-ckeditor5-rules: Added a new
ckeditor5-rules/css-indentrule 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-formatsrule for CSS files. The rule rejects hex colors,rgb()andrgba()calls, and named CSS colors. Use HSL or CSS custom properties instead. - eslint-plugin-ckeditor5-rules: Added a new
ckeditor5-rules/ck-content-variable-namerule for CSS files. The rule requires variables used inside.ck-contentselectors to use the--ck-content-*prefix. Exemptions can be configured with theignoredVariableSubstringsoption. - eslint-plugin-ckeditor5-rules: Extended
ckeditor5-rules/license-headerto 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):
- eslint-config-ckeditor5: v15.1.0 => v16.0.0
- eslint-plugin-ckeditor5-rules: v15.1.0 => v16.0.0