|
|
@@ -8,18 +8,13 @@
|
|
|
'use strict';
|
|
|
|
|
|
const gulp = require( 'gulp' );
|
|
|
-
|
|
|
-const config = {
|
|
|
- ROOT_DIR: '.',
|
|
|
- WORKSPACE_DIR: '..',
|
|
|
-
|
|
|
- // Files ignored by jshint and jscs tasks. Files from .gitignore will be added automatically during tasks execution.
|
|
|
- IGNORED_FILES: [
|
|
|
+const ckeditor5Lint = require( '@ckeditor/ckeditor5-dev-lint' )( {
|
|
|
+ // Files ignored by `gulp lint` task.
|
|
|
+ // Files from .gitignore will be added automatically during task execution.
|
|
|
+ ignoredFiles: [
|
|
|
'src/lib/**'
|
|
|
]
|
|
|
-};
|
|
|
-
|
|
|
-const ckeditor5Lint = require( '@ckeditor/ckeditor5-dev-lint' )( config );
|
|
|
+} );
|
|
|
|
|
|
gulp.task( 'lint', ckeditor5Lint.lint );
|
|
|
gulp.task( 'lint-staged', ckeditor5Lint.lintStaged );
|