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',