sindresorhus/eslint-plugin-unicorn

Auto-fix for `import-style`?

Closed

#963 opened on Dec 25, 2020

 (2 comments) (3 reactions) (0 assignees)JavaScript (468 forks)user submission
enhancementhelp wanted

Repository metrics

Stars
 (5,022 stars)
PR merge metrics
 (Avg merge 1d 16h) (399 merged PRs in 30d)

Description

import {dirname} from 'path';

const foo = dirname(bar)

->

import path from 'path';

const foo = path.dirname(bar)

I think it's doable.

Contributor guide