From 667afe11da75bdeab4bc7c519c1794943930da27 Mon Sep 17 00:00:00 2001 From: Sindre Sorhus Date: Mon, 23 Dec 2019 19:57:35 +0100 Subject: [PATCH] Ban `{}` --- index.js | 4 ++++ package.json | 10 +++++----- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/index.js b/index.js index 2c3b988..a9c7883 100644 --- a/index.js +++ b/index.js @@ -61,6 +61,10 @@ module.exports = { message: 'The `Object` type is mostly the same as `unknown`. You probably want `Record` instead. See https://github.com/typescript-eslint/typescript-eslint/pull/848', fixWith: 'Record' }, + '{}': { + message: 'The `Object` type is mostly the same as `unknown`. You probably want `Record` instead. See https://github.com/typescript-eslint/typescript-eslint/pull/848', + fixWith: 'Record' + }, object: { message: 'The `object` type is hard to use. Use `Record` instead. See: https://github.com/typescript-eslint/typescript-eslint/pull/848', fixWith: 'Record' diff --git a/package.json b/package.json index 25c1097..45e61b7 100644 --- a/package.json +++ b/package.json @@ -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" }