Everything was fine, until I added lint-staged
using husky
.
I got error related to README.md
packages\README.md
1:1 error Parsing error: Unexpected character '#'
> 1 | # @folo/forms
| ^
In package.json
:
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.{js,jsx,md}": [
"eslint --fix",
"prettier --write",
"git add"
]
}
What I am missing? Why this only happening when I run eslint
and doesn't throw error inside my Atom
editor?