Loading ...
Sorry, an error occurred while loading the content.

2246Re: function_strict warning and CommonJS modules

Expand Messages
  • Douglas Crockford
    Jun 3, 2011
    • 0 Attachment
      --- In jslint_com@yahoogroups.com, "mariuszn3" <medikoo.yahxo.com@...> wrote:

      > --- In jslint_com@yahoogroups.com, "Douglas Crockford" <douglas@> wrote:
      > >
      > > --- In jslint_com@yahoogroups.com, "mariuszn3" <medikoo.yahxo.com@> wrote:
      > > >
      > > > Currently there's no way to switch off function_strict warning.
      > > >
      > > > This is not great as in some environments (like node.js) javascript file is really a module and is treated as separate sandbox/function and there is no risk associated with non function wrapped use of 'use strict'.
      > > >
      > > > I think there should be an option to turn off that warning and have it turned off by default in node mode.
      > > >
      > > > Is there any chance for that ?
      > > >
      > > > Currently all JavaScript I write is with Modules spec in mind. If I want to run my code in browser then I wrap modules in functions, and 'use strict' becomes function form.
      > > >
      > > > I'd like to clear this warnings when I lint my code as they make no sense for this case.
      > >
      > >
      > > Stop turning on the option.strict option.
      > >
      >
      > I'm not turning on option.strict option.
      > JSLint by itself recognizes strict mode.


      I don't understand what you are asking for.
    • Show all 9 messages in this topic