Passed
Push — master ( 222441...bcf585 )
by Jean
03:00
created

webpack.config.js (35 issues)

Severity
1
const path = require('path');
2
const webpack = require('webpack');
0 ignored issues
show
Unable to resolve path to module 'webpack'.
Loading history...
3
const pkg = require('./package.json');
4
const UglifyJsPlugin = require('uglifyjs-webpack-plugin');
0 ignored issues
show
uglifyjs-webpack-plugin import should occur before import of ./package.json
Loading history...
Unable to resolve path to module 'uglifyjs-webpack-plugin'.
Loading history...
5
6
module.exports = {
7
  entry: './src/index.js',
0 ignored issues
show
Expected indentation of 4 spaces but found 2.
Loading history...
8
9
  output: {
0 ignored issues
show
Expected indentation of 4 spaces but found 2.
Loading history...
10
    path: path.join(__dirname, 'build'),
0 ignored issues
show
Expected indentation of 8 spaces but found 4.
Loading history...
11
    filename: 'jquery.nouislider-range-input.js',
0 ignored issues
show
Expected indentation of 8 spaces but found 4.
Loading history...
12
    libraryTarget: 'umd',
0 ignored issues
show
Expected indentation of 8 spaces but found 4.
Loading history...
13
  },
0 ignored issues
show
Expected indentation of 4 spaces but found 2.
Loading history...
14
15
  module: {
0 ignored issues
show
Expected indentation of 4 spaces but found 2.
Loading history...
16
    rules: [
0 ignored issues
show
Expected indentation of 8 spaces but found 4.
Loading history...
17
      {
0 ignored issues
show
Expected indentation of 12 spaces but found 6.
Loading history...
18
        test: /\.js$/,
0 ignored issues
show
Expected indentation of 16 spaces but found 8.
Loading history...
19
        exclude: /node_modules/,
0 ignored issues
show
Expected indentation of 16 spaces but found 8.
Loading history...
20
        loader: 'babel-loader',
0 ignored issues
show
Expected indentation of 16 spaces but found 8.
Loading history...
21
      },
0 ignored issues
show
Expected indentation of 12 spaces but found 6.
Loading history...
22
    ],
0 ignored issues
show
Expected indentation of 8 spaces but found 4.
Loading history...
23
  },
0 ignored issues
show
Expected indentation of 4 spaces but found 2.
Loading history...
24
25
  plugins: [
0 ignored issues
show
Expected indentation of 4 spaces but found 2.
Loading history...
26
    new webpack.BannerPlugin({
0 ignored issues
show
Expected indentation of 8 spaces but found 4.
Loading history...
27
      banner: `${pkg.name}\n${pkg.version}\nTested with jQuery 1.12+\n${pkg.repository.url}\nLicense: ${pkg.license}`,
0 ignored issues
show
Expected indentation of 12 spaces but found 6.
Loading history...
28
    }),
0 ignored issues
show
Expected indentation of 8 spaces but found 4.
Loading history...
29
    new UglifyJsPlugin({
0 ignored issues
show
Expected indentation of 8 spaces but found 4.
Loading history...
30
      beautify: true,
0 ignored issues
show
Expected indentation of 12 spaces but found 6.
Loading history...
31
      mangle: false,
0 ignored issues
show
Expected indentation of 12 spaces but found 6.
Loading history...
32
    }),
0 ignored issues
show
Expected indentation of 8 spaces but found 4.
Loading history...
33
  ],
0 ignored issues
show
Expected indentation of 4 spaces but found 2.
Loading history...
34
35
  externals: {
0 ignored issues
show
Expected indentation of 4 spaces but found 2.
Loading history...
36
    jquery: {
0 ignored issues
show
Expected indentation of 8 spaces but found 4.
Loading history...
37
      commonjs: 'jquery',
0 ignored issues
show
Expected indentation of 12 spaces but found 6.
Loading history...
38
      commonjs2: 'jquery',
0 ignored issues
show
Expected indentation of 12 spaces but found 6.
Loading history...
39
      amd: 'jquery',
0 ignored issues
show
Expected indentation of 12 spaces but found 6.
Loading history...
40
      root: 'jQuery',
0 ignored issues
show
Expected indentation of 12 spaces but found 6.
Loading history...
41
    },
0 ignored issues
show
Expected indentation of 8 spaces but found 4.
Loading history...
42
  },
0 ignored issues
show
Expected indentation of 4 spaces but found 2.
Loading history...
43
};
44