Add ESLint to gulp scripts (#9259)

* Remove gulp/* and gulpfile from ESLint ignores

* Update .eslintrc in local gulp folder

* Start work on refactoring gulp files

* add radix

* Add line-specific eslint exceptions

* removed redundant eslint file for gulp

* add more exceptions

* Add exceptions to main gulpfile.js
This commit is contained in:
Lachlan Heywood
2017-10-25 04:45:03 -04:00
committed by Matteo Pagliazzi
parent 638259b885
commit 9736ef0d25
11 changed files with 256 additions and 265 deletions

View File

@@ -8,10 +8,10 @@ const BOOSTRAP_NEW_CONFIG_PATH = 'website/client/assets/scss/bootstrap_config.sc
const BOOTSTRAP_ORIGINAL_CONFIG_PATH = 'node_modules/bootstrap/scss/_custom.scss';
// https://stackoverflow.com/a/14387791/969528
function copyFile(source, target, cb) {
function copyFile (source, target, cb) {
let cbCalled = false;
function done(err) {
function done (err) {
if (!cbCalled) {
cb(err);
cbCalled = true;
@@ -33,4 +33,4 @@ gulp.task('bootstrap', (done) => {
BOOTSTRAP_ORIGINAL_CONFIG_PATH,
done,
);
});
});