Commit Graph

8 Commits

Author SHA1 Message Date
Tim Sebastian 1d3265445c use const where applicable in UseStrictPlugin 2017-02-05 12:20:22 +11:00
Tobias Koppers 8e69a80847 code linting 2017-01-11 12:29:01 +01:00
Sean Larkin aa8d01bf8d refactor(eslint): Added no-unsed-vars, env specific .eslintrc's for buildin & hot (#3636)
* refactor(eslint): Added no-unsed-vars, env specific .eslintrc's for buildin & hot

* This change allows for buildin to now be part of the lint test by addition of an extra .eslintrc file which extends existing but sets es6 to false
* Turned on no-unused-vars for eslint, and then removed all warnings from turning that feature on
* Was getting notified of errors in "quote" property in eslintrc, so changed to correct value from error to 2.

* beautify

* swap invalid eslint config val
2016-12-30 09:43:49 -06:00
Sean Larkin 852c5c1cdd added use strict to help istanbul not freak out over let and const in node v4 2016-12-28 14:44:06 -06:00
Sean Larkin 000b757b1e refactor(es6): Update UseStrictPlugin to es6 class 2016-12-28 13:38:20 -06:00
Johannes Ewald b51f2b0a0f Fix double "use strict"
This fixes a problem where webpack rendered modules with two "use strict" statements at the beginning
2016-12-14 12:35:12 +01:00
Tobias Koppers ec262a4007 refactoring: moved parser instancation into NormalModuleFactory
breaking change: compiler.parser must no longer be used. Use this instead:

``` js
compiler.plugin("compilation", function(compilation, params) {
  params.normalModuleFactory.plugin("parser", function(parser, parserOptions) {
    parser.plugin(/* ... */);
  });
});
```

required for #2978
2016-09-15 00:22:10 +02:00
Tobias Koppers b98debb809 keep strict mode even if code is inserted
fixes #1970
2016-05-05 17:45:58 +02:00