Skip to content

Commit

Permalink
[Task] #203 linter fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Type-Style committed Jan 25, 2025
1 parent ab0c253 commit 94c38d5
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 20 deletions.
38 changes: 20 additions & 18 deletions init/generatePassword.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,23 @@ const readline = require('readline');
const { crypt } = require('../dist/scripts/crypt');

// Set up readline to read input from the console
const rl = readline.createInterface({
input: process.stdin,
output: process.stdout
});


if (!process.env.KEY) {
console.error("KEY is missing! Please provide Environment Variable KEY. \nExample: KEY=your-key node ./init/generatePassword.js");
return;
}


// Prompt user for input
rl.question('Enter Password to be generated: ', async (input) => {
const cryptedPassword = await crypt(input);
console.log(cryptedPassword);
rl.close();
});
(function generatePassword() {
const rl = readline.createInterface({
input: process.stdin,
output: process.stdout
});


if (!process.env.KEY) {
console.error("KEY is missing! Please provide Environment Variable KEY. \nExample: KEY=your-key node ./init/generatePassword.js");
return;
}


// Prompt user for input
rl.question('Enter Password to be generated: ', async (input) => {
const cryptedPassword = await crypt(input);
console.log(cryptedPassword);
rl.close();
});
})();
2 changes: 1 addition & 1 deletion src/testData/createTestData.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ describe('test Data', () => {
const diff = {lat: end.lat - start.lat, lon: end.lon - start.lon};
const eta = Date.now() + 151 * 1000;

// eslint-disable-next-line jest/expect-expect
// eslint-disable-next-line
it('create ' + entries + ' entries', () => {
return new Promise<void>(done => {

Expand Down
4 changes: 3 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
],
"exclude": [
"node_modules",
"src/client/"
"src/client/",
"src/tests",
"src/testData",
],
"compilerOptions": {
"rootDir": "src",
Expand Down

0 comments on commit 94c38d5

Please sign in to comment.