js code: fix eslint errors

master
Will Roberts 8 years ago
parent ba03230789
commit 35e72ea9f7
  1. 3
      {{cookiecutter.app_name}}/.eslintrc
  2. 6
      {{cookiecutter.app_name}}/assets/js/main.js
  3. 2
      {{cookiecutter.app_name}}/assets/js/plugins.js
  4. 6
      {{cookiecutter.app_name}}/assets/js/script.js

@ -14,6 +14,7 @@
"node": true
},
"globals": {
"__dirname": true
"__dirname": true,
"jQuery": true
}
}

@ -5,9 +5,9 @@
*/
// JavaScript modules
require("jquery");
require("font-awesome-webpack");
require("bootstrap");
require('jquery');
require('font-awesome-webpack');
require('bootstrap');
// Your own code
require('./plugins.js');

@ -1 +1 @@
// place any jQuery/helper plugins in here, instead of separate, slower script files.
// place any jQuery/helper plugins in here, instead of separate, slower script files.

@ -1,5 +1,3 @@
(function($, window) {
(function myfunc($, window) { // eslint-disable-line no-unused-vars
}).call(this, jQuery, window);
}.call(this, jQuery, window));

Loading…
Cancel
Save