From b87fd9f95d7f4d7642e4de1c423b9170b6723be6 Mon Sep 17 00:00:00 2001 From: Andrei Neculau Date: Thu, 5 Mar 2020 21:39:39 +0100 Subject: [PATCH] lint --- configs/async-await.js | 2 ++ configs/babel.js | 2 ++ configs/eslint-comments.js | 2 ++ configs/firecloud.js | 2 ++ configs/fp.js | 2 ++ configs/import.js | 2 ++ configs/jasmine.js | 1 + configs/jest.js | 1 + configs/jsdoc.js | 2 ++ configs/lodash.js | 2 ++ configs/mocha.js | 1 + configs/no-null.js | 2 ++ configs/proper-arrows.js | 2 ++ configs/protractor.js | 1 + configs/typescript.js | 1 + configs/vue.js | 1 + 16 files changed, 26 insertions(+) diff --git a/configs/async-await.js b/configs/async-await.js index ea4cec7..b02ced8 100644 --- a/configs/async-await.js +++ b/configs/async-await.js @@ -1,8 +1,10 @@ let _pluginName = 'eslint-plugin-async-await'; let _pluginVsn = require('../package.json').peerDependencies[_pluginName]; + let _pluginActualVsn = require(`${_pluginName}/package.json`).version; let _semver = require('semver'); +// eslint-disable-next-line lodash/prefer-lodash-method if (!_semver.satisfies(_pluginActualVsn.replace(/.*#semver:/, ''), _pluginVsn.replace(/.*#semver:/, ''))) { throw new Error(`Expected ${_pluginName}@${_pluginVsn} but found version ${_pluginActualVsn} installed.`); } diff --git a/configs/babel.js b/configs/babel.js index 454c992..f23b5c1 100644 --- a/configs/babel.js +++ b/configs/babel.js @@ -1,8 +1,10 @@ let _pluginName = 'eslint-plugin-babel'; let _pluginVsn = require('../package.json').peerDependencies[_pluginName]; + let _pluginActualVsn = require(`${_pluginName}/package.json`).version; let _semver = require('semver'); +// eslint-disable-next-line lodash/prefer-lodash-method if (!_semver.satisfies(_pluginActualVsn.replace(/.*#semver:/, ''), _pluginVsn.replace(/.*#semver:/, ''))) { throw new Error(`Expected ${_pluginName}@${_pluginVsn} but found version ${_pluginActualVsn} installed.`); } diff --git a/configs/eslint-comments.js b/configs/eslint-comments.js index b0667d5..6dd0500 100644 --- a/configs/eslint-comments.js +++ b/configs/eslint-comments.js @@ -1,8 +1,10 @@ let _pluginName = 'eslint-plugin-eslint-comments'; let _pluginVsn = require('../package.json').peerDependencies[_pluginName]; + let _pluginActualVsn = require(`${_pluginName}/package.json`).version; let _semver = require('semver'); +// eslint-disable-next-line lodash/prefer-lodash-method if (!_semver.satisfies(_pluginActualVsn.replace(/.*#semver:/, ''), _pluginVsn.replace(/.*#semver:/, ''))) { throw new Error(`Expected ${_pluginName}@${_pluginVsn} but found version ${_pluginActualVsn} installed.`); } diff --git a/configs/firecloud.js b/configs/firecloud.js index f7d14b5..d61ab8d 100644 --- a/configs/firecloud.js +++ b/configs/firecloud.js @@ -1,8 +1,10 @@ let _pluginName = 'eslint-plugin-firecloud'; let _pluginVsn = require('../package.json').peerDependencies[_pluginName]; + let _pluginActualVsn = require(`${_pluginName}/package.json`).version; let _semver = require('semver'); +// eslint-disable-next-line lodash/prefer-lodash-method if (!_semver.satisfies(_pluginActualVsn.replace(/.*#semver:/, ''), _pluginVsn.replace(/.*#semver:/, ''))) { throw new Error(`Expected ${_pluginName}@${_pluginVsn} but found version ${_pluginActualVsn} installed.`); } diff --git a/configs/fp.js b/configs/fp.js index b4a010c..eb3823d 100644 --- a/configs/fp.js +++ b/configs/fp.js @@ -1,8 +1,10 @@ let _pluginName = 'eslint-plugin-fp'; let _pluginVsn = require('../package.json').peerDependencies[_pluginName]; + let _pluginActualVsn = require(`${_pluginName}/package.json`).version; let _semver = require('semver'); +// eslint-disable-next-line lodash/prefer-lodash-method if (!_semver.satisfies(_pluginActualVsn.replace(/.*#semver:/, ''), _pluginVsn.replace(/.*#semver:/, ''))) { throw new Error(`Expected ${_pluginName}@${_pluginVsn} but found version ${_pluginActualVsn} installed.`); } diff --git a/configs/import.js b/configs/import.js index 3108b44..b3e984b 100644 --- a/configs/import.js +++ b/configs/import.js @@ -1,8 +1,10 @@ let _pluginName = 'eslint-plugin-import'; let _pluginVsn = require('../package.json').peerDependencies[_pluginName]; + let _pluginActualVsn = require(`${_pluginName}/package.json`).version; let _semver = require('semver'); +// eslint-disable-next-line lodash/prefer-lodash-method if (!_semver.satisfies(_pluginActualVsn.replace(/.*#semver:/, ''), _pluginVsn.replace(/.*#semver:/, ''))) { throw new Error(`Expected ${_pluginName}@${_pluginVsn} but found version ${_pluginActualVsn} installed.`); } diff --git a/configs/jasmine.js b/configs/jasmine.js index ee8f108..e39670a 100644 --- a/configs/jasmine.js +++ b/configs/jasmine.js @@ -5,6 +5,7 @@ let _pluginVsn = '^2.10.1'; let _pluginActualVsn = require(`${_pluginName}/package.json`).version; let _semver = require('semver'); +// eslint-disable-next-line lodash/prefer-lodash-method if (!_semver.satisfies(_pluginActualVsn.replace(/.*#semver:/, ''), _pluginVsn.replace(/.*#semver:/, ''))) { throw new Error(`Expected ${_pluginName}@${_pluginVsn} but found version ${_pluginActualVsn} installed.`); } diff --git a/configs/jest.js b/configs/jest.js index 55975d4..90a2c65 100644 --- a/configs/jest.js +++ b/configs/jest.js @@ -5,6 +5,7 @@ let _pluginVsn = '^22.17.0'; let _pluginActualVsn = require(`${_pluginName}/package.json`).version; let _semver = require('semver'); +// eslint-disable-next-line lodash/prefer-lodash-method if (!_semver.satisfies(_pluginActualVsn.replace(/.*#semver:/, ''), _pluginVsn.replace(/.*#semver:/, ''))) { throw new Error(`Expected ${_pluginName}@${_pluginVsn} but found version ${_pluginActualVsn} installed.`); } diff --git a/configs/jsdoc.js b/configs/jsdoc.js index ca1bf98..3a4efe5 100644 --- a/configs/jsdoc.js +++ b/configs/jsdoc.js @@ -1,8 +1,10 @@ let _pluginName = 'eslint-plugin-jsdoc'; let _pluginVsn = require('../package.json').peerDependencies[_pluginName]; + let _pluginActualVsn = require(`${_pluginName}/package.json`).version; let _semver = require('semver'); +// eslint-disable-next-line lodash/prefer-lodash-method if (!_semver.satisfies(_pluginActualVsn.replace(/.*#semver:/, ''), _pluginVsn.replace(/.*#semver:/, ''))) { throw new Error(`Expected ${_pluginName}@${_pluginVsn} but found version ${_pluginActualVsn} installed.`); } diff --git a/configs/lodash.js b/configs/lodash.js index 77f6ace..c24f76f 100644 --- a/configs/lodash.js +++ b/configs/lodash.js @@ -1,8 +1,10 @@ let _pluginName = 'eslint-plugin-lodash'; let _pluginVsn = require('../package.json').peerDependencies[_pluginName]; + let _pluginActualVsn = require(`${_pluginName}/package.json`).version; let _semver = require('semver'); +// eslint-disable-next-line lodash/prefer-lodash-method if (!_semver.satisfies(_pluginActualVsn.replace(/.*#semver:/, ''), _pluginVsn.replace(/.*#semver:/, ''))) { throw new Error(`Expected ${_pluginName}@${_pluginVsn} but found version ${_pluginActualVsn} installed.`); } diff --git a/configs/mocha.js b/configs/mocha.js index c9618d9..491dca2 100644 --- a/configs/mocha.js +++ b/configs/mocha.js @@ -5,6 +5,7 @@ let _pluginVsn = '^6.1.1'; let _pluginActualVsn = require(`${_pluginName}/package.json`).version; let _semver = require('semver'); +// eslint-disable-next-line lodash/prefer-lodash-method if (!_semver.satisfies(_pluginActualVsn.replace(/.*#semver:/, ''), _pluginVsn.replace(/.*#semver:/, ''))) { throw new Error(`Expected ${_pluginName}@${_pluginVsn} but found version ${_pluginActualVsn} installed.`); } diff --git a/configs/no-null.js b/configs/no-null.js index d3b6f0a..e920125 100644 --- a/configs/no-null.js +++ b/configs/no-null.js @@ -1,8 +1,10 @@ let _pluginName = 'eslint-plugin-no-null'; let _pluginVsn = require('../package.json').peerDependencies[_pluginName]; + let _pluginActualVsn = require(`${_pluginName}/package.json`).version; let _semver = require('semver'); +// eslint-disable-next-line lodash/prefer-lodash-method if (!_semver.satisfies(_pluginActualVsn.replace(/.*#semver:/, ''), _pluginVsn.replace(/.*#semver:/, ''))) { throw new Error(`Expected ${_pluginName}@${_pluginVsn} but found version ${_pluginActualVsn} installed.`); } diff --git a/configs/proper-arrows.js b/configs/proper-arrows.js index 5135463..0b16695 100644 --- a/configs/proper-arrows.js +++ b/configs/proper-arrows.js @@ -7,9 +7,11 @@ let _pluginName = '@getify/eslint-plugin-proper-arrows'; let _pluginVsn = require('../package.json').peerDependencies[_pluginName]; + let _pluginActualVsn = require(`${_pluginName}/package.json`).version; let _semver = require('semver'); +// eslint-disable-next-line lodash/prefer-lodash-method if (!_semver.satisfies(_pluginActualVsn.replace(/.*#semver:/, ''), _pluginVsn.replace(/.*#semver:/, ''))) { throw new Error(`Expected ${_pluginName}@${_pluginVsn} but found version ${_pluginActualVsn} installed.`); } diff --git a/configs/protractor.js b/configs/protractor.js index 3d48189..c5845b0 100644 --- a/configs/protractor.js +++ b/configs/protractor.js @@ -5,6 +5,7 @@ let _pluginVsn = '^2.1.1'; let _pluginActualVsn = require(`${_pluginName}/package.json`).version; let _semver = require('semver'); +// eslint-disable-next-line lodash/prefer-lodash-method if (!_semver.satisfies(_pluginActualVsn.replace(/.*#semver:/, ''), _pluginVsn.replace(/.*#semver:/, ''))) { throw new Error(`Expected ${_pluginName}@${_pluginVsn} but found version ${_pluginActualVsn} installed.`); } diff --git a/configs/typescript.js b/configs/typescript.js index 711ddde..34417d5 100644 --- a/configs/typescript.js +++ b/configs/typescript.js @@ -5,6 +5,7 @@ let _pluginVsn = '^2.6.0'; let _pluginActualVsn = require(`${_pluginName}/package.json`).version; let _semver = require('semver'); +// eslint-disable-next-line lodash/prefer-lodash-method if (!_semver.satisfies(_pluginActualVsn.replace(/.*#semver:/, ''), _pluginVsn.replace(/.*#semver:/, ''))) { throw new Error(`Expected ${_pluginName}@${_pluginVsn} but found version ${_pluginActualVsn} installed.`); } diff --git a/configs/vue.js b/configs/vue.js index 586d3d8..0ca2ce9 100644 --- a/configs/vue.js +++ b/configs/vue.js @@ -5,6 +5,7 @@ let _pluginVsn = '^5.2.2'; let _pluginActualVsn = require(`${_pluginName}/package.json`).version; let _semver = require('semver'); +// eslint-disable-next-line lodash/prefer-lodash-method if (!_semver.satisfies(_pluginActualVsn.replace(/.*#semver:/, ''), _pluginVsn.replace(/.*#semver:/, ''))) { throw new Error(`Expected ${_pluginName}@${_pluginVsn} but found version ${_pluginActualVsn} installed.`); }