3.2.1 • Published 6 months ago

@indielayer/eslint-config v3.2.1

Weekly downloads
418
License
MIT
Repository
github
Last release
6 months ago

< Tools for creators. />

Indielayer ESLint Config

Getting Started

Do you want to add the config to your own projects? There you go:

  1. Add this package to your devDependencies
$ npm i -D @indielayer/eslint-config
# or
$ yarn add -D @indielayer/eslint-config
  1. Install eslint if not already present locally or globally
$ npm i -D eslint
# or
$ yarn add -D eslint
  1. Create a .eslintrc file

  2. Extend our config (you can use just the scope name as ESLint will assume the eslint-config suffix):

{
  "extends": [
    "@indielayer"
  ]
}

Full example

A full example .eslintrc:

{
  "root": true,
  "extends": [
    "@indielayer"
  ]
}

Vue

If you're using Vue, follow Getting Started section by replacing @indielayer/eslint-config by @indielayer/eslint-config-vue.

And in your .eslintrc all you need is :

{
  "extends": [
    "@indielayer/eslint-config-vue"
  ]
}

License

MIT license - Indielayer