Skip to content

Apply more conventional code style linting #49

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Apply more conventional code style linting #49

wants to merge 1 commit into from

Conversation

greena13
Copy link

@greena13 greena13 commented Oct 16, 2017

This repository has some pretty unconventional linting. To encourage contributions from the community and to make it easier to read and maintain the source code, I took a look at the linting rules of some of the most popular react projects:

https://github.com/kriasoft/react-starter-kit/blob/master/.eslintrc.js
https://github.com/callemall/material-ui/blob/v1-beta/.eslintrc.js
https://github.com/facebook/react/blob/master/.eslintrc.js

And removed any rules that I saw as noticeable deviations from what seems to be a pretty safe proxy for community standard.

I then ran

node_modules/.bin/eslint --fix --ext .js .

To autofix all JS files with the new linting rules and fixed any refactoring that could not be performed automatically.

There are still linting issues with the test files, but I am planning on addressing those in a subsequent pull request.

@kumarharsh
Copy link

Maybe Prettier can be added too.

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.

2 participants