Skip to content

Commit 77716e2

Browse files
committed
Disable the unicorn/import-style rule for TypeScript projects
1 parent 4c9909a commit 77716e2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/options-manager.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,10 @@ const buildXOConfig = options => config => {
315315
];
316316
}
317317

318+
if (options.ts) {
319+
config.rules['unicorn/import-style'] = 'off';
320+
}
321+
318322
if (options.rules) {
319323
Object.assign(config.rules, options.rules);
320324
}

0 commit comments

Comments
 (0)