Socket
Book a DemoInstallSign in
Socket

eslint-plugin-ckeditor5-rules

Package Overview
Dependencies
Maintainers
1
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-ckeditor5-rules

CKEditor 5 ESLint preset.

Source
npmnpm
Version
10.0.0-alpha.2
Version published
Weekly downloads
10K
10.78%
Maintainers
1
Weekly downloads
 
Created
Source

CKEditor 5 ESLint plugins

npm version Dependency Status

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

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

Usage

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

Configure ESLint using the following contents:

import { defineConfig } from 'eslint/config';
import ckeditor5Rules from 'eslint-plugin-ckeditor5-rules';

export default defineConfig( [
	{
		plugins: {
			'ckeditor5-rules': ckeditor5Rules
		},
		rules: {
			'ckeditor5-rules/no-relative-imports': 'error',
			'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',
					' */'
				]
			} ]
			// ...
		}
		// ...
	}
] );

Rules

The list of all ESLint rules published in eslint-plugin-ckeditor5-rules package is documented on https://ckeditor.com/docs/ckeditor5/latest/framework/contributing/code-style.html#ckeditor-5-custom-eslint-rules.

Keywords

eslint

FAQs

Package last updated on 14 May 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts