Skip to content

Commit

Permalink
Disable the unicorn/import-style rule for TypeScript projects
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Oct 18, 2020
1 parent 4c9909a commit 77716e2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/options-manager.js
Expand Up @@ -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);
}
Expand Down

0 comments on commit 77716e2

Please sign in to comment.