diff --git a/eslint/index.js b/eslint/index.js index 26b2d1c..0b70d0c 100644 --- a/eslint/index.js +++ b/eslint/index.js @@ -98,7 +98,11 @@ module.exports = { ], // typescript - '@typescript-eslint/indent': ['warn', 4, { SwitchCase: 1 }], + '@typescript-eslint/indent': ['warn', 4, { + SwitchCase: 1, + ignoredNodes: ['TSTypeParameterInstantiation'], + }, + ], '@typescript-eslint/explicit-module-boundary-types': 'off', '@typescript-eslint/explicit-function-return-type': 'off', '@typescript-eslint/array-type': [ diff --git a/test/ts-input.tsx b/test/ts-input.tsx index 4032404..30c58c0 100644 --- a/test/ts-input.tsx +++ b/test/ts-input.tsx @@ -32,3 +32,10 @@ class SuperCache implements CacheHostGeneric { const cache = new SuperCache(); addTypedObjectToCache(123, cache); + +type PickedCacheHost = Required< + Pick< + CacheHostGeneric, + 'save' + > +>;