nodaguti / stylelint-no-unused-selectors

A rule for stylelint to disallow unused selectors
MIT License
78 stars 11 forks source link

Peer dependency update to stylelint v14.2.0 #634

Open gamegee opened 2 years ago

gamegee commented 2 years ago

When I try to install stylelint-no-unused-selectors I got the following issue:

npm ERR! Found: stylelint@14.2.0
npm ERR! node_modules/stylelint
npm ERR!   dev stylelint@"^14.1.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer stylelint@"^9.10.1 || ^10.0.0" from stylelint-no-unused-selectors@1.0.40

I guess the peer dependency of the module should be upgraded to the latest stylelint version: 14.2.0

ghost commented 2 years ago

+1

YuriiZadorozhnyi commented 2 years ago

+1

amarg26 commented 2 years ago

Try npm i -D stylelint-no-unused-selectors -f @gamegee @ghost

kkor commented 1 year ago

Doesn't seem to work with v14.2.0 or higher at all (the errors just don't print), but at least 13.13.1 still works and prints the plugin/no-unused-selectors errors

Grawl commented 1 year ago
modsketch-next on  main [✘»!+] is 📦 v0.1.0 via  v18.17.0 
❯ npm i -D stylelint-no-unused-selectors                 
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: modsketch-next@0.1.0
npm ERR! Found: stylelint@15.10.3
npm ERR! node_modules/stylelint
npm ERR!   dev stylelint@"^15.10.3" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer stylelint@"^9.10.1 || ^10.0.0" from stylelint-no-unused-selectors@1.0.40
npm ERR! node_modules/stylelint-no-unused-selectors
npm ERR!   dev stylelint-no-unused-selectors@"*" from the root project
npm ERR! 
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR! 
npm ERR! 
npm ERR! For a full report see:
npm ERR! /Users/daniilpronin/.npm/_logs/2023-09-05T07_37_24_567Z-eresolve-report.txt

npm ERR! A complete log of this run can be found in: /Users/daniilpronin/.npm/_logs/2023-09-05T07_37_24_567Z-debug-0.log
RettentoRectangle commented 1 year ago

Ping. Unmaintained? We'd like to use it with stylelint@15.10.3