fix: explicitly import stylelint-order package#52
Conversation
|
Thanks for the PR! |
|
Thanks for the quick review! By the way, I noticed that |
@canac We had done some work to convert the project to TypeScript but I think somehow we forgot to add TypeScript as a dev dependency. 😃 If you're motivated, you can add it and then we can merge the PR. If not, I can add it myself later. Thank you again for taking the time! |
Done! Happy to help! |
|
🎉 This PR is included in version 8.0.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Thanks for a super useful package! Currently, using this config fails in Deno because stylelint looks for plugins referenced by string names in
node_modules/, which isn't created by default in Deno.Explicitly importing
stylelint-orderinstead of referencing it by name fixes this in Deno.Testing
Install
deno, create thisdeno.jsonfile, and rundeno task stylelintit to see the error:{ "tasks": { "stylelint": "deno run --allow-all stylelint src/**/*.css" }, "imports": { "stylelint": "npm:stylelint@^17.1.1", "stylelint-config-clean-order": "npm:stylelint-config-clean-order@^8.0.0", "stylelint-order": "npm:stylelint-order@^7.0.1" } }Then change it to the following and run
deno task stylelintto verify the fix:{ "tasks": { "stylelint": "deno run --allow-all stylelint src/**/*.css" }, "imports": { "stylelint": "npm:stylelint@^17.1.1", "stylelint-config-clean-order": "https://raw.githubusercontent.com/canac/stylelint-config-clean-order/import-order-plugin/src/index.ts", "stylelint-order": "npm:stylelint-order@^7.0.1" } }