Skip to content

Commit

Permalink
chore: eslint added react plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
JCaiDev authored and alcpereira committed Nov 5, 2024
1 parent e1caa6f commit 85cbb63
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
7 changes: 7 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ module.exports = {
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:react/recommended",
"plugin:react/jsx-runtime",
"plugin:react-hooks/recommended",
"prettier",
],
Expand All @@ -16,4 +18,9 @@ module.exports = {
{ allowConstantExport: true },
],
},
settings: {
react: {
version: "detect",
},
},
};
2 changes: 1 addition & 1 deletion src/components/Category/Category.css
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,4 @@
list-style-type: disc;
list-style-position: outside;
margin-left: 1em;
}
}
5 changes: 4 additions & 1 deletion src/components/Category/Category.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,10 @@ const Category = ({ data }: { data: Data[] }) => {
</div>
<ul className="category__lines">
{item.lines.map((line, line_index) => (
<li key={line_index} className={line.bulletPoint ? "category__bulletPoints" : ""}>
<li
key={line_index}
className={line.bulletPoint ? "category__bulletPoints" : ""}
>
{line.text}
</li>
))}
Expand Down

0 comments on commit 85cbb63

Please sign in to comment.