JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q46222F
  • License ISC

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

Package Exports

  • eslint-config-mxo

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (eslint-config-mxo) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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