Skip to content

Commit

Permalink
chore: update ESLint configuration for function spacing rules & lint …
Browse files Browse the repository at this point in the history
…code
  • Loading branch information
arhamkhnz committed Dec 31, 2024
1 parent c2ee29b commit ef9b7e6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,14 @@ export default [
// Whitespace and Punctuation (Style Rules)
"no-trailing-spaces": "error",
"no-multiple-empty-lines": ["error", { max: 1, maxEOF: 1 }],
"space-before-function-paren": ["error", "never"],
"space-before-function-paren": [
"error",
{
anonymous: "always",
named: "never",
asyncArrow: "always",
},
],
"space-in-parens": ["error", "never"],
"array-bracket-spacing": ["error", "never"],
"object-curly-spacing": ["error", "always"],
Expand Down
2 changes: 1 addition & 1 deletion src/app/auth/login/components/LoginForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export default function LoginForm() {
},
});

const onSubmit = async(data: z.infer<typeof FormSchema>) => {
const onSubmit = async (data: z.infer<typeof FormSchema>) => {
setIsLoading(true);
toast({
title: "Login successful",
Expand Down

0 comments on commit ef9b7e6

Please sign in to comment.