Skip to content

indielayer/eslint-config

Repository files navigation

IndielayerUI-Logo-Dark IndielayerUI-Logo-Light

< Tools for creators. />

Indielayer ESLint Config

ci Downloads Version License

ESlint config by Indielayer

Getting Started

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

  1. Add to your devDependencies
$ npm i -D @indielayer/eslint-config eslint
# or
$ yarn add -D @indielayer/eslint-config 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 3

If you're using Vue 3, 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"
  ]
}

Stylelint

  1. Add this package to your devDependencies
$ npm i -D stylelint @indielayer/stylelint-config
# or
$ yarn add -D stylelint @indielayer/stylelint-config
  1. Create a .stylelintrc.js file

  2. Extend our config:

module.exports = {
  root: true,
  extends: ['@indielayer/stylelint-config'],
}

License

MIT license - Indielayer