Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including eslint-config-hostelworld with all npm packages installed. Try it out:

require("eslint/package.json"); // eslint is a peer dependency. require("eslint-config-standard/package.json"); // eslint-config-standard is a peer dependency. require("eslint-plugin-import/package.json"); // eslint-plugin-import is a peer dependency. require("eslint-plugin-node/package.json"); // eslint-plugin-node is a peer dependency. require("eslint-plugin-promise/package.json"); // eslint-plugin-promise is a peer dependency. require("eslint-plugin-standard/package.json"); // eslint-plugin-standard is a peer dependency. var eslintConfigHostelworld = require("eslint-config-hostelworld")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

eslint-config-hostelworld v1.1.1

Hostelworld ESLint Shareable Config

eslint-config-hostelworld

Build Status npm npm

ESLint Shareable Config extending eslint-config-standard.

Installation

  1. First install the following npm packages:

    # core package
    npm install --save-dev eslint-config-hostelworld
    # plus the peer dependencies
    npm install --save-dev eslint eslint-config-standard eslint-plugin-import eslint-plugin-node eslint-plugin-promise eslint-plugin-standard
    
  2. Then add eslint-config-hostelworld to your .eslintrc.* extends section:

    {
        "extends": [
            "hostelworld"
        ],
        "rules": {
            // Additional, per-project rules or overrides...
        }
    }
    

Additional rules

  • 4 spaces for indentation. rule
  • Semicolons are mandatory. rule
  • Curly braces always required, even in one liners. rule

License

This library is open-sourced software licensed under the MIT license.

Authors

Hostelworld Team

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free