Skip to content

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.

Frikki added 4 commits April 6, 2019 14:16
References #5

Signed-off-by: Frederik Krautwald <[email protected]>
This commit adds tslint with prettier to lint and format code in a
consistent manner.

Closes #5

Signed-off-by: Frederik Krautwald <[email protected]>
Signed-off-by: Frederik Krautwald <[email protected]>
This commit adds husky and lint-staged to enable auto-linting on
git commits to ensure consistency among developers.

Signed-off-by: Frederik Krautwald <[email protected]>
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

4 participants