Giter Site home page Giter Site logo

Comments (14)

mdevils avatar mdevils commented on September 25, 2024

Hello.

I will be glad to receive a good pull-request on this.

from node-jscs.

mikesherov avatar mikesherov commented on September 25, 2024

@Druotic, are you still interested in implementing this? If not, I can do it. Please let me know. I'll wait a few days for your answer, and assume you're not if I get no response.

from node-jscs.

Druotic avatar Druotic commented on September 25, 2024

@mikesherov Sorry for the late repsonse. I plan to implement it eventually, but it will be some time...possible a couple of weeks from now due to various life events :( If you have time to (or already have) implemented this, be sure to mention this issue so it can be closed. Otherwise, I'll get around to it eventually.

from node-jscs.

mikesherov avatar mikesherov commented on September 25, 2024

@Druotic, still interested?

from node-jscs.

Druotic avatar Druotic commented on September 25, 2024

Wow, I had completely forgotten about this... At this point, probably not. But, if I change my mind, I'll just check back and see if anyone has added it yet.

from node-jscs.

justinanastos avatar justinanastos commented on September 25, 2024

+1

from node-jscs.

markelog avatar markelog commented on September 25, 2024

This issue has been open more than a month without supported PR for it.

Unfortunately, we don't have the resources to implement rules that could not be included in any of the supported presets (if it could be, please point that out).

However, if you or anybody else submit PR for it, we will gladly consider it.

from node-jscs.

Krinkle avatar Krinkle commented on September 25, 2024

@markelog This would be a rule to enable in the Wikimedia preset. We currently enforce this rule by convention only. I'd love for JSCS to enforce it.

from node-jscs.

 avatar commented on September 25, 2024

👍 To quote my colleges "How is this not supported yet". I guess people who write multiple var declarations don't overlap that much with people who like to use linters, or write linters anyway. Anyways glad I found something, anything on this topic.

from node-jscs.

 avatar commented on September 25, 2024

Any preference for the rule name, I will try to take a look into this.
If anyone has any idea about an existing rule that can act as a start it will be a time saver.
Or else I would dig into the existing rules for implementation.

from node-jscs.

 avatar commented on September 25, 2024

Think I found the requireMultipleVarDecl that might be applicable for this. I am thinking about names like requireVarDeclAtTop with the only option value of true unless someone else has better suggestions.

from node-jscs.

mrjoelkemp avatar mrjoelkemp commented on September 25, 2024

requireVarDeclFirst sounds closer to the rule's logic.
On Jul 6, 2015 3:50 AM, "oredi" [email protected] wrote:

Think I found the requireMultipleVarDecl that might be applicable for
this. I am thinking about names like requireVarDeclAtTop with the only
option value of true unless someone else has better suggestions.


Reply to this email directly or view it on GitHub
#99 (comment).

from node-jscs.

markelog avatar markelog commented on September 25, 2024

Check this out - #807

from node-jscs.

 avatar commented on September 25, 2024

@mrjoelkemp and @markelog Thanks I will use that and and look into that sample implementation.

from node-jscs.

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.