Skip to content

PN-268 Standardize ESLint and Prettier#83

Merged
tankakatan merged 3 commits intodevelopfrom
PN-268
Oct 21, 2022
Merged

PN-268 Standardize ESLint and Prettier#83
tankakatan merged 3 commits intodevelopfrom
PN-268

Conversation

@germanviescas
Copy link
Contributor

These changes adjust ESLint and Prettier configuration to be consistent with the settings in Point Engine.

After changing the rules, I ran both tools to autofix as much as possible (there were over 500 problems).

After that, I manually fixed some very small problems. I didn't want to touch anything that could affect functionality so I restricted myself to only making minor styling changes.

Ultimately, the goal was to have 0 errors so that we could add a github action to lint PRs. With this goal in mind, I made the following changes:

  1. I downgraded some error rules to be warnings and left a TODO next to them. These rules were causing hundreds of errors that could not be autofixed.

  2. In a few cases, I added some eslint-disable directives inside some files. In these cases, I think we need to be more careful about the fix, so I didn't want to make them here, where they would be lost in a sea of changes.

npm run lint before:

  • 344 problems (323 errors, 21 warnings)

npm run lint after:

  • 290 problems (0 errors, 290 warnings)

@tankakatan tankakatan merged commit 089e1ee into develop Oct 21, 2022
@tankakatan tankakatan deleted the PN-268 branch October 21, 2022 07:53
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