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

Update linting and formatting setup. #136

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

Conversation

lasseborly
Copy link
Contributor

@lasseborly lasseborly commented May 25, 2021

Main objective of these changes is remove some of the friction from when
working on the project.

Before we had eslint and prettier intertwined which made for a "secure"
experience but made it so that formatting errors that were auto-fixable
were being treated as errors. This would make the editing experience
slow and tiresome when you would not have the appropriate editor setup
that would auto-fix everything for you.

These changes seperated eslint and prettier and stylelint and prettier.
Letting eslint and stylelint be responsible for code quality and our own
weird formatting rules whereas prettiers concerns is 100% on auto-fixable
formatting.

This results in no more red lines in our IDE's when it comes to prettier
warnings which eases development but still maintains security of formatted
code due to github actions and the proposed IDE configs supplied.

Besides the seperation we also bump eslint and prettier a major version.

TLDR; Provides a nicer DX

@lasseborly lasseborly force-pushed the chore/separate-eslint-stylelint-prettier branch 3 times, most recently from 43f7689 to 410aaec Compare May 25, 2021 14:44
Main objective of these changes is remove some of the friction from when
working on the project.

Before we had eslint and prettier intertwined which made for a "secure"
experience but made it so that formatting errors that were auto-fixable
were being treated as errors. This would make the editing experience
slow and tiresome when you would not have the appropriate editor setup
that would auto-fix everything for you.

These changes seperated eslint and prettier and stylelint and prettier.
Letting eslint and stylelint be responsible for code quality and our own
weird formatting rules whereas prettiers concerns is 100% on auto-fixable
formatting.

This results in no more red lines in our IDE's when it comes to prettier
warnings which eases development but still maintains security of formatted
code due to github actions and the proposed IDE configs supplied.

Besides the seperation we also bump eslint and prettier a major version.
@lasseborly lasseborly force-pushed the chore/separate-eslint-stylelint-prettier branch from 410aaec to ecb2b28 Compare June 2, 2021 12:21
@lasseborly lasseborly marked this pull request as ready for review June 2, 2021 12:21
@lasseborly
Copy link
Contributor Author

This is also ready for review @kasperg

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.

1 participant