“No ESLint configuration found” error

后端 未结 11 2358
故里飘歌
故里飘歌 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条回答
  •  暗喜
    暗喜 (楼主)
    2021-02-01 16:21

    Try to swap config with configFile. Then :

    1. Create eslint.json file and
    2. Point the right location of it (relative to Gruntfile.js file)
    3. Place some configuration in that file (eslint.json), i.e.:

    .

    {
        "rules": {
            "eqeqeq": "off",
            "curly": "warn",
            "quotes": ["warn", "double"]
        }
    }
    

    for more examples, go here.

提交回复
热议问题