Giter VIP home page Giter VIP logo

eslint-config-tidy's Introduction

eslint-config-tidy Build status for ESLint Config Tidy

ESLint shareable config for Tidy style

Why?

  • Consistency.
  • Clarity.
  • Simplicity.

Install

npm install eslint-config-tidy --save-dev

Usage

All you have to do is tell your linter to use this config.

Use with XO (recommended)

Add some XO config to your package.json:

{
    "name": "my-awesome-project",
    "xo": {
        "extend": "tidy"
    }
}

Alternatively, use with ESLint

Add some ESLint config to your package.json:

{
    "name": "my-awesome-project",
    "eslintConfig": {
        "extends": "tidy"
    }
}

Related

Contributing

See our contributing guidelines for more details.

  1. Fork it.
  2. Make a feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request.

License

MPL-2.0 © Seth Holladay

Go make something, dang it.

eslint-config-tidy's People

Contributors

sholladay avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

eslint-config-tidy's Issues

Update rules for Hapijs v17.

After updating Hapi to 17th version. New syntax has come. I wrote a simple server with a new version and after that xo started to gives me errors because of new rules.

  index.js:5:21
  ✖   5:21  A function with a name starting with an uppercase letter should only be used as a constructor.  new-cap
  ✖  14:29  h is defined but never used.                                                                    no-unused-vars
  ✖  14:29  Identifier name h is too short (< 2).                                                           id-length
  ✖  24:26  h is defined but never used.                                                                    no-unused-vars
  ✖  24:26  Identifier name h is too short (< 2).    
```.
Are you going to rewrite rules or what is your thoughts? 

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.