react.js - git Cannot read config file: /Users/(file path)/.eslintrc.json
为情所困
为情所困 2017-06-08 11:02:06
0
1
1101

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

为情所困
为情所困

reply all(1)
淡淡烟草味

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.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template