When git uploads and submits code, an error occurs: Cannot read config file: /Users/(file path)/.eslintrc.json
At the beginning, there was no .eslintrc.json file in my project, and an error was reported when git commit
Later I added an .eslintrc.json to the folder
When the error was reported, it became
The rules in
.eslintrc.json are
`{
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
}
}`
I can confirm that there is no problem when writing the code in my file.
How to solve this problem? I am a mac system
This is an error reported by the pre-commit hook. I don’t know the function of this hook.
You can ask the person who built this warehouse what this file means and what format it contains.