From a03f1dc2ac25579df30e8cb59d2703110c3e564d Mon Sep 17 00:00:00 2001 From: MohamedBassem Date: Wed, 13 Mar 2024 22:37:41 +0000 Subject: lint: Lint and format the entire repo with the new configs --- tooling/eslint/base.js | 2 ++ tooling/eslint/package.json | 2 +- tooling/eslint/react.js | 3 +++ 3 files changed, 6 insertions(+), 1 deletion(-) (limited to 'tooling/eslint') diff --git a/tooling/eslint/base.js b/tooling/eslint/base.js index d1f6296c..2bc62548 100644 --- a/tooling/eslint/base.js +++ b/tooling/eslint/base.js @@ -28,6 +28,8 @@ const config = { { checksVoidReturn: { attributes: false } }, ], "import/consistent-type-specifier-style": ["error", "prefer-top-level"], + "@typescript-eslint/no-floating-promises": "off", + "@typescript-eslint/unbound-method": "off", }, ignorePatterns: [ "**/*.config.js", diff --git a/tooling/eslint/package.json b/tooling/eslint/package.json index 5329f6d2..6b156d5d 100644 --- a/tooling/eslint/package.json +++ b/tooling/eslint/package.json @@ -39,4 +39,4 @@ ] }, "prettier": "@hoarder/prettier-config" -} \ No newline at end of file +} diff --git a/tooling/eslint/react.js b/tooling/eslint/react.js index 618e1816..38b735b9 100644 --- a/tooling/eslint/react.js +++ b/tooling/eslint/react.js @@ -7,6 +7,9 @@ const config = { ], rules: { "react/prop-types": "off", + "jsx-a11y/no-autofocus": "off", + "jsx-a11y/label-has-associated-control": "off", + "react-hooks/exhaustive-deps": "off", }, globals: { React: "writable", -- cgit v1.2.3-70-g09d2