jsxhint

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

雨燕双飞 提交于 2020-01-11 17:09:11
问题 I am using Atom's linter , react , and linter-jshint / linter-jsxhint . In my JSX files, I keep getting the warning Warning: 'import' is only available in ES6 (use esnext option). (W119) That's pretty straightforward. I did some searching, and found that this can be set under the jshintConfig option in package.json (when using NPM). My project uses NPM and I have a package.json . I added: "jshintConfig": { "esnext": true } After that, I did a reload but the warnings persist. I also modified

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

我与影子孤独终老i 提交于 2019-12-02 18:50:15
I am using Atom's linter , react , and linter-jshint / linter-jsxhint . In my JSX files, I keep getting the warning Warning: 'import' is only available in ES6 (use esnext option). (W119) That's pretty straightforward. I did some searching, and found that this can be set under the jshintConfig option in package.json (when using NPM). My project uses NPM and I have a package.json . I added: "jshintConfig": { "esnext": true } After that, I did a reload but the warnings persist. I also modified my linter-jshint / linter-jsxhint config in Atom ( config.cson ) with: "linter-jshint": harmony: true