search

Home  >  Q&A  >  body text

react.js - git Cannot read config file: /Users/(file path)/.eslintrc.json

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

为情所困为情所困2753 days ago1102

reply all(1)I'll reply

  • 淡淡烟草味

    淡淡烟草味2017-06-08 11:04:06

    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.

    reply
    0
  • Cancelreply