2 Commits 34a7c54885 ... e5a410d973

Auteur SHA1 Message Date
  Michael Zitzmann e5a410d973 Initial commit il y a 5 ans
  Michael Zitzmann 34a7c54885 Initial commit il y a 5 ans
3 fichiers modifiés avec 7 ajouts et 11 suppressions
  1. 4 4
      src/js/d3/grid.js
  2. 1 1
      src/js/d3/main.js
  3. 2 6
      tasks/lint.js

+ 4 - 4
src/js/d3/grid.js

@@ -11,8 +11,8 @@ export default (selection, scales, options) => {
     .attr('transform', `translate(0, ${options.heightWithoutMargin})`)
     .call(
       addGridlinesX()
-      .tickSize(-options.heightWithoutMargin)
-      .tickFormat('')
+        .tickSize(-options.heightWithoutMargin)
+        .tickFormat('')
     );
 
   // add the Y gridlines
@@ -20,8 +20,8 @@ export default (selection, scales, options) => {
     .attr('class', `grid  grid--y  mod${options.module}__grid--y`)
     .call(
       addGridlinesY()
-      .tickSize(-options.widthWithoutMargin)
-      .tickFormat('')
+        .tickSize(-options.widthWithoutMargin)
+        .tickFormat('')
     );
 
 };

+ 1 - 1
src/js/d3/main.js

@@ -104,7 +104,7 @@ export default () => {
 
       thesolution.sort((a, b) => a.x - b.x);
 
-      // FIXME: (12. August 2019) Hack for incorrect first data point, needs to be fixed in the database when Uwe finished the db ui
+      // Hack for incorrect first data point, needs to be fixed in the database when the db ui is finished
       if (thesolution[0].x === 2 && thesolution[0].y === 5) {
         thesolution.shift();
       }

+ 2 - 6
tasks/lint.js

@@ -28,12 +28,8 @@ const lintJs = (cb) => {
     .pipe(plumber())
     .pipe(cached('eslint'))
     .pipe(eslint(config.eslint[target]))
-    .pipe(gulpif(!isProduction, eslint.format()))
-    .pipe(gulpif(isProduction, eslint.formatEach('stylish', process.stdout)))
-    .pipe(gulpif(isProduction, eslint.failOnError()))
-    .on('data', gulpif(!isProduction, (file) => {
-      if (file.eslint.messages && file.eslint.messages.length) gulp.fail = true;
-    }));
+    .pipe(eslint.format())
+    .pipe(eslint.failAfterError());
 
   cb();
 };