Giter Club home page Giter Club logo

Comments (5)

ernscht avatar ernscht commented on July 22, 2024 1

The idea is good.
But i'm unsure what the best way for the configuration would be.

Currently we only use "namespace" as a string and arrays for prefixes ("patternPrefixes", "helperPrefixes").
But the idea with a regex is also valid.

To stay backwards compatible we could add the property "namespaces" for array values (with higher priority than "namespace" and start deprecating "namespace").

I would go for this:

"namespaces": ["...", "..."]

Other Opinions?

from stylelint-bem.

ernscht avatar ernscht commented on July 22, 2024 1

This is published as 5.1.0

from stylelint-bem.

Regaddi avatar Regaddi commented on July 22, 2024

What do you think @ernscht?
This might be a valid addition for projects using lerna, where the stylelint config is shared.

from stylelint-bem.

jantimon avatar jantimon commented on July 22, 2024

I totally agree - allowing to use only one namespace can be to limiting.

We should avoid adding to many different configuration and usages so maybe we could release a breaking chance which renames namespace to namespace and allow a string or an array of strings

Regular expressions will allow more flexibility but I can’t come up with a real useful scenario with so many namespaces that a regexp would be needed.

from stylelint-bem.

jantimon avatar jantimon commented on July 22, 2024

@johntimothybailey it took me some time but finally I got a first draft - could you please take a look at #11 ?

from stylelint-bem.

Related Issues (14)

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.