Giter Club home page Giter Club logo

Comments (8)

barrynorman avatar barrynorman commented on July 22, 2024 2

Thats really sad :(
We are using the CamelCase style and this would be a really nice feature. Since @nicholaslee119 did already the work, why did you not merge it?

from stylelint-bem.

enterframe avatar enterframe commented on July 22, 2024 2

me too, ernscht.
Im also interested in using this with PascalCase

from stylelint-bem.

ernscht avatar ernscht commented on July 22, 2024 1

Thanks a lot for your input.
Because of simplicity, readability and consistency we decided to go the way allowing only small letters in our rules. But, this is not yet set in stone - the idea sounds interesting.
We will reconsider our decision, check your PR and try to merge with our ideas for naming - but we need some time ;-)

from stylelint-bem.

ernscht avatar ernscht commented on July 22, 2024 1

That's where i read under naming rules: "written in lowercase" ;-)

We don't want to invest time in a feature we won't need and in our opinion doesn't make the css more readable and makes the linter more error-prone.

from stylelint-bem.

nicholaslee119 avatar nicholaslee119 commented on July 22, 2024

anyway, I PR for this 😄

from stylelint-bem.

jantimon avatar jantimon commented on July 22, 2024

@nicholaslee119 your pull request looks really nice but unfortunately I am with ernscht.
Small cased class names are a standard which is very widely used over the web.

According to stackoverflow:

"Using uppercase, dashes or underscores when naming css selectors"

The CSS spec does not specify how browsers should handle case, so using camelCase leaves one open to ambiguous interpretation.

from stylelint-bem.

ernscht avatar ernscht commented on July 22, 2024

Sorry, guys.

Besides @jantimon 's argument (see above), there was another reason not to take over the PR: It was not ready. For example, the linter would not work with PascalCase names, which you want to use.

So, we decided to not apply a PR with a config param which allows classes like m-applEBlock or o-bAnAnAbLOCK and, at the same time, disallows classes like m-AppleBlock.

You see, it's not easy, and we actually want to stick with a small, simple linter.

from stylelint-bem.

barrynorman avatar barrynorman commented on July 22, 2024

Ok, so I why not add options for the different BEM styles? I agree that we don't want to habe something like bAnAnAbLOCK or m-applEBlock either ;)

See "Alternative naming schemes" from https://en.bem.info/methodology/naming-convention/

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.