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

Create new 'lintPostcssResult' module #4819

Merged
merged 1 commit into from
Jun 9, 2020

Conversation

m-allanson
Copy link
Member

In a future PR this module will be required by the new browser.js module. This change has been extracted from: #4796

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

Related to issue #3935

Is there anything in the PR that needs further explanation?

This change is a small part of the changes in PR #4796

In a future PR this module will be required by the new `browser.js` module. This change has been extracted from: #4796
@@ -84,7 +81,7 @@ module.exports = function lintSource(stylelint, options = {}) {
stylelint: stylelintResult,
});

return lintPostcssResult(stylelint, stylelintPostcssResult, config).then(
return lintPostcssResult(stylelint._options, stylelintPostcssResult, config).then(
Copy link
Member Author

@m-allanson m-allanson Jun 4, 2020

Choose a reason for hiding this comment

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

stylelint._options was the only part of the stylelint object that was being used, so I changed lintPostcssResult() to accept the options object directly.

@m-allanson m-allanson mentioned this pull request Jun 5, 2020
14 tasks
Copy link
Member

@jeddy3 jeddy3 left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

Copy link
Member

@mattxwang mattxwang left a comment

Choose a reason for hiding this comment

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

Looks like a code motion refactor with only minor changes, looks great to me!

LGTM 👍

@m-allanson m-allanson merged commit 8e07ca0 into master Jun 9, 2020
@m-allanson m-allanson deleted the issue-3935/refactor-lint-source branch June 9, 2020 10:12
m-allanson added a commit that referenced this pull request Jun 10, 2020
# By Mike Allanson (6) and others
# Via GitHub
* master:
  Bump got from 11.2.0 to 11.3.0 (#4825)
  Export an object from the CSS-in-JS syntax (#4824)
  Add type `Formatter` for formatter functions (#4823)
  Update CHANGELOG.md
  Fix false positives for namespaced variables in property-no-unknown (#4803)
  Update CHANGELOG.md
  Fix TypeError for inline comments and autofix for sugarss in max-empty-lines (#4821)
  Create new 'lintPostcssResult' module (#4819)
  13.6.0
  Update deps
  Prepare 13.6.0
  Update CHANGELOG.md
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

3 participants