Skip to content

Eslint & Stylelint plugins and configurations for linting the CKEditor 5 code style.

License

Notifications You must be signed in to change notification settings

ckeditor/ckeditor5-linters-config

Repository files navigation

CKEditor 5 linters configuration

CircleCI

Issue tracker

The issue tracker is located in the ckeditor/ckeditor5 repository.

Packages

This repository is a monorepo. It contains multiple npm packages.

Package Version Dependencies
eslint-config-ckeditor5 npm version Dependency Status
eslint-plugin-ckeditor5-rules npm version Dependency Status
stylelint-config-ckeditor5 npm version Dependency Status
stylelint-plugin-ckeditor5-rules npm version Dependency Status

Archived repositories

Some of the packages in this repository were previously separate repositories, and are now archived:

Cloning

  1. Clone this repository.
  2. Do yarn install inside (this package uses yarn workspaces).
  3. You're ready to go!

Testing

Tests:

yarn run test

Releasing packages

Changelog

  1. Fetch all changes and switch to master!
  2. Execute npm run changelog:
  • This task checks what changed in each package and bumps the version accordingly. If nothing changed at all, it won't create a new changelog entry. If changes were irrelevant (e.g. only depedencies) it will create an "internal changes" entry.
  • Scan the logs which are printed by the tool in search for errors (incorrect changelog entries). Incorrect entries (e.g. ones without the type) are being ignored. You may need to create entries for them manually. This is done directly in CHANGELOG.md (in the root directory). Make sure to verify the proposed version after you modify the changelog.
    • When unsure what has really changed in this version of a specific package, use git diff <hash of previous release> packages/<name of the package>/.

Publishing

After generating the changelog, you are able to release the package.

First, you need to bump the version:

npm run release:prepare-packages

After bumping the version, you can publish the changes:

npm run release:publish-packages

Your job's done. You can go now to the root of the repository, potentially update something in package.json, run yarn install and commit that as "Internal: Updated dependencies.".

License

Licensed under the terms of MIT license. For full details about the license, please check the LICENSE.md file.