Skip to content

Commit

Permalink
eslint-disable no-console
Browse files Browse the repository at this point in the history
  • Loading branch information
Bobbykumar706584 committed May 4, 2022
1 parent 0060db3 commit 52eae1b
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 14 deletions.
9 changes: 4 additions & 5 deletions renderer/src/components/Sync/Dropzone/Dropzone.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable no-console */
import React from 'react';
import PropTypes from 'prop-types';
import * as logger from '../../../logger';
Expand All @@ -8,26 +7,26 @@ const DragAndDrop = (props) => {
logger.debug('Dropzone.js', 'calling handleDragEnter event');
e.preventDefault();
// e.stopPropagation();
console.log('handleDragEnter');
logger.info('Dropzone.js', 'handleDragEnter');
};
const handleDragLeave = (e) => {
logger.debug('Dropzone.js', 'calling handleDragLeave event');
e.preventDefault();
// e.stopPropagation();
console.log('handleDragLeave');
logger.info('Dropzone.js', 'handleDragLeave');
};
const handleDragOver = (e) => {
logger.debug('Dropzone.js', 'calling handleDragOver event');
e.preventDefault();
// e.stopPropagation();
console.log('handleDragOver');
logger.info('Dropzone.js', 'handleDragOver');
};

const handleDrop = (e) => {
logger.debug('Dropzone.js', 'calling handleDrop event');
e.preventDefault();
// e.stopPropagation();
console.log('handleDrop', props);
logger.info('handleDrop', props);
// eslint-disable-next-line react/destructuring-assignment
props.dropped(true);
};
Expand Down
1 change: 0 additions & 1 deletion renderer/src/core/editor/writeToParse.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable no-console */
import Parse from 'parse';

const writeToParse = async ({
Expand Down
10 changes: 5 additions & 5 deletions renderer/src/core/export/exportHTML.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* eslint-disable no-console */
import * as logger from '../../logger';
// id, currentBook, db, direction, column, currentTrans
import { readIngredients } from '../reference/readIngredients';
import {
Expand Down Expand Up @@ -105,9 +105,9 @@ export const exportHTML = () => {
const fs = window.require('fs');
fs.writeFile(filepath, inlineData, (err) => {
if (err) {
console.log('dynamic-msg-went-wrong');
logger.info('dynamic-msg-went-wrong', err);
} else {
console.log('exported successfully');
logger.info('exported successfully', err);
}
});
});
Expand Down Expand Up @@ -167,9 +167,9 @@ export const exportHTML = () => {
const fs = window.require('fs');
fs.writeFile(filepath, inlineData, (err) => {
if (err) {
console.log('dynamic-msg-went-wrong');
logger.info('dynamic-msg-went-wrong', err);
} else {
console.log('exported successfully');
logger('exported successfully', err);
}
});
});
Expand Down
3 changes: 1 addition & 2 deletions renderer/src/layouts/projects/ExportProjectPopUp.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable no-console */
import React, {
useRef, Fragment,
} from 'react';
Expand Down Expand Up @@ -51,7 +50,7 @@ export default function ExportProjectPopUp(props) {
updateTranslationSB(value.username, project)
.then((updated) => {
logger.debug('ExportProjectPopUp.js', 'Updated Scripture burrito');
console.log(updated);
logger.info('ExportProjectPopUp.js', updated);
const data = fs.readFileSync(path.join(folder, 'metadata.json'), 'utf-8');
const success = validate('metadata', path.join(folder, 'metadata.json'), data);
if (success) {
Expand Down
1 change: 0 additions & 1 deletion renderer/src/util/validate.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable no-console */
import * as logger from '../logger';

const Ajv = require('ajv');
Expand Down

0 comments on commit 52eae1b

Please sign in to comment.