ESLint shareable config for XO with 2-space indent and some other sane tweaks


Keywords
❤️, space, spaces, eslintconfig, xo, xoxo, hugs, lint, linter, jshint, jslint, eslint, validate, code style, standard, check, checker, verify, hint
License
ISC
Install
npm install eslint-config-mxo@1.0.0

Documentation

eslint-config-mxo

ESLint shareable config for XO with 2-space indent and some other sane tweaks

build status

🎵 Mixmaster Hugs 🤗

Installation

npm install --save-dev eslint-config-mxo

Usage

Add some XO config to your package.json:

{
  "name": "my-awesome-project",
  "xo": {
    "extends": "mxo",
    "overrides": [
      {
        "files": [
          "test.js",
          "test-*.js",
          "test",
          "**/__tests__",
          "**/*.test.js",
          "!**/helpers/**",
          "!**/fixtures/**",
          "!**/_*.js"
        ],
        "extends": "mxo/ava"
      }
    ]
  }
}

ESLint Usage

Using just eslint, add some ESLint config to your package.json:

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

Or to .eslintrc:

{
  "extends": "mxo"
}

And mxo/browser if you're in the browser:

{
  "extends": "mxo/browser"
}

Additionally mxo/ava for ava test files:

{
  "extends": "mxo/ava"
}

And mxo/lazy because I don't like semicolons anymore:

{
  "extends": "mxo/lazy"
}

Credits

Emily Klassen

Sindre Sorhus for the original xo ❤️

License

ISC