eslint-config-bdougherty

5.1.1 • Public • Published

eslint-config-bdougherty

ESLint shareable config for my personal projects.

Install

yarn add eslint-config-bdougherty

Usage

This config contains a couple rule overrides and is primarily designed to be used with XO. Add the following to package.json:

{
  "xo": {
    "extends": "bdougherty"
  }
}

This package also exposes other configs that can be used for specific types of projects.

bdougherty/browser for browser-based projects:

{
  "xo": {
    "extends": "bdougherty/browser"
  }
}

bdougherty/vue for Vue.js-based projects:

{
  "xo": {
    "extends": "bdougherty/vue",
    "extensions": [
      "vue"
    ]
  }
}

bdougherty/nuxt for Nuxt.js-based projects:

{
  "xo": {
    "extends": "bdougherty/nuxt",
    "extensions": [
      "vue"
    ]
  }
}

bdougherty/svelte for Svelte-based projects:

{
  "xo": {
    "extends": "bdougherty/svelte",
    "extensions": [
      "html"
    ]
  }
}

bdougherty/sapper for Sapper-based projects:

{
  "xo": {
    "extends": "bdougherty/sapper",
    "extensions": [
      "html"
    ]
  }
}

Note: make sure to add the extensions config for both Vue.js and Nuxt.js projects if using single-file components.

License

MIT © Brad Dougherty

Readme

Keywords

Package Sidebar

Install

npm i eslint-config-bdougherty

Weekly Downloads

4

Version

5.1.1

License

MIT

Unpacked Size

5.35 kB

Total Files

9

Last publish

Collaborators

  • bdougherty