From 1a02f88a0baa3a27e2831e4ecf4fe86a50f18d63 Mon Sep 17 00:00:00 2001 From: Sindre Sorhus Date: Wed, 5 Feb 2020 12:47:09 +0700 Subject: [PATCH] Add `@typescript-eslint/no-dupe-class-members` rule https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-dupe-class-members.md --- index.js | 2 ++ package.json | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/index.js b/index.js index 4e4a11a..6d3c7fd 100644 --- a/index.js +++ b/index.js @@ -211,6 +211,8 @@ module.exports = { ], 'no-array-constructor': 'off', '@typescript-eslint/no-array-constructor': 'error', + 'no-dupe-class-members': 'off', + '@typescript-eslint/no-dupe-class-members': 'error', '@typescript-eslint/no-dynamic-delete': 'error', 'no-empty-function': 'off', '@typescript-eslint/no-empty-function': 'error', diff --git a/package.json b/package.json index 2c6860c..bc0f347 100644 --- a/package.json +++ b/package.json @@ -43,15 +43,15 @@ "simple" ], "devDependencies": { - "@typescript-eslint/eslint-plugin": "^2.18.0", - "@typescript-eslint/parser": "^2.18.0", + "@typescript-eslint/eslint-plugin": "^2.19.0", + "@typescript-eslint/parser": "^2.19.0", "ava": "^2.4.0", "eslint": "^6.8.0", "temp-write": "^4.0.0", "typescript": "^3.7.5" }, "peerDependencies": { - "@typescript-eslint/eslint-plugin": ">=2.18.0", + "@typescript-eslint/eslint-plugin": ">=2.19.0", "eslint": ">=6.6.0", "typescript": ">=3.5.3" }