Coder Social home page Coder Social logo

Add JS hint & gjslint about helenus HOT 5 CLOSED

ctavan avatar ctavan commented on July 3, 2024
Add JS hint & gjslint

from helenus.

Comments (5)

devdazed avatar devdazed commented on July 3, 2024

I actually use linting myself, I have the following in my settings, but adding a make target would also be a good idea:

{    "jshint_options":
    {
        "evil": true,
        "regexdash": true,
        "browser": true,
        "wsh": true,
        "trailing": true,
        "sub": true,
        "curly": true,
        "eqeqeq": true,
        "forin":true,
        "newcap":true,
        "nonew":true,
        "plusplus":true,
        "regexp":true,
        "undef":true,
        "es5":true,
        "devel":true,
        "jquery":true,
        "nonstandard":true,
        "node":true,
        "strict":false,
        "globalstrict":true
    }
}

from helenus.

ctavan avatar ctavan commented on July 3, 2024

I think for a node-only project like this one, options browser, wsh, jquery should be set to false.

I personally like to allow plusplus and i think trailing = false would also help to remove trailing whitespaces (I see them in my editor and they hurt my feelings).

I like gjslint a lot since it does quite proper code-style checking (like where to put spaces, avoiding tabs, respect 80-char line limit etc. pp.). Would you allow that or is that too strict for you?

from helenus.

devdazed avatar devdazed commented on July 3, 2024

ill allow it, but plusplus is a must for me. It's part of the good parts and it keeps things like this from happening: v = + +i

from helenus.

ctavan avatar ctavan commented on July 3, 2024

OK, I can live with plusplus. What do you think about applying the Google Styleguide rules?

from helenus.

devdazed avatar devdazed commented on July 3, 2024

I agree with the Google StyleGuide rules.

from helenus.

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.