Skip to content
This repository was archived by the owner on Mar 29, 2020. It is now read-only.

Commit 981a700

Browse files
committed
fix(typescript): make generic-type-naming rule more lenient
1 parent 7226c6e commit 981a700

File tree

1 file changed

+1
-1
lines changed
  • packages/eslint-config-typescript

1 file changed

+1
-1
lines changed

packages/eslint-config-typescript/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ module.exports = {
4949
'typescript/class-name-casing': 'off', // TSLint is better at this
5050
'typescript/explicit-function-return-type': 'off',
5151
'typescript/explicit-member-accessibility': 'off', // TSLint is better at this
52-
'typescript/generic-type-naming': ['error', '^T[A-Z][a-zA-Z]+$'],
52+
'typescript/generic-type-naming': ['error', '^([TUKV]|T[A-Z][a-zA-Z]+)$'],
5353
'typescript/interface-name-prefix': 'off', // TSLint is better at this
5454
'typescript/member-delimiter-style': 'off',
5555
'typescript/member-naming': 'off',

0 commit comments

Comments
 (0)