Skip to content

Commit 05da90a

Browse files
committed
chore: add ts:recommended, move jsx-no-undef to mdx only
1 parent cb14cc0 commit 05da90a

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

.eslintrc.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
{
1111
"files": ["**/*.ts?(x)"],
1212
"plugins": ["@typescript-eslint", "no-relative-import-paths"],
13+
"extends": ["plugin:@typescript-eslint/recommended"],
1314
"rules": {
1415
"@typescript-eslint/consistent-type-imports": "error",
15-
"@typescript-eslint/no-unused-vars": "error",
1616
"no-relative-import-paths/no-relative-import-paths": [
1717
"warn",
1818
{
@@ -24,12 +24,14 @@
2424
},
2525
{
2626
"files": ["**/*.md?(x)"],
27-
"extends": ["plugin:mdx/recommended"]
27+
"extends": ["plugin:mdx/recommended"],
28+
"rules": {
29+
"react/jsx-no-undef": "off"
30+
}
2831
},
2932
{
3033
"files": ["**/*.{mdx,tsx}"],
3134
"rules": {
32-
"react/jsx-no-undef": "off",
3335
"react/function-component-definition": [
3436
"error",
3537
{

0 commit comments

Comments
 (0)