-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Feature/improve eslint job #4219
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
Conversation
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/webpack-docs/webpack-js-org/a2bxvaz68 |
0e1c132
to
d4f54fb
Compare
const newChildren = Children.map(props.children.props.children, child => { | ||
if (isValidElement(child)) { | ||
if (child.props.className.includes('keyword')) { | ||
if (!detailComponentsList.includes(child.props.componentname)) return child; | ||
|
||
// eslint-disable-next-line |
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?
@@ -26,3 +27,6 @@ export const Pre = props => { | |||
</pre> | |||
); | |||
}; | |||
Pre.propTypes = { |
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 add them.
Currently there's no rules to lint React code, this pull request should fix it.
.eslintrc
was deprecated https://eslint.org/docs/user-guide/configuring#configuration-file-formats, replaced with.eslintrc.js
js
andjavascript
code blocks in markdown fileseslint-plugin-react