Giter Site home page Giter Site logo

Comments (6)

lb- avatar lb- commented on June 12, 2024

Maybe a more suitable rule could be

    'order/order': [
      'custom-properties',
      'dollar-variables',
      'declarations',
      'rules',
    ],

This ignores at-rules and at-variables - allowing them to be in any order but will make sure there is some predictable order in the blocks.

https://github.com/hudochenkov/stylelint-order/blob/master/rules/order/README.md

Another idea could be to make @apply (tailwind) appear first but then either allow other at-rules to appear anywhere.

from stylelint-config-wagtail.

thibaudcolas avatar thibaudcolas commented on June 12, 2024

Indeed! This is the configuration from Torchbox for reference:

        'order/order': [
            'dollar-variables',
            'custom-properties',
            // @-rules that have no nesting.
            { type: 'at-rule', hasBlock: false },
            'declarations',
        ],

from stylelint-config-wagtail.

anshikavashistha avatar anshikavashistha commented on June 12, 2024

Kindly assign this to me .I want to work on this issue

from stylelint-config-wagtail.

lb- avatar lb- commented on June 12, 2024

This might not be a good contribution issue @anshikavashistha but thanks for your interest.

I'm still waiting on feedback for a related PR I to Wagtail that will impact the direction on this issue.

wagtail/wagtail#11151

Additionally, it's possible these rules will not work as is for Wagtail core and more investigation will be needed.

from stylelint-config-wagtail.

anshikavashistha avatar anshikavashistha commented on June 12, 2024

okay sure @lb-
Definitely I understand

from stylelint-config-wagtail.

lb- avatar lb- commented on June 12, 2024

PR up #39

from stylelint-config-wagtail.

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.