Gulp linting tasks for CKEditor 5.


2133.1.44 years ago5 years agoMinified + gzip package size for @ckeditor/ckeditor5-dev-lint in KB


CKEditor 5 linting tasks

Gulp linting tasks for CKEditor 5.

More information about development tools packages can be found at the following URL: https://github.com/ckeditor/ckeditor5-dev.


npm i --save-dev @ckeditor/ckeditor5-dev-lint guppy-pre-commit


'use strict';

const gulp = require( 'gulp' );

const ckeditor5Lint = require( '@ckeditor/ckeditor5-dev-lint' )();

gulp.task( 'lint', ckeditor5Lint.lint );
gulp.task( 'lint-staged', ckeditor5Lint.lintStaged );
gulp.task( 'pre-commit', [ 'lint-staged' ] );

The lint task will skip the files listed in .gitignore. You can also pass option.ignoredFiles:

const ckeditor5Lint = require( '@ckeditor/ckeditor5-dev-lint' )( {
    // Files ignored by `gulp lint` task.
    // Files from .gitignore will be added automatically during task execution.
    ignoredFiles: [
} );


See the CHANGELOG.md file.


Licensed under the GPL, LGPL and MPL licenses, at your choice. For full details about the license, please check the LICENSE.md file.

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.