Git Product home page Git Product logo

Comments (10)

ntwb avatar ntwb commented on June 18, 2024

The block-spacing rule is already enabled:

eslint-config-stylelint/blob/master/eslintrc.json#L14 "block-spacing": 2,

from eslint-config-stylelint.

alexander-akait avatar alexander-akait commented on June 18, 2024

@ntwb sorry, i mean padded-blocks rule

from eslint-config-stylelint.

ntwb avatar ntwb commented on June 18, 2024

Ref http://eslint.org/docs/rules/padded-blocks

As the rule supports --fix here's a gist of the ~21k lines diff after manually adding "padded-blocks": 2, https://gist.github.com/ntwb/2c9bb14d91e1a79137a1e90e04256493

from eslint-config-stylelint.

alexander-akait avatar alexander-akait commented on June 18, 2024

@ntwb i think never options is more good, than always (remove extra blank lines)

from eslint-config-stylelint.

ntwb avatar ntwb commented on June 18, 2024

I updated the gist with using the never option, much saner ~900 line diff, though I'm still undecided if this is needed though....

https://gist.github.com/ntwb/2c9bb14d91e1a79137a1e90e04256493

from eslint-config-stylelint.

alexander-akait avatar alexander-akait commented on June 18, 2024

@ntwb what about size of package, before and after?

from eslint-config-stylelint.

jeddy3 avatar jeddy3 commented on June 18, 2024

Does anyone have a strong opinion on whether the "never" option makes the code more readable or not?

If there are no objections then I'm happy to see this go in.

from eslint-config-stylelint.

davidtheclark avatar davidtheclark commented on June 18, 2024

I'm fine with this.

from eslint-config-stylelint.

ntwb avatar ntwb commented on June 18, 2024

@ntwb what about size of package, before and after?

It would be quite minor, the change removes 81 blank lines

Does anyone have a strong opinion on whether the "never" option makes the code more readable or not?

I think it does, but that's only because I use a similar standard with the PHP code I write, so it works for me

from eslint-config-stylelint.

jeddy3 avatar jeddy3 commented on June 18, 2024

Done in #10

from eslint-config-stylelint.

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.