Giter Site home page Giter Site logo

Add ESlint about 3ree HOT 4 CLOSED

gordyd avatar gordyd commented on May 2, 2024
Add ESlint

from 3ree.

Comments (4)

GordyD avatar GordyD commented on May 2, 2024

Good call!

I am on the fence as to which tool (ESLint and Standard) is the best option. On the one hand, seeing standard (thanks for sharing this), it looks great because it is just plug and play - it will not detract from the main focus of this repo. But on the other, as this is a demo/bootstrap repo - it might make sense to use a linting tool that allows for custom rules (although I wouldn't want to get too bogged down in debate so I would probably opt for using Airbnb's eslint rules).

Which do you think is best here?

from 3ree.

pcanterini avatar pcanterini commented on May 2, 2024

I vote for consistency too so if you think extending from Airbnb's presets is the closest I'm fine with that. 👍

from 3ree.

GordyD avatar GordyD commented on May 2, 2024

Ok. EsLint + Airbnb + EditorConfig sounds good.

For EditorConfig I think the most important rule is:

[*.js]
indent_style = space
indent_size = 2

Anything else?

from 3ree.

pcanterini avatar pcanterini commented on May 2, 2024

LGTM

from 3ree.

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.