Skip to content

Commit

Permalink
fix remaining eslint errors manually
Browse files Browse the repository at this point in the history
  • Loading branch information
mvorisek committed Dec 4, 2022
1 parent f372c1a commit a9ebbcc
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/definitions/modules/calendar.js
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@
cell.data(metadata.date, cellDate);
let adjacent = isDay && cellDate.getMonth() !== ((month + 12) % 12);
let disabled = (!settings.selectAdjacentDays && adjacent) || !module.helper.isDateInRange(cellDate, mode) || settings.isDisabled(cellDate, mode) || module.helper.isDisabled(cellDate, mode) || !module.helper.isEnabled(cellDate, mode);
var eventDate;
let eventDate = null;
if (disabled) {
let disabledDate = module.helper.findDayAsObject(cellDate, mode, settings.disabledDates);
if (disabledDate !== null && disabledDate[metadata.message]) {
Expand Down
4 changes: 2 additions & 2 deletions tasks/admin/distributions/create.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ module.exports = function (callback) {

// get files for meteor
gatherFiles = function (dir) {
var
dir = dir || path.resolve('.'),
dir = dir || path.resolve('.');
let
list = fs.readdirSync(dir),
omitted = [
'.git',
Expand Down
2 changes: 1 addition & 1 deletion tasks/config/project/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ let
module.exports = {

getPath: function (file, directory) {
var
let
configPath,
walk = function (directory) {
let
Expand Down
4 changes: 2 additions & 2 deletions tasks/config/project/install.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ module.exports = {

// checks if files are in a PM directory
getPackageManager: function (directory) {
var
let
// returns last matching result (avoid sub-module detection)
walk = function (directory) {
let
Expand Down Expand Up @@ -133,7 +133,7 @@ module.exports = {

// checks if files is PMed submodule
isSubModule: function (directory) {
var
let
moduleFolders = 0,
walk = function (directory) {
let
Expand Down
4 changes: 2 additions & 2 deletions tasks/docs/metadata.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ function parser(file, callback) {
}

try {
var
let
/** @type {string} */
text = String(file.contents.toString('utf8')),
lines = text.split('\n'),
Expand Down Expand Up @@ -117,7 +117,7 @@ function parser(file, callback) {
// console.log(meta);
}
} catch (error) {
console.log(error, filename);
console.log(error, file.path);
}

callback(null, file);
Expand Down

0 comments on commit a9ebbcc

Please sign in to comment.