Highly opinionated & React Typescript centric.
- Lots of React goodness
- "Prettier" formatting (https://prettier.io/)
yarn add eslint eslint-config-sammy --dev
To the root of your project add the following two files:
{
"extends": "sammy"
}
module.exports = {
...require("eslint-config-sammy/.prettierrc.recommended.js"),
};
Add to your package.json "scripts" key (if doesn't exist, create):
"scripts": {
"lint": "\"./node_modules/.bin/eslint\" . --ext js,ts,tsx"
}
Add your ignore files: .prettierignore
& .eslintignore
**/node_modules/**
**/build/**
**/coverage/**
Run in your terminal
yarn lint
yarn lint --fix