Code Monkey home page Code Monkey logo

Comments (13)

firefoxic avatar firefoxic commented on May 8, 2024 1

Your archives are missing a file called `.stylelintrc'.

Try this Archive.zip. I updated all dependencies and added config. Stylelint is correctly indicating indentation errors.
image

from stylelint-stylistic.

jd-solanki avatar jd-solanki commented on May 8, 2024 1

@firefoxic can you provide config list with recommended settings in your package along with rules so others can extend instead of writing long list of rules?

from stylelint-stylistic.

firefoxic avatar firefoxic commented on May 8, 2024 1

@firefoxic can you provide config list with recommended settings in your package along with rules so others can extend instead of writing long list of rules?

I have my own config that I use.

from stylelint-stylistic.

firefoxic avatar firefoxic commented on May 8, 2024

Hi! I could change the version to ^15.0.0. But that doesn't seem to solve your problem, because stylelint-order requires stylelint@^14.0.0.

And I deliberately removed stylelint@^14.16.1 from peerDependencies with a separate release that doesn't change anything significant except that dependency. This is so that you can use 0.1.5 to gradually move from stylelint@14 to stylelint@15. You can periodically check if all dependencies are working by updating this plugin to version 0.2.0 and rolling back to 0.1.5 if there are still conflicts.

By the way, major version 1.0.0 will be released after the stylelint@16 release, which will remove the deprecated rules altogether.

In summary, use stylelint-codeguide@~0.1.5 and let me know if your tools work with it or not.

P.S. Perhaps I should have written a migration guide 🤔

from stylelint-stylistic.

alokVishu avatar alokVishu commented on May 8, 2024

Hello @firefoxic,

Thanks for your response and suggestions.

I have tried to downgrade the package version but nothing is changed.

image

Screen.Recording.2023-07-05.at.4.00.01.PM.mov

from stylelint-stylistic.

firefoxic avatar firefoxic commented on May 8, 2024

I have tried to downgrade the package version but nothing is changed.

The stylelint itself needs to be downgraded to ^14.16.1. Not for the stylelint-codeguide, but for the stylelint-order, which depends on ^14.0.0.

from stylelint-stylistic.

alokVishu avatar alokVishu commented on May 8, 2024

I have also reproduced the same issue in a fresh blank project. Please find the attached zip file.

Archive.zip

from stylelint-stylistic.

firefoxic avatar firefoxic commented on May 8, 2024

I have also reproduced the same issue in a fresh blank project. Please find the attached zip file.

In the archive, stylelint-codeguide is not involved in the conflict.

Even if you remove this plugin completely, you still have dependency conflicts. stylelint-config-idiomatic-order depends on stylelint@^14, and stylelint-config-standard-scss depends on stylelint@^15+.

You should then roll back stylelint-config-standard-scss to the version that depends on stylelint@14. Then roll back stylelint itself to 14.16.1. And you can use stylelint-codeguide@~0.1.5 in that set.

If you really need stylelint-config-idiomatic-order, you will have to wait for it to update and require stylelint@^15.

from stylelint-stylistic.

alokVishu avatar alokVishu commented on May 8, 2024

Hello @firefoxic,

Thanks for your valuable response.

I have tried to remove stylelint-config-idiomatic-order from my project but indentation still does not work.

It would be a great help if you help me to work on indentation and other rules after removing the order package.

from stylelint-stylistic.

alokVishu avatar alokVishu commented on May 8, 2024

I have also tried to remove some other plugins and it seems to work. But I face a weird issue the indentation does not work when there are some comments. Refer Gif:

Screen.Recording.2023-07-05.at.6.37.04.PM.mov

Also, I need to add all rules to make it work. Is there any way to import all rules?

Please find the updated reproduction:
Archive.zip

from stylelint-stylistic.

alokVishu avatar alokVishu commented on May 8, 2024

Hello @firefoxic,

Should I need to import every rule that I wish to utilize, or are all rules automatically imported by default?

from stylelint-stylistic.

firefoxic avatar firefoxic commented on May 8, 2024

Should I need to import every rule that I wish to utilize, or are all rules automatically imported by default?

This is not a config with which you can extend your config, but a plugin that provides rules (which deprecated in Stylelint itself). As with Stylelint rules themselves, if there is a rule of the plugin you want to use, you need to specify it in your config.

from stylelint-stylistic.

alokVishu avatar alokVishu commented on May 8, 2024

Hello @firefoxic,

Thanks for the great help.

~ Best Regards

from stylelint-stylistic.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.