yarn add eslint -D
Run yarn eslint --init and set your configuration to use airbnb and create a javascript configuration file.
yarn add prettier eslint-config-prettier eslint-plugin-react-hooks eslint-plugin-prettier babel-eslint eslint-plugin-jsx-a11y -D
If you want to use absolute paths just copy the .eslintrc.js below, else, delete the settings object in it.