-
Notifications
You must be signed in to change notification settings - Fork 1
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
Conversation
…recommended changes in eslint 8)
There was a problem hiding this 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?
@MikyungKim |
index.js
Outdated
'testing-library/no-dom-import': ['error', 'react'], | ||
'testing-library/no-node-access': 'off', |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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', |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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)', |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK
Closing this in favor of #49. |
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)