Naphthalene Possum Management

    eslint-config-godaddy

    6.0.0 • Public • Published

    eslint-config-godaddy

    Base configuration for non-React, ES6 JavaScript applications officially used at GoDaddy. There are many useful features:

    • Standard. No configuration. – Stop worrying about style and focus on your work.
    • Modern – Uses modern linting tools like eslint.
    • Auto-fix – Auto-fix is enabled by-default through in eslint. Many rules will fix themselves!

    This styleguide is used by dozens of product teams at GoDaddy. Have a question or comment? Open an issue!

    Installation

    # Default with ES6
    npm i eslint-config-godaddy --save-dev

    Usage

    There are two ways to use this styleguide depending on your own tooling preference: directly using pre-included binaries or running eslint yourself with a custom .eslintrc config.

    1. Use the pre-included binaries.

    These use exactly the configuration defined in this package (eslint-config-godaddy) with auto-fix enabled automatically.

    {
      "scripts": {
        "lint": "eslint-godaddy files/ you/ want-to/ lint/"
      }
    }
    2. Define your local .eslintrc.js and run eslint yourself:
    module.exports = {
      extends: 'godaddy'
      rules: {
        //
        // Put any rules you wish to override here.
        //
      }
    }

    The --fix option in eslint is only available as a CLI option. Auto-fix will NOT be enabled unless you run eslint --fix in your package.json.

    {
      "scripts": {
        "lint": "eslint --fix files/ you/ want-to/ lint/"
      }
    }

    Install

    npm i eslint-config-godaddy

    DownloadsWeekly Downloads

    195

    Version

    6.0.0

    License

    MIT

    Unpacked Size

    9.02 kB

    Total Files

    6

    Last publish

    Collaborators

    • jgowdy
    • ibrandao
    • decompil3d
    • jpage
    • kinetifex
    • rxmarbles
    • kquerna
    • 3rdeden
    • msluther
    • jwilhelm
    • jcrugzz
    • dcousineau
    • samshull
    • indexzero