-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Switch to ESLint #4069
Comments
I pushed t/953 with a prototype. It requires switching ckeditor5-dev to t/191 and running |
When I called Corrected /**
* @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md.
*/
'use strict';
const gulp = require( 'gulp' );
const lintConfig = {
// 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' );
gulp.task( 'lint', () => ckeditor5Lint.lint( lintConfig ) );
gulp.task( 'lint-staged', () => ckeditor5Lint.lintStaged( lintConfig ) );
gulp.task( 'pre-commit', [ 'lint-staged' ] ); |
I have committed changes to ckeditor5 (symlinking) just a couple of mins ago. The same with ckeditor5-engine. Please try again. |
The gulpfile.js is already updated. Config too. |
Now it works fine. Thx for speed helping :D |
Run |
@pomek I had a similar situation when I created a validator for jsdoc output 😄 |
I've been reviewing your changes, @pomek, in t/953 and just like I commented in ckeditor5-dev, issues should be fixed not muted. So:
|
The rule of thumb when aligning code to the linter is that it should not require breaking the code and it should not require muting the linter too often. If such cases happen we need to reconsider a given rule. Linter must be a help, not an enemy. |
Short update:
|
@Reinmar, could you review my changes once again? |
Could you make a PR from this branch? |
Will do it. |
Code style: Aligned the code style after switching to a more picky ESLint. Closes #953.
Part of #366.
Requires: https://github.com/ckeditor/ckeditor5-dev/issues/191.
The text was updated successfully, but these errors were encountered: