From e6259a2c34cf562d2f4ee799819f09601b1e3853 Mon Sep 17 00:00:00 2001 From: "Shahar Or (mightyiam)" Date: Thu, 21 Nov 2019 21:10:09 +0700 Subject: [PATCH] feat: upgrade plugin to v2.3.3 BREAKING CHANGE: add @typescript-eslint/no-unnecessary-condition Closes #154. --- package.json | 4 ++-- src/index.test.ts | 1 + src/index.ts | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 6f31edce9..afb90f6c9 100644 --- a/package.json +++ b/package.json @@ -55,7 +55,7 @@ "TypeScript" ], "dependencies": { - "@typescript-eslint/parser": "^2.2.0", + "@typescript-eslint/parser": "^2.3.3", "eslint-config-standard": "^14.1.0" }, "peerDependencies": { @@ -71,7 +71,7 @@ "@commitlint/config-conventional": "^8.2.0", "@commitlint/travis-cli": "^8.2.0", "@types/node": "^12.12.11", - "@typescript-eslint/eslint-plugin": "^2.2.0", + "@typescript-eslint/eslint-plugin": "^2.3.3", "ava": "^2.4.0", "editorconfig-checker": "^3.0.3", "eslint": "^6.6.0", diff --git a/src/index.test.ts b/src/index.test.ts index 59af32f58..a540ebda1 100644 --- a/src/index.test.ts +++ b/src/index.test.ts @@ -70,6 +70,7 @@ test('export', (t): void => { '@typescript-eslint/no-namespace': 'error', '@typescript-eslint/no-non-null-assertion': 'error', '@typescript-eslint/no-this-alias': ['error', { allowDestructuring: true }], + '@typescript-eslint/no-unnecessary-condition': 'error', '@typescript-eslint/no-unnecessary-type-assertion': 'error', '@typescript-eslint/no-unused-vars': ['error', { vars: 'all', args: 'none', ignoreRestSiblings: true }], '@typescript-eslint/no-use-before-define': ['error', { functions: false, classes: false, variables: false, typedefs: false }], diff --git a/src/index.ts b/src/index.ts index ea5ba99bd..844c1ccc4 100644 --- a/src/index.ts +++ b/src/index.ts @@ -75,6 +75,7 @@ export = { '@typescript-eslint/no-namespace': 'error', '@typescript-eslint/no-non-null-assertion': 'error', '@typescript-eslint/no-this-alias': ['error', { allowDestructuring: true }], + '@typescript-eslint/no-unnecessary-condition': 'error', '@typescript-eslint/no-unnecessary-type-assertion': 'error', '@typescript-eslint/no-var-requires': 'error', '@typescript-eslint/prefer-function-type': 'error',