“No ESLint configuration found” error

后端 未结 11 2210
故里飘歌
故里飘歌 2021-02-01 16:03

Recently, we\'ve upgraded to ESLint 3.0.0 and started to receive the following message running the grunt eslint task:

> $ grunt eslint
Running \"         


        
11条回答
  •  闹比i
    闹比i (楼主)
    2021-02-01 16:31

    Create a new file on the root directory called .eslintrc.json file:

     {
        "parserOptions": {
             "ecmaVersion": 6,
             "sourceType": "module",
             "ecmaFeatures": {
                 "jsx": true
             }
        },
        "rules": {
            "semi": "error"
        }
    }
    

提交回复
热议问题