Eslint config based on create-react-app with some tweaks and included prettier.
yarn add eslint prettier eslint-config-dqnt --dev
or
npm install eslint prettier eslint-config-dqnt --save-dev
Create a file named .eslintrc
with following contents in the root folder of your project:
{
"extends": "dqnt"
}
Create a file named .prettierrc
with prettier settings best fit your preferences:
{
"printWidth": 80,
"singleQuote": true,
"trailingComma": "es5"
}