Skip to content

Commit f9b6668

Browse files
committed
chore: add 'ban-types' eslint rule
1 parent 1992b3d commit f9b6668

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.eslintrc.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ module.exports = {
2828
'@typescript-eslint/array-type': ['error', 'array-simple'],
2929
'@typescript-eslint/no-require-imports': 'error',
3030
'@typescript-eslint/ban-ts-ignore': 'warn',
31+
'@typescript-eslint/ban-types': 'error',
3132
'no-else-return': 'error',
3233
eqeqeq: ['error', 'smart'],
3334
strict: 'error',

src/rules/no-identical-title.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import {
1010

1111
interface DescribeContext {
1212
describeTitles: string[];
13-
testTitles: String[];
13+
testTitles: string[];
1414
}
1515

1616
const newDescribeContext = (): DescribeContext => ({

0 commit comments

Comments
 (0)