Skip to content

Commit

Permalink
fix: improve react code based on @eslint-react plugin
Browse files Browse the repository at this point in the history
Add some TODO for some legacy code
  • Loading branch information
ivan-dalmet committed Oct 21, 2024
1 parent 6b6f3b2 commit dea105c
Show file tree
Hide file tree
Showing 26 changed files with 523 additions and 74 deletions.
5 changes: 5 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"next/core-web-vitals",
"plugin:storybook/recommended"
],
"plugins": ["@eslint-react/eslint-plugin"],
"rules": {
"react/no-unescaped-entities": "off",
"@typescript-eslint/no-unused-vars": [
Expand All @@ -18,6 +19,10 @@
"sonarjs/prefer-immediate-return": "warn"
},
"overrides": [
{
"files": ["**/*.{ts,tsx}"],
"extends": ["plugin:@eslint-react/recommended-legacy"]
},
{
"files": ["./src/**/*.*"],
"rules": {
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@
"@babel/eslint-parser": "7.24.7",
"@babel/parser": "7.24.7",
"@chakra-ui/cli": "2.4.1",
"@eslint-react/eslint-plugin": "1.14.3",
"@next/eslint-plugin-next": "14.2.4",
"@playwright/test": "1.45.1",
"@storybook/addon-actions": "8.1.11",
Expand Down
Loading

0 comments on commit dea105c

Please sign in to comment.