brandongregoryscott / eslint-plugin-collation

ESLint plugin for making your code easier to read, with autofix and TypeScript support
https://eslint-plugin-collation.brandonscott.me
Apache License 2.0
4 stars 0 forks source link

prefer-import w/ replaceAsDefault breaks if named import is aliased #73

Closed brandongregoryscott closed 1 year ago

brandongregoryscott commented 1 year ago

Example input:

import { kebabCase, isEmpty as lodashIsEmpty } from "lodash";

Expected output:

import kebabCase from 'lodash/kebabCase';
import lodashIsEmpty from 'lodash/isEmpty';

Received output:

import kebabCase from 'lodash/kebabCase';
import isEmpty as lodashIsEmpty from 'lodash/isEmpty';
github-actions[bot] commented 1 year ago

:tada: This issue has been resolved in version 1.3.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: