Skip to content
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

WRN-18693: Update testing library rules #46

Closed
wants to merge 9 commits into from
Closed

Conversation

hong6316
Copy link
Contributor

@hong6316 hong6316 commented Mar 18, 2022

Issue Resolved / Feature Added

Update lint rules of testing

Resolution

Update lint rules of testing

Additional Considerations

Links

WRN-18693

Comments

Enact-DCO-1.0-Signed-off-by: Taeyoung Hong (taeyoung.hong@lge.com)

Copy link
Contributor

@MikyungKim MikyungKim left a comment

Choose a reason for hiding this comment

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

🤔 Why eslint-plugin-testing-library module is not updated?

@hong6316
Copy link
Contributor Author

🤔 Why eslint-plugin-testing-library module is not updated?

@MikyungKim
That module will be updated on #45

@MikyungKim MikyungKim changed the title WRN-18693: Update eslint-config-enact rules update via checking CRA WRN-18693: Update testing library rules Apr 6, 2022
Base automatically changed from feature/webpack5 to develop April 11, 2022 07:57
index.js Outdated Show resolved Hide resolved
index.js Outdated
'testing-library/no-dom-import': ['error', 'react'],
'testing-library/no-node-access': 'off',
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we just remove it? Should we "off" this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Either is fine, let's remove it.

strict.js Outdated
@@ -43,13 +43,13 @@ module.exports = {
'no-array-constructor': 'error',
'no-cond-assign': ['error', 'except-parens'],
'no-console': 'warn',
'no-debugger': 'warn',
'no-debugger': 'error',
Copy link
Contributor

Choose a reason for hiding this comment

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

If these warn to error rules in the eslint:recommended, can we just remove them?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

OK, let's remove it.
Not exactly, but before eslint 6.0.0(before May 2019), eslint:recommend already set 'no-debugger' to 'error'.
(eslint/eslint@f42d0af)

index.js Outdated
@@ -235,7 +235,7 @@ module.exports = {
'**/?(*.)+(spec|test).[jt]s?(x)',
Copy link
Contributor

Choose a reason for hiding this comment

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

Please update the glob pattern.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

OK

@MikyungKim
Copy link
Contributor

MikyungKim commented May 4, 2022

Closing this in favor of #49.

@MikyungKim MikyungKim closed this May 4, 2022
@MikyungKim MikyungKim deleted the feature/WRN-18693 branch May 4, 2022 00:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants