prevent eslint errors

This commit is contained in:
Timo Hocker 2020-05-13 15:59:38 +02:00
parent 0b484db04d
commit 7b46234832
2 changed files with 4 additions and 8 deletions

View File

@ -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

View File

@ -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