Skip to content

Commit

Permalink
fix: Added react linters
Browse files Browse the repository at this point in the history
  • Loading branch information
stickyPiston committed May 20, 2024
1 parent f4a6b00 commit 1b1f1e0
Show file tree
Hide file tree
Showing 3 changed files with 2,251 additions and 1,012 deletions.
14 changes: 11 additions & 3 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,21 @@
* (Department of Information and Computing Sciences)
*/

import { FlatCompat } from "@eslint/eslintrc";
import baseConfig from "@graphpolaris/ts-configs/eslint";

const compat = new FlatCompat();
import react from "eslint-plugin-react/configs/all.js";
import { FlatCompat } from "@eslint/eslintrc";

export default [
...baseConfig,
{
...react,
settings: {
react: {
version: "detect"
}
}
},
...new FlatCompat().extends("plugin:react-hooks/recommended"),
{
rules: {
"@typescript-eslint/no-explicit-any": "off",
Expand Down
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
"@types/react": "^18.2.74",
"eslint": "^8.57.0",
"eslint-plugin-perfectionist": "^2.10.0",
"eslint-plugin-react": "^7.34.1",
"eslint-plugin-react-hooks": "^4.6.2",
"eslint-plugin-unicorn": "^52.0.0",
"prettier": "^3.2.5",
"typedoc": "^0.25.13",
Expand Down
Loading

0 comments on commit 1b1f1e0

Please sign in to comment.