Skip to content

fix: add package.json exports field#623

Merged
BPScott merged 1 commit intomasterfrom
add-exports
Dec 21, 2023
Merged

fix: add package.json exports field#623
BPScott merged 1 commit intomasterfrom
add-exports

Conversation

@BPScott
Copy link
Copy Markdown
Member

@BPScott BPScott commented Dec 21, 2023

Fix #622.

Add exports mapping to package.json, to allow import eslintPluginRecommended from 'eslint-plugin-prettier/recommended' to work as expected.

Strictly speaking this is a breaking change as it removes the ability for people to import from "eslint-plugin-prettier/eslint-plugin-prettier.js" and "eslint-plugin-prettier/recommended.js" but the former was never a good idea in the first place and the latter has only been available for a few days, so I'm not worried about closing off those two import paths in a non-major release.

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

use es6's import syntax to import eslint-plugin-prettier/recommended

2 participants