Skip to content

Commit

Permalink
Ban {}
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Dec 23, 2019
1 parent 6e32f1e commit 667afe1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
4 changes: 4 additions & 0 deletions index.js
Expand Up @@ -61,6 +61,10 @@ module.exports = {
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',
fixWith: 'Record<string, unknown>'
},
'{}': {
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',
fixWith: 'Record<string, unknown>'
},
object: {
message: 'The `object` type is hard to use. Use `Record<string, unknown>` instead. See: https://github.com/typescript-eslint/typescript-eslint/pull/848',
fixWith: 'Record<string, unknown>'
Expand Down
10 changes: 5 additions & 5 deletions package.json
Expand Up @@ -43,15 +43,15 @@
"simple"
],
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^2.9.0",
"@typescript-eslint/parser": "^2.9.0",
"@typescript-eslint/eslint-plugin": "^2.13.0",
"@typescript-eslint/parser": "^2.13.0",
"ava": "^2.4.0",
"eslint": "^6.7.1",
"eslint": "^6.8.0",
"temp-write": "^4.0.0",
"typescript": "^3.7.2"
"typescript": "^3.7.4"
},
"peerDependencies": {
"@typescript-eslint/eslint-plugin": ">=2.9.0",
"@typescript-eslint/eslint-plugin": ">=2.13.0",
"eslint": ">=6.6.0",
"typescript": ">=3.5.3"
}
Expand Down

0 comments on commit 667afe1

Please sign in to comment.