From 7b46234832a22000153dd15faa9dc5f213af7e48 Mon Sep 17 00:00:00 2001 From: Timo Hocker Date: Wed, 13 May 2020 15:59:38 +0200 Subject: [PATCH] prevent eslint errors --- asset_jenkins.js | 6 ++---- jenkins.js | 6 ++---- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/asset_jenkins.js b/asset_jenkins.js index b0b7413..665c98c 100644 --- a/asset_jenkins.js +++ b/asset_jenkins.js @@ -7,9 +7,8 @@ 'use strict'; -module.exports = `/* eslint-disable no-process-exit */ -/* eslint-disable no-console */ -/* eslint-disable no-sync */ +module.exports = `/* eslint-disable */ + 'use strict'; const fs = require ('fs'); @@ -41,7 +40,6 @@ function major (version) { if (fs.existsSync ('README.md')) { const readme = fs.readFileSync ('README.md', 'utf-8'); - // eslint-disable-next-line prefer-named-capture-group const version = (/version: ([0-9.]+)/ui).exec (readme); if ( version === null diff --git a/jenkins.js b/jenkins.js index a9ca3a3..0cd1194 100644 --- a/jenkins.js +++ b/jenkins.js @@ -1,6 +1,5 @@ -/* eslint-disable no-process-exit */ -/* eslint-disable no-console */ -/* eslint-disable no-sync */ +/* eslint-disable */ + 'use strict'; const fs = require ('fs'); @@ -32,7 +31,6 @@ function major (version) { if (fs.existsSync ('README.md')) { const readme = fs.readFileSync ('README.md', 'utf-8'); - // eslint-disable-next-line prefer-named-capture-group const version = (/version: ([0-9.]+)/ui).exec (readme); if ( version === null