Skip to content

Commit 69b266f

Browse files
committed
Add @typescript-eslint/no-wrapper-object-types rule
https://typescript-eslint.io/rules/no-wrapper-object-types/
1 parent ecc1c11 commit 69b266f

File tree

1 file changed

+1
-24
lines changed

1 file changed

+1
-24
lines changed

index.js

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -127,30 +127,6 @@ module.exports = {
127127
{
128128
extendDefaults: false,
129129
types: {
130-
String: {
131-
message: 'Use `string` instead.',
132-
fixWith: 'string'
133-
},
134-
Number: {
135-
message: 'Use `number` instead.',
136-
fixWith: 'number'
137-
},
138-
Boolean: {
139-
message: 'Use `boolean` instead.',
140-
fixWith: 'boolean'
141-
},
142-
Symbol: {
143-
message: 'Use `symbol` instead.',
144-
fixWith: 'symbol'
145-
},
146-
BigInt: {
147-
message: 'Use `bigint` instead.',
148-
fixWith: 'bigint'
149-
},
150-
Object: {
151-
message: 'The `Object` type is mostly the same as `unknown`. You probably want `Record<string, unknown>` instead. See https://github.com/typescript-eslint/typescript-eslint/pull/848',
152-
fixWith: 'Record<string, unknown>'
153-
},
154130
'{}': {
155131
message: 'The `{}` type is mostly the same as `unknown`. You probably want `Record<string, unknown>` instead.',
156132
fixWith: 'Record<string, unknown>'
@@ -581,6 +557,7 @@ module.exports = {
581557
}
582558
],
583559
'@typescript-eslint/no-var-requires': 'error',
560+
'@typescript-eslint/no-wrapper-object-types': 'error',
584561
'@typescript-eslint/non-nullable-type-assertion-style': 'error',
585562
'@typescript-eslint/parameter-properties': [
586563
'error',

0 commit comments

Comments
 (0)