Skip to content

firelayer/eslint-config

Repository files navigation

Firelayer

Jumpstart your Firebase Project


Firelayer ESLint Config

GitHub Actions npm (scoped with tag) npm

ESlint config used for Firelayer

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 @firelayer/eslint-config
# or
$ yarn add -D @firelayer/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": [
    "@firelayer"
  ]
}

Full example

A full example .eslintrc:

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

Vue

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

And in your .eslintrc all you need is :

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

License

MIT license - Firelayer