Browse Source

Fix ESLint errors

master
Lyubomir Marinov 9 years ago
parent
commit
f72e7ffbc2
1 changed files with 13 additions and 11 deletions
  1. 13
    11
      webpack.config.js

+ 13
- 11
webpack.config.js View File

8
 
8
 
9
 var aui_css = __dirname + '/node_modules/@atlassian/aui/dist/aui/css/';
9
 var aui_css = __dirname + '/node_modules/@atlassian/aui/dist/aui/css/';
10
 var minimize
10
 var minimize
11
-    = process.argv.indexOf('-p') != -1
12
-        || process.argv.indexOf('--optimize-minimize') != -1;
11
+    = process.argv.indexOf('-p') !== -1
12
+        || process.argv.indexOf('--optimize-minimize') !== -1;
13
 var node_modules = __dirname + '/node_modules/';
13
 var node_modules = __dirname + '/node_modules/';
14
 var plugins = [
14
 var plugins = [
15
     new HasteResolverPlugin()
15
     new HasteResolverPlugin()
32
 var config = {
32
 var config = {
33
     devtool: 'source-map',
33
     devtool: 'source-map',
34
     module: {
34
     module: {
35
-        loaders: [{
35
+        loaders: [ {
36
             // Transpile ES2015 (aka ES6) to ES5. Accept the JSX syntax by React
36
             // Transpile ES2015 (aka ES6) to ES5. Accept the JSX syntax by React
37
             // as well.
37
             // as well.
38
 
38
 
50
                 ].map(require.resolve)
50
                 ].map(require.resolve)
51
             },
51
             },
52
             test: /\.jsx?$/
52
             test: /\.jsx?$/
53
-        },{
53
+        }, {
54
             // Expose jquery as the globals $ and jQuery because it is expected
54
             // Expose jquery as the globals $ and jQuery because it is expected
55
             // to be available in such a form by multiple jitsi-meet
55
             // to be available in such a form by multiple jitsi-meet
56
             // dependencies including AUI, lib-jitsi-meet.
56
             // dependencies including AUI, lib-jitsi-meet.
57
 
57
 
58
             loader: 'expose?$!expose?jQuery',
58
             loader: 'expose?$!expose?jQuery',
59
             test: /\/node_modules\/jquery\/.*\.js$/
59
             test: /\/node_modules\/jquery\/.*\.js$/
60
-        },{
60
+        }, {
61
             // Disable AMD for the Strophe.js library or its imports will fail
61
             // Disable AMD for the Strophe.js library or its imports will fail
62
             // at runtime.
62
             // at runtime.
63
 
63
 
64
             loader: 'imports?define=>false&this=>window',
64
             loader: 'imports?define=>false&this=>window',
65
             test: strophe
65
             test: strophe
66
-        },{
66
+        }, {
67
             // Allow CSS to be imported into JavaScript.
67
             // Allow CSS to be imported into JavaScript.
68
 
68
 
69
             loaders: [
69
             loaders: [
71
                 'css'
71
                 'css'
72
             ],
72
             ],
73
             test: /\.css$/
73
             test: /\.css$/
74
-        },{
74
+        }, {
75
             // Emit the static assets of AUI such as images that are referenced
75
             // Emit the static assets of AUI such as images that are referenced
76
             // by CSS into the output path.
76
             // by CSS into the output path.
77
 
77
 
82
                 name: '[path][name].[ext]'
82
                 name: '[path][name].[ext]'
83
             },
83
             },
84
             test: /\.(gif|png|svg)$/
84
             test: /\.(gif|png|svg)$/
85
-        },{
86
-            //Adds the ability to import json files.
85
+        }, {
86
+            // Enable the import of JSON files.
87
+
87
             loader: 'json',
88
             loader: 'json',
88
             exclude: node_modules,
89
             exclude: node_modules,
89
             test: /\.json$/
90
             test: /\.json$/
90
-        }],
91
+        } ],
91
         noParse: [
92
         noParse: [
93
+
92
             // Do not parse the files of the Strophe.js library or at least
94
             // Do not parse the files of the Strophe.js library or at least
93
             // parts of the properties of the Strophe global variable will be
95
             // parts of the properties of the Strophe global variable will be
94
             // missing and strophejs-plugins will fail at runtime.
96
             // missing and strophejs-plugins will fail at runtime.
122
             'jQuery-Impromptu':
124
             'jQuery-Impromptu':
123
                 'jQuery-Impromptu/dist/jquery-impromptu'
125
                 'jQuery-Impromptu/dist/jquery-impromptu'
124
                     + (minimize ? '.min' : '')
126
                     + (minimize ? '.min' : '')
125
-                    + '.js',
127
+                    + '.js'
126
         },
128
         },
127
         packageAlias: 'browser'
129
         packageAlias: 'browser'
128
     }
130
     }

Loading…
Cancel
Save