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

后端 未结 3 1122
醉梦人生
醉梦人生 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:25

    You can use the inline configuration adding this comment in your file .js:

    /* jshint esversion: 6 */

    http://jshint.com/docs/

提交回复
热议问题