How to set jshint/jsxhint “esnext” option in Atom

后端 未结 3 1096
醉梦人生
醉梦人生 2021-02-01 15:07

I am using Atom\'s linter, react, and linter-jshint/linter-jsxhint. In my JSX files, I keep getting the warning

3条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-02-01 15:22

    You can create a .jshintrc in your project folder, it will be read by the linter as a json source file.

    To use esnext option,

    {
        "esnext": true
    }
    

    You will probably need to reopen your JS file to be able to see the new changes.

提交回复
热议问题