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

Package detail

eslint-config-ckeditor5

ckeditor46.6kMIT12.1.0

CKEditor 5 ESLint preset.

style guide, eslint, config, lint, ckeditor, eslintconfig

readme

CKEditor 5 ESLint preset

npm version Dependency Status

Usage

npm i --save-dev eslint-config-ckeditor5

Configure ESLint using the following contents:

import { defineConfig } from 'eslint/config';
import ckeditor5Config from 'eslint-config-ckeditor5';

export default defineConfig( [
    {
        extends: ckeditor5Config
    }
] );

changelog

Changelog

All changes in the package are documented in the main repository. See: https://github.com/ckeditor/ckeditor5-linters-config/blob/master/CHANGELOG.md.

Changes for the past releases are available below.

3.1.1 (2021-10-18)

Other changes

  • Enabled the ckeditor5-rules/no-cross-package-imports rule that disallows importing modules from CKEditor 5 packages inside the @ckeditor/ckeditor5-watchdog package. See: ckeditor/ckeditor5#9318. (commit)

3.1.0 (2020-09-09)

Features

Other changes

2.1.0 (2020-02-26)

Features

2.0.1 (2020-01-09)

Internal changes only (updated dependencies, documentation, etc.).

2.0.0 (2019-07-09)

Other changes

  • Updated ecmaVersion from es6 to es2018 (es9).
  • Changed the space-before-function-paren rule to preserve spaces before async arrow functions. Closes #521.

BREAKING CHANGES

  • The space-before-function-paren option was changed to make spaces before async arrow functions required.

1.0.14 (2019-04-04)

Internal changes only (updated dependencies, documentation, etc.).

1.0.12 (2019-03-28)

Features

  • Rewrote a script that prepares the testing environment on CI. Now it creates a ckeditor5-like project that contains a proper version of all dependencies. Closes #471. (a491c7f)

1.0.9 (2018-12-19)

Internal changes only (updated dependencies, documentation, etc.).

1.0.7 (2017-12-01)

Bug fixes

  • We should require space after words like new, typeof or delete. (97266f2)

1.0.5 (2017-05-17)

  • Aligned spacing around stars. Now, for real. Closes #204. (3afdc90)

1.0.4 (2017-05-17)

  • Aligned star spacing to our rules. (8f143c6)

1.0.3 (2017-05-16)

Bug fixes

  • Improved prefer-const configuration to not throw when reading before assignining. (91fe66e)

1.0.2 (2017-05-16)

Bug fixes

  • Disabled no-confusing-arrow because it's too pedantic and improved prefer-const configuration. (a3734bf)

1.0.1 (2017-05-16)

Bug fixes

  • Added ESLint as a peer dependency. (5b1e9d0)

1.0.0 (2017-05-16)

Initial version.