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

Linting and formatting #6

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Linting and formatting #6

wants to merge 4 commits into from

Conversation

Frikki
Copy link
Member

@Frikki Frikki commented Apr 6, 2019

This PR adds a common editor configuration, linting with tslint, and formatting through prettier. It also sets up auto-linting on git commits through the use of husky and lint-staged to ensure consistency among code contributors. The latter avoids that future commits suddenly will introduce files only because the code was formatted.

This PR closes #5.

References #5

Signed-off-by: Frederik Krautwald <fkrautwald@gmail.com>
This commit adds tslint with prettier to lint and format code in a
consistent manner.

Closes #5

Signed-off-by: Frederik Krautwald <fkrautwald@gmail.com>
Signed-off-by: Frederik Krautwald <fkrautwald@gmail.com>
This commit adds husky and lint-staged to enable auto-linting on
git commits to ensure consistency among developers.

Signed-off-by: Frederik Krautwald <fkrautwald@gmail.com>
Copy link
Member

@briancavalier briancavalier left a comment

Choose a reason for hiding this comment

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

Thanks for doing this! I'm totally in favor of adding linting+formatting. Like we discussed on slack, it'd be great to get as close to standardjs as is possible, since that's what @most/core uses.

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.

Linting and formatting
3 participants