[WEB-4161] fix: eslint config for library config file #7103

This commit is contained in:
Aaryan Khandelwal 2025-05-23 15:29:37 +05:30 committed by GitHub
parent 6216ad77f4
commit 731c4e8fcd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 171 additions and 34 deletions

View file

@ -5,7 +5,7 @@ const project = resolve(process.cwd(), "tsconfig.json");
/** @type {import("eslint").Linter.Config} */
module.exports = {
extends: ["prettier", "plugin:@typescript-eslint/recommended"],
plugins: ["react", "@typescript-eslint", "import"],
plugins: ["react", "react-hooks", "@typescript-eslint", "import"],
globals: {
React: true,
JSX: true,
@ -38,7 +38,7 @@ module.exports = {
"react/self-closing-comp": ["error", { component: true, html: true }],
"react/jsx-boolean-value": "error",
"react/jsx-no-duplicate-props": "error",
// "react-hooks/exhaustive-deps": "warn",
"react-hooks/exhaustive-deps": "warn",
"@typescript-eslint/no-unused-expressions": "warn",
"@typescript-eslint/no-unused-vars": ["warn"],
"@typescript-eslint/no-explicit-any": "warn",