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