Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

stylelint-plugin-ckeditor5-rules

ckeditor9.2kMIT11.0.1

CKEditor 5 stylelint preset.

stylelint, plugin, lint, ckeditor

readme

CKEditor 5 Stylelint plugins

npm version Dependency Status

A set of plugins used by the CKEditor 5 team for Stylelint

By default this plugin is added to our stylelint-config-ckeditor5 preset.

Usage

npm i --save-dev stylelint-plugin-ckeditor5-rules

Add the plugin to a .stylelintrc file, then configure available rules.

{
    "plugins": [
        "stylelint-plugin-ckeditor5-rules/lib/license-header"
    ]
}

Rules

license-header

This rule checks if each file starts with proper @license block comment. It requires configuration:

rules: {
    'ckeditor5-rules/license-header': [ 'error', {
        headerLines: [
            '/**',
            ' * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.',
            ' * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license',
            ' */'
        ]
    } ]
}

changelog