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

Changed to load stylelint from local node modules #26

Merged
merged 4 commits into from Jan 5, 2020

Conversation

ota-meshi
Copy link
Member

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

Closes #4
Closes #20

Is there anything in the PR that needs further explanation?

This PR makes changed to load stylelint from local node modules.
With this change, users can use their installed stylelint.

Resolve stylelint module in the following priority order:

  • stylelint installed in workspace node_modules.
  • stylelint installed globally with npm.
  • stylelint that the this extension contains.

@hudochenkov
Copy link
Member

Should we also remove stylelint from dependencies? And make clear in readme that locally installed version will be used?

@ntwb
Copy link
Member

ntwb commented Dec 28, 2019

Should we also remove stylelint from dependencies? And make clear in readme that locally installed version will be used?

I think we leave it as is now, as users can continue to use the bundled styleint:
https://github.com/stylelint/vscode-stylelint/pull/26/files?utf8=%E2%9C%93&diff=unified&w=1#diff-d2453d8fd93a447a405c67d1e4731293R200

We can discuss and remove the stylelint dependency in a v1.0.0 release

@ota-meshi
Copy link
Member Author

And make clear in readme that locally installed version will be used?

I have added to the README.

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.

Update to last stylelint version "Undefined rule unicode-bom" prevents linting
4 participants