Giter Club home page Giter Club logo

Comments (5)

badsyntax avatar badsyntax commented on July 24, 2024

That regular expressions is flaky. To be honest I'm very tempted to remove this feature. I merged this feature in with pull request #30 without properly testing it. IMO the only reliable way of formatting code is to create a lexer/parser which is totally outside the scope of this plugin.

from sassbeautify.

badsyntax avatar badsyntax commented on July 24, 2024

By the way, I ran into this while trying to use SassBeautify in conjunction with SublimeLinter-contrib-scss-lint. It has a rule for a single selector per line. I'm finding that sass-convert isn't very compatible with scss-lint.

Is the linter not configurable?

from sassbeautify.

owenleonard avatar owenleonard commented on July 24, 2024

It is configurable, but I'd rather make a beautifier/formatter match chosen
linting rules rather than the reverse. It may be that I need to write a
lexer/parser that can read in those linting rules and do the formatting
rather than relying on what sass-convert supplies...

On Thu, Feb 13, 2014 at 2:20 AM, Richard Willis [email protected]:

By the way, I ran into this while trying to use SassBeautify in
conjunction with SublimeLinter-contrib-scss-lint. It has a rule for a
single selector per line. I'm finding that sass-convert isn't very
compatible with scss-lint.

Is the linter not configurable?

Reply to this email directly or view it on GitHubhttps://github.com//issues/37#issuecomment-34960776
.

from sassbeautify.

badsyntax avatar badsyntax commented on July 24, 2024

I'd rather make a beautifier/formatter match chosen linting rules rather than the reverse

I agree. Really this plugin only provides the flexibility of sass-convert, which is not a lot! I have been thinking about providing post-sass-convert formatting features, but I'm still undecided. Perhaps there's a solid python sass lexer out there that I can use, but saying that it doesn't seem right to do it in python land, seeing as though sass already has a lexer/parser. If I was more familiar with ruby I would explore the option of creating a custom gem that uses sass but also provides additional formatting options.

from sassbeautify.

badsyntax avatar badsyntax commented on July 24, 2024

I have decided to remove this feature entirely.

from sassbeautify.

Related Issues (20)

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.