Includes:
Example of lint-staged in your package.json:
{
"lint-staged": {
"*.{ts,tsx}": [
"bash -c tsc --noEmit",
"stylelint --fix",
"eslint --fix --quiet",
"prettier --write"
]
}
}Example of scripts in your package.json:
{
"scripts": {
"prepare": "husky install",
"lint:ts": "tsc --noEmit",
"lint:eslint": "eslint 'src/**/*.{ts,tsx}' --fix",
"lint:prettier": "prettier 'src/**/*.{ts,tsx}' -c",
"lint:style": "stylelint 'src/**/styled.ts' --fix",
"lint": "yarn lint:eslint && yarn lint:prettier && yarn lint:style && yarn lint:ts"
}
}