[WEB-4161] fix: eslint config for library config file #7103
This commit is contained in:
parent
6216ad77f4
commit
731c4e8fcd
3 changed files with 171 additions and 34 deletions
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue