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

build: replace TSLint with ESLint and Prettier #445

Merged
merged 9 commits into from
Aug 5, 2020
Merged

Conversation

erickzhao
Copy link
Member

Ref #206

We've been wanting to move from TSLint to ESLint and Prettier for a while. The maintainers of TSLint deprecated the package last year (palantir/tslint#4534), so this is a good time to transition.

I tried to adapt our previous TSLint config to match the new ESLint one as much as possible, but tried to keep it close to the default Prettier settings as well.

Note that this PR also adds lint-staged and husky for pre-commit hook linting.

@erickzhao erickzhao changed the title build: replace TSLint with Prettier build: replace TSLint with ESLint and Prettier Jul 23, 2020
@erickzhao erickzhao marked this pull request as draft July 23, 2020 18:11
@coveralls
Copy link

coveralls commented Jul 23, 2020

Coverage Status

Coverage decreased (-0.07%) to 93.998% when pulling 4de0102 on erick/prettier into 6f2218e on master.

@erickzhao erickzhao marked this pull request as ready for review July 23, 2020 20:51
package.json Outdated Show resolved Hide resolved
@erickzhao erickzhao requested a review from malept July 31, 2020 23:57
Copy link
Member

@malept malept left a comment

Choose a reason for hiding this comment

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

I'm basically assuming that all of the lint/format changes are good 😄

.prettierrc.js Outdated Show resolved Hide resolved
@erickzhao erickzhao requested a review from malept August 5, 2020 17:46
@erickzhao erickzhao merged commit 7bab157 into master Aug 5, 2020
@erickzhao erickzhao deleted the erick/prettier branch August 5, 2020 21:14
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.

3 participants