My personal eslint config for hobby projects.
Install
npm i @tomchinery/eslint-config
Edit .eslintrc.js
:
module.exports = {
extends: ['@tomchinery/eslint-config']
}
Edit package.json
:
{
"scripts": {
...
"lint": "eslint ./src/ --fix --ext .js,.jsx,.ts,.tsx",
...
}
}