From 159696738c895ad1af5bafa49780f7318474ecb7 Mon Sep 17 00:00:00 2001 From: Christophe Hurpeau Date: Tue, 9 Jul 2019 15:19:52 +0200 Subject: [PATCH] feat: ban typescript Omit type [no issue] (#218) --- @ornikar/eslint-config-typescript/index.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/@ornikar/eslint-config-typescript/index.js b/@ornikar/eslint-config-typescript/index.js index 38f9c01e4..b481d0e94 100644 --- a/@ornikar/eslint-config-typescript/index.js +++ b/@ornikar/eslint-config-typescript/index.js @@ -44,5 +44,15 @@ module.exports = { // https://github.com/typescript-eslint/typescript-eslint/issues/201 // private is comming in js world and no-public will be the most common way to read a js file (and probably ts) '@typescript-eslint/explicit-member-accessibility': ['error', { accessibility: 'no-public' }], + + '@typescript-eslint/ban-types': [ + 'error', + { + types: { + Omit: + 'Prefer `Except` from type-fest. https://github.com/sindresorhus/type-fest/blob/master/source/except.d.ts', + }, + }, + ], }, };