Skip to content

Task 2: ASYNC DEVELOPMENT#2

Open
aleksandra-sturova wants to merge 3 commits intomasterfrom
task-2-async
Open

Task 2: ASYNC DEVELOPMENT#2
aleksandra-sturova wants to merge 3 commits intomasterfrom
task-2-async

Conversation

@aleksandra-sturova
Copy link
Owner

No description provided.

"description": "",
"main": "./dist/app.js",
"scripts": {
"lint:eslint": "eslint --fix --ext=.js ./src/",

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Export ext into eslint's config file, please

FYI: configuring

},
"homepage": "https://github.com/sasha-klimashevich/node-js-course#readme",
"dependencies": {
"lodash": "^4.17.10",

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove ^, please

"dependencies": {
"lodash": "^4.17.10",
"nodemon": "1.17.3",
"papaparse": "^4.4.0"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

^^

}

watch(path, timeout) {
const watcherFunc = () => {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Export this function out from watch method, please

Why? Because it will better for further testing.

const watcherFunc = () => {
const currentFiles = fs.readdirSync(path);

if (currentFiles && currentFiles.length !== this.files.length) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Save result of this condition into varibale for simplify reading, please

@vladislavkovaliov
Copy link

Write comment on all function, please

comment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants