Skip to content

Commit

Permalink
111
Browse files Browse the repository at this point in the history
  • Loading branch information
stasssssi committed Jan 29, 2024
1 parent a860e67 commit bcba7b7
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 58 deletions.
6 changes: 1 addition & 5 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
env:
node: true
es2021: true
extends:
- 'airbnb-base'
parserOptions:
ecmaVersion: latest
sourceType: module
rules:
no-console: 0
import/extensions: 0
rules: {}
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,7 @@ publish:
npm publish --dry-run

lint:
npx eslint .
npx eslint

lint-fix:
npx eslint . --fix
5 changes: 0 additions & 5 deletions bin/brain-even.js

This file was deleted.

4 changes: 2 additions & 2 deletions bin/brain-games.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env node
import greeting from '../src/cli.js';
import greeting from "../src/cli";

greeting();
greeting;
1 change: 1 addition & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

40 changes: 0 additions & 40 deletions src/brain-even.js

This file was deleted.

10 changes: 5 additions & 5 deletions src/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import readlineSync from 'readline-sync';

const greeting = () => {
console.log('Welcome to the Brain Games!');
const name = readlineSync.question('May I have your name? ');
console.log(`Hello, ${name}!`);
return name;
};
const userName = readlineSync.question('May I have your name? ');
console.log(`Hello, ${userName}!`);
return userName;
}

export default greeting;
export default greeting;

0 comments on commit bcba7b7

Please sign in to comment.