Skip to content

Commit

Permalink
Fix the linter issues + add vite config in the ignore list.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mgrdich committed May 7, 2024
1 parent 395b469 commit 35690e0
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
3 changes: 2 additions & 1 deletion frontend/.eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
"ignorePatterns": [
"dist",
"tailwind.config.js",
"postcss.config.js"
"postcss.config.js",d
"vite.config.ts"
],
"parser": "@typescript-eslint/parser",
"plugins": [
Expand Down
1 change: 0 additions & 1 deletion frontend/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite + React + TS</title>
</head>
Expand Down
1 change: 0 additions & 1 deletion frontend/public/vite.svg

This file was deleted.

4 changes: 2 additions & 2 deletions frontend/src/ui/TextInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import { ComponentProps } from "react";

interface TextInputProps extends ComponentProps<"textarea"> {}

function TextInput(props: TextInputProps) {
return <textarea {...props} />;
function TextInput({ ...rest }: TextInputProps) {
return <textarea {...rest} />;

Check failure on line 6 in frontend/src/ui/TextInput.tsx

View workflow job for this annotation

GitHub Actions / lint

Prop spreading is forbidden
}

export default TextInput;

0 comments on commit 35690e0

Please sign in to comment.