Skip to content

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

Merged
merged 7 commits into from
Dec 2, 2020

Conversation

chenxsan
Copy link
Member

@chenxsan chenxsan commented Nov 29, 2020

Currently there's no rules to lint React code, this pull request should fix it.

@vercel
Copy link

vercel bot commented Nov 29, 2020

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/webpack-docs/webpack-js-org/a2bxvaz68
✅ Preview: https://webpack-js-org-git-feature-improve-eslint-job.webpack-docs.vercel.app

@chenxsan chenxsan marked this pull request as ready for review December 2, 2020 04:53
@chenxsan chenxsan merged commit ed89aa4 into webpack:master Dec 2, 2020
@chenxsan chenxsan deleted the feature/improve-eslint-job branch December 2, 2020 11:08
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
Copy link
Member

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 = {
Copy link
Member

Choose a reason for hiding this comment

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

Please add them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants