From 598ed36dd5b2b8f490b06108ddb0d76a914120f3 Mon Sep 17 00:00:00 2001 From: Myles Domingo Date: Mon, 4 Oct 2021 19:31:55 -0700 Subject: [PATCH] fixed linter rules, ignore package.json (#19) --- .eslintrc.json | 1 + .gitignore | 1 + src/database/firebase.tsx | 6 ++++-- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index ed57bca..cc685df 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -37,6 +37,7 @@ "react/jsx-props-no-spreading": "off", "no-console": ["error", { "allow": ["warn"] }], "object-curly-newline": "off", + "arrow-parens": [2, "as-needed"], "no-unused-expressions": [ "error", { diff --git a/.gitignore b/.gitignore index 5b2de3b..68b244e 100644 --- a/.gitignore +++ b/.gitignore @@ -11,6 +11,7 @@ web-build/ .env yarn-error.log coverage/ +package.json # macOS .DS_Store diff --git a/src/database/firebase.tsx b/src/database/firebase.tsx index 08a5494..cb07524 100644 --- a/src/database/firebase.tsx +++ b/src/database/firebase.tsx @@ -83,7 +83,8 @@ export const setTree = async (tree: Tree) => { }; /** - * getComment queries the `comments` table and returns a Comment if the ID is found and an empty entry otherwise. + * getComment queries the `comments` table and + * returns a Comment if the ID is found and an empty entry otherwise. */ export const getComment = async (id: string): Promise => { try { @@ -110,7 +111,8 @@ export const setComment = async (comment: Comment) => { }; /** - * getAdditional queries the `additional` table and returns an Additional if the ID is found and an empty entry otherwise. + * getAdditional queries the `additional` table and + * returns an Additional if the ID is found and an empty entry otherwise. */ export const getAdditional = async (id: string): Promise => { try {