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

Refactor getFileIgnorer() to reduce duplication #5794

Merged
merged 1 commit into from Dec 20, 2021
Merged

Conversation

ybiquitous
Copy link
Member

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

None.

Is there anything in the PR that needs further explanation?

This PR aims to reduce duplication using the ignore package. The duplication is in both lib/standalone.js and lib/utils/getFileIgnorer.js.

const normalizePath = require('normalize-path');
const path = require('path');

const createStylelint = require('./createStylelint');
Copy link
Member Author

Choose a reason for hiding this comment

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

[note] Separated by a blank line to distinguish external and internal importing.

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!

@jeddy3 jeddy3 merged commit b37be75 into main Dec 20, 2021
@jeddy3 jeddy3 deleted the refactor-getFileIgnorer branch December 20, 2021 18:23
@ybiquitous
Copy link
Member Author

@jeddy3 Thank you for the review and merge! 😊

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