From 77716e26c67f12c5e21f1893b4c2641f766c4191 Mon Sep 17 00:00:00 2001 From: Sindre Sorhus Date: Mon, 19 Oct 2020 00:04:42 +0200 Subject: [PATCH] Disable the `unicorn/import-style` rule for TypeScript projects --- lib/options-manager.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/options-manager.js b/lib/options-manager.js index 802d9b73..f5037ee4 100644 --- a/lib/options-manager.js +++ b/lib/options-manager.js @@ -315,6 +315,10 @@ const buildXOConfig = options => config => { ]; } + if (options.ts) { + config.rules['unicorn/import-style'] = 'off'; + } + if (options.rules) { Object.assign(config.rules, options.rules); }