Skip to content

Commit cefb272

Browse files
chore: add types naming rule (#477)
1 parent 398df6e commit cefb272

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

src/.eslintrc

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,18 @@
99
"additionalHooks": "(useAutofetcher)"
1010
}
1111
],
12-
"valid-jsdoc": "off"
12+
"valid-jsdoc": "off",
13+
"@typescript-eslint/naming-convention": [
14+
"warn",
15+
{
16+
"selector": "typeLike",
17+
"format": ["PascalCase"],
18+
"leadingUnderscore": "forbid",
19+
"custom": {
20+
"regex": "^I[A-Z]",
21+
"match": false
22+
}
23+
}
24+
]
1325
}
1426
}

0 commit comments

Comments
 (0)