I have a webpack project wired with the jshint-loader which is defined like so:
postLoaders: [
{
test: /.js$/,
exclude: /node_modules/,
loader: 'jshint-loader'
}
],
and when I run webpack-dev-server I get the following warning in all of my files:
WARNING in ./js/main.js jshint results in errors Use the function form of "use strict". @ line 1 char 1 "use strict";
I tried using the "strict": false
option in my config file under jshint but it did not help.
Adding 'use strict'
in the files also did not help.
The only solution that I found was adding /*jshint globalstrict: true*/
in each js file in my project...
Does someone have a solution for it in the global scope?
Thanks.
Aucun commentaire:
Enregistrer un commentaire