The current linting setup is a bit old and a refresh would not do any harm. 😉
How
This PR updates the whole project linting setup (ESLint & Prettier), switches to eslint-config-universe as a base for ESLint setup and simplifies the configs files as well as commands (which now include .js files in check).
I have applied the the lint changes running yarn lint with a new setup. The changes are mostly about import order/grouping and missing arrow function parentheses.
There was one warning which I had to fix manually related to usage of prevState inside of setState. Besides that the upgrade went smoothly.
Test Plan
yarn lint do not output any warnings. Example app run without an issue.
Why
The current linting setup is a bit old and a refresh would not do any harm. 😉
How
This PR updates the whole project linting setup (ESLint & Prettier), switches to
eslint-config-universe
as a base for ESLint setup and simplifies the configs files as well as commands (which now include.js
files in check).I have applied the the lint changes running
yarn lint
with a new setup. The changes are mostly about import order/grouping and missing arrow function parentheses.There was one warning which I had to fix manually related to usage of
prevState
inside ofsetState
. Besides that the upgrade went smoothly.Test Plan
yarn lint
do not output any warnings. Example app run without an issue.