Skip to content

Conversation

@bryceosterhaus
Copy link
Member

@bryceosterhaus bryceosterhaus commented Oct 18, 2021

fixes #12
fixes #6
fixes #311
fixes #3

Slowly working through backlog of eslint rules we wanted to add.

@bryceosterhaus
Copy link
Member Author

DXP changes needed after this PR. (there were over 1k auto-fixes 😨 )

Screen Shot 2021-10-18 at 2 48 37 PM

Most of these are related to Expected catch() or return promise/catch-or-return

Copy link
Member

@kresimir-coko kresimir-coko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, just a couple nitpicks.

Comment on lines 20 to 22
const argumentValue = node.arguments[0].value;
const argumentName = argumentValue.replace('data-', '');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't there be an empty line inbetween these?

* SPDX-License-Identifier: MIT
*/

const MESSAGE = 'Every `expect()` should assert something.';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Interesting that you went with capitalization here, which prevents you to imply message inside context.report

@bryceosterhaus
Copy link
Member Author

@bryceosterhaus bryceosterhaus merged commit ea46ed6 into liferay:master Oct 19, 2021
@bryceosterhaus bryceosterhaus deleted the 311 branch October 19, 2021 21:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment