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

Add ESLint and Prettier #21

Merged
merged 1 commit into from
Feb 28, 2020
Merged

Add ESLint and Prettier #21

merged 1 commit into from
Feb 28, 2020

Conversation

NMinhNguyen
Copy link
Collaborator

@NMinhNguyen NMinhNguyen commented Feb 28, 2020

Closes #5.

Given the origins of this project, I have tried to borrow as much of applicable config from https://github.com/facebook/react/blob/a8643e9/.eslintrc.js as possible.

@@ -10,15 +10,17 @@ import React from 'react';
const ReactSharedInternals =
React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;

const hasOwnProperty = Object.prototype.hasOwnProperty;
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This is due to a newly recommended rule, https://eslint.org/docs/rules/no-prototype-builtins

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

Successfully merging this pull request may close these issues.

Add ESLint and Prettier
1 participant