Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecate createRuleTester API #4265

Closed

Conversation

vankop
Copy link
Member

@vankop vankop commented Sep 8, 2019

Which issue, if any, is this issue related to?

related to #2454
loading this module cost to much https://gist.github.com/vankop/f83bdeda2cae617b4a801d8e210454ef

Suggest developers to load ~/lib/testUtils/createRuleTester directly if needed

Is there anything in the PR that needs further explanation?

nothing

@hudochenkov
Copy link
Member

I'm marking it as blocked, until we resolve #4267 :)

@hudochenkov hudochenkov added the pr: blocked is blocked by another issue or pr label Sep 8, 2019
@jeddy3 jeddy3 mentioned this pull request Sep 10, 2019
6 tasks

module.exports = deprecate(
createRuleTester,
"createRuleTester deprecated, please use https://github.com/stylelint/jest-preset-stylelint instead"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"createRuleTester deprecated, please use https://github.com/stylelint/jest-preset-stylelint instead"
"createRuleTester deprecated. See https://github.com/stylelint/stylelint/issues/4267"

jest-preset-stylelint is not ready to be used. So it's better to point to discussion instead.

@@ -32,7 +31,6 @@ api.lint = standalone;
api.rules = requiredRules;
api.formatters = formatters;
api.createPlugin = createPlugin;
api.createRuleTester = createRuleTester;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to put this back, as we discussed in #4267. We'll only deprecate this API in the following release.

@hudochenkov hudochenkov removed the pr: blocked is blocked by another issue or pr label Sep 13, 2019
@hudochenkov hudochenkov changed the title remove createRuleTester from index.js Deprecate createRuleTester API Sep 13, 2019
@hudochenkov
Copy link
Member

Superseded by #4279

@vankop vankop deleted the remove-create-rule-tester-from-index branch September 17, 2019 10:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants