From 0a82f22c5aa8bace953cdb027c5a711cc1ca09e6 Mon Sep 17 00:00:00 2001 From: Tim Roes Date: Fri, 29 Nov 2019 11:01:03 +0100 Subject: [PATCH] Add new eslint rules for TS (#51876) (#51900) --- packages/eslint-config-kibana/typescript.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/eslint-config-kibana/typescript.js b/packages/eslint-config-kibana/typescript.js index 2d2220da8bad3..10b1399150a1e 100644 --- a/packages/eslint-config-kibana/typescript.js +++ b/packages/eslint-config-kibana/typescript.js @@ -117,6 +117,7 @@ module.exports = { }], '@typescript-eslint/consistent-type-assertions': 'error', '@typescript-eslint/no-empty-interface': 'error', + '@typescript-eslint/no-extra-non-null-assertion': 'error', '@typescript-eslint/no-misused-new': 'error', '@typescript-eslint/no-namespace': 'error', '@typescript-eslint/triple-slash-reference': ['error', { @@ -168,6 +169,7 @@ module.exports = { 'object-shorthand': 'error', 'one-var': [ 'error', 'never' ], 'prefer-const': 'error', + 'prefer-rest-params': 'error', 'quotes': ['error', 'double', { 'avoidEscape': true }], 'quote-props': ['error', 'consistent-as-needed'], 'radix': 'error',