Skip to content

Commit

Permalink
Merge pull request #70 from abhayymishraa/featue_eslint_prettier
Browse files Browse the repository at this point in the history
Added Eslint and Prettier in the repository
  • Loading branch information
Pranav0-0Aggarwal authored Nov 20, 2024
2 parents 6872eb3 + 108a9e2 commit 805cdcc
Show file tree
Hide file tree
Showing 70 changed files with 7,928 additions and 2,692 deletions.
3 changes: 3 additions & 0 deletions frontend/.eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_modules/
dist/
env.d.ts
18 changes: 18 additions & 0 deletions frontend/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"extends": ["react-app", "eslint-config-prettier"],
"rules": {
// Accessibility rules
"jsx-a11y/click-events-have-key-events": "off",
"jsx-a11y/no-static-element-interactions": "off",
"jsx-a11y/img-redundant-alt": "off",
"jsx-a11y/no-noninteractive-element-interactions": "off",
"jsx-a11y/anchor-is-valid": "off",
"jsx-a11y/anchor-has-content": "off",
"jsx-a11y/media-has-caption": "off",
// React Hook rules
"react-hooks/exhaustive-deps": "off",
// Temporarily turn warnings into errors to suppress them
"no-warning-comments": ["error", { "terms": ["todo", "fixme"], "location": "anywhere" }]
}
}

2 changes: 2 additions & 0 deletions frontend/.prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules/
dist/
7 changes: 7 additions & 0 deletions frontend/.prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"semi": true,
"singleQuote": true,
"tabWidth": 2,
"trailingComma": "all",
"plugins": ["prettier-plugin-tailwindcss"]
}
2 changes: 1 addition & 1 deletion frontend/components.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@
"components": "@/components",
"utils": "@/lib/utils"
}
}
}
Loading

0 comments on commit 805cdcc

Please sign in to comment.