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

fix(prefer-import): provide replacement data for better error reporting #68

Closed brandongregoryscott closed 1 year ago

brandongregoryscott commented 1 year ago

Fixes the error message that was expecting substitution data for importName and replacementModuleSpecifier, and handles more complex cases where one import may be split into multiple imports based on the parsed configuration. I updated the basic test cases to verify both scenarios.

github-actions[bot] commented 1 year ago

:tada: This PR is included in version 1.2.1 :tada:

The release is available on:

Your semantic-release bot :package::rocket: