Skip to content

Commit 667afe1

Browse files
committed
Ban {}
1 parent 6e32f1e commit 667afe1

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,10 @@ module.exports = {
6161
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',
6262
fixWith: 'Record<string, unknown>'
6363
},
64+
'{}': {
65+
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',
66+
fixWith: 'Record<string, unknown>'
67+
},
6468
object: {
6569
message: 'The `object` type is hard to use. Use `Record<string, unknown>` instead. See: https://github.com/typescript-eslint/typescript-eslint/pull/848',
6670
fixWith: 'Record<string, unknown>'

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,15 @@
4343
"simple"
4444
],
4545
"devDependencies": {
46-
"@typescript-eslint/eslint-plugin": "^2.9.0",
47-
"@typescript-eslint/parser": "^2.9.0",
46+
"@typescript-eslint/eslint-plugin": "^2.13.0",
47+
"@typescript-eslint/parser": "^2.13.0",
4848
"ava": "^2.4.0",
49-
"eslint": "^6.7.1",
49+
"eslint": "^6.8.0",
5050
"temp-write": "^4.0.0",
51-
"typescript": "^3.7.2"
51+
"typescript": "^3.7.4"
5252
},
5353
"peerDependencies": {
54-
"@typescript-eslint/eslint-plugin": ">=2.9.0",
54+
"@typescript-eslint/eslint-plugin": ">=2.13.0",
5555
"eslint": ">=6.6.0",
5656
"typescript": ">=3.5.3"
5757
}

0 commit comments

Comments
 (0)