Skip to content

Commit 23b9cc4

Browse files
committed
Removed some ESLint redundant warnings on shacdn/ui components
1 parent ce22b13 commit 23b9cc4

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.eslintrc.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,16 @@
77
"JSX": "readonly",
88
"NodeJS": "readonly"
99
},
10+
"overrides": [
11+
{
12+
// https://github.com/shadcn-ui/ui/issues/120#issuecomment-1828081539
13+
"files": ["**/components/ui/*.tsx"],
14+
"rules": {
15+
"react/prop-types": "off",
16+
"@typescript-eslint/no-empty-object-type": "off"
17+
}
18+
}
19+
],
1020
"extends": ["next/core-web-vitals", "plugin:@typescript-eslint/recommended", "plugin:@typescript-eslint/strict", "plugin:jsx-a11y/strict", "airbnb"],
1121
"plugins": ["@typescript-eslint"],
1222
"parser": "@typescript-eslint/parser",

0 commit comments

Comments
 (0)