Use eslint for everything

eslint is much more powerful and flexible than jshint, and we don't want
to promote writing new projects with pre-ES6 code.

As a side effect, this also avoids downloading PhantomJS (see
https://github.com/jshint/jshint/issues/3318), thereby cutting down
node_modules/ from 470 MB to 210 MB.
This commit is contained in:
Martin Pitt 2018-08-28 21:27:47 +02:00 committed by Martin Pitt
parent da06135330
commit 3922333029
4 changed files with 1 additions and 11 deletions

View file

@ -119,12 +119,6 @@ module.exports = {
},
module: {
rules: [
{
enforce: 'pre',
exclude: /node_modules/,
loader: 'jshint-loader',
test: /\.js$/
},
{
enforce: 'pre',
exclude: /node_modules/,
@ -134,7 +128,7 @@ module.exports = {
{
enforce: 'pre',
exclude: /node_modules/,
loader: 'jshint-loader?esversion=6',
loader: 'eslint-loader',
test: /\.es6$/
},
{