Skip to content
This repository has been archived by the owner on Dec 5, 2024. It is now read-only.

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
andreineculau committed Mar 5, 2020
1 parent afa9740 commit b87fd9f
Show file tree
Hide file tree
Showing 16 changed files with 26 additions and 0 deletions.
2 changes: 2 additions & 0 deletions configs/async-await.js
Original file line number Diff line number Diff line change
@@ -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.`);
}
Expand Down
2 changes: 2 additions & 0 deletions configs/babel.js
Original file line number Diff line number Diff line change
@@ -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.`);
}
Expand Down
2 changes: 2 additions & 0 deletions configs/eslint-comments.js
Original file line number Diff line number Diff line change
@@ -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.`);
}
Expand Down
2 changes: 2 additions & 0 deletions configs/firecloud.js
Original file line number Diff line number Diff line change
@@ -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.`);
}
Expand Down
2 changes: 2 additions & 0 deletions configs/fp.js
Original file line number Diff line number Diff line change
@@ -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.`);
}
Expand Down
2 changes: 2 additions & 0 deletions configs/import.js
Original file line number Diff line number Diff line change
@@ -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.`);
}
Expand Down
1 change: 1 addition & 0 deletions configs/jasmine.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.`);
}
Expand Down
1 change: 1 addition & 0 deletions configs/jest.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.`);
}
Expand Down
2 changes: 2 additions & 0 deletions configs/jsdoc.js
Original file line number Diff line number Diff line change
@@ -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.`);
}
Expand Down
2 changes: 2 additions & 0 deletions configs/lodash.js
Original file line number Diff line number Diff line change
@@ -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.`);
}
Expand Down
1 change: 1 addition & 0 deletions configs/mocha.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.`);
}
Expand Down
2 changes: 2 additions & 0 deletions configs/no-null.js
Original file line number Diff line number Diff line change
@@ -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.`);
}
Expand Down
2 changes: 2 additions & 0 deletions configs/proper-arrows.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.`);
}
Expand Down
1 change: 1 addition & 0 deletions configs/protractor.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.`);
}
Expand Down
1 change: 1 addition & 0 deletions configs/typescript.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.`);
}
Expand Down
1 change: 1 addition & 0 deletions configs/vue.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.`);
}
Expand Down

0 comments on commit b87fd9f

Please sign in to comment.