2

I would like to disable JSHint warning "W097": use function form of 'use strict'.

I know I can place /* jshint -W097 */ and /* jshint node: true */

But I don't want to manually add that on top of every page. Is there a way to disable from the source code or settings?

Much appreciated

Dan Lowe
  • 51,713
  • 20
  • 123
  • 112
Fernando B
  • 864
  • 2
  • 12
  • 27
  • 1
    You can [_configure_ JSHint](http://jshint.com/docs/options/), you know that, right? How did you find the in-line settings without finding the global ones? – VLAZ Oct 11 '16 at 17:45
  • 1
    Possible duplicate of [How to disable "use strict" in JSHint](http://stackoverflow.com/questions/37977344/how-to-disable-use-strict-in-jshint) – VLAZ Oct 11 '16 at 17:47
  • @vlaz from checking out this post http://stackoverflow.com/questions/4462478/jslint-is-suddenly-reporting-use-the-function-form-of-use-strict – Fernando B Oct 11 '16 at 20:46
  • That post does list .jshintrc, though. – VLAZ Oct 11 '16 at 21:36
  • Yea i finally got it up and running witht the settings I wanted. But's it's only working on the project level. I'm messing with source code to see if i can disable it from the entire package – Fernando B Oct 11 '16 at 23:16

2 Answers2

0

You can define a .jshintrc file for your project or even for the whole atom installation. Assuming that you have jshint installed you can refer to this article under the topic "Included features".

bash0ne
  • 394
  • 3
  • 14
0

I basically just copied and pasted all the options found here in my jshint file in my local project. From there I set false to strict and true to esnext

Fernando B
  • 864
  • 2
  • 12
  • 27