From 113ffb39fddeb59314eb529df59b54d875027472 Mon Sep 17 00:00:00 2001 From: Tim Roes Date: Thu, 28 Nov 2019 14:08:15 +0100 Subject: [PATCH] Add new eslint rules for TS --- 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 3337bfc8eb101..ca3b9bf99c535 100644 --- a/packages/eslint-config-kibana/typescript.js +++ b/packages/eslint-config-kibana/typescript.js @@ -116,6 +116,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', { @@ -167,6 +168,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',