prevent eslint errors
This commit is contained in:
parent
0b484db04d
commit
7b46234832
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user