Skip to content

Commit

Permalink
backend linted successfully
Browse files Browse the repository at this point in the history
  • Loading branch information
eams1798 committed Jan 31, 2024
1 parent 157ff23 commit 7c8960b
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
5 changes: 0 additions & 5 deletions backend/src/utils/list_helper.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
import { IBlog, IFavBlog, IMostBlogs, IMostLikes } from "../interfaces/blogInterfaces";

const dummy = ( blogs: IBlog [] ): number => {
return 1;
};

const totalLikes = ( blogs: IBlog[] ): number => {
const reducer = ( sum: number, blog: IBlog ): number => {
return sum + blog.likes;
Expand Down Expand Up @@ -72,7 +68,6 @@ const mostLikes = ( blogs : IBlog[] ): IMostLikes[] => {
};

export {
dummy,
totalLikes,
favoriteBlogs,
mostBlogs,
Expand Down
1 change: 1 addition & 0 deletions backend/tests/teardown.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable no-undef */
module.exports = () => {
process.exit(0);
};
2 changes: 1 addition & 1 deletion backend/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@
"esModuleInterop": true,
"allowSyntheticDefaultImports": true
},
"include": ["src"]
"include": ["src"],
}

0 comments on commit 7c8960b

Please sign in to comment.