@pismo/eslint-config-bolt

0.0.1-32 • Public • Published

Pismo Bolt eslint config

Pismo Bolt's eslint shareable configuration.

Installation

> yarn add @pismo/eslint-config-bolt --dev

Then, in your .eslintrc:

{
  "extends": "@pismo/eslint-config-bolt"
}

Auto linting

You can use husky along with lint-staged and eslint to set up a precommit hook that runs eslint to automatically fix all linting-related issues.

> yarn add husky lint-staged eslint --dev

package.json file:

  "scripts": {
    "lint": "node_modules/.bin/eslint --fix",
    "precommit": "lint-staged"
  }

.lintstagedrc file:

{
  "linters": {
    "*.js": ["yarn lint", "git add"]
  }
}

That's it. It should automatically format all .js files you git add and try to git commit, then add them back for you.

Package Sidebar

Install

npm i @pismo/eslint-config-bolt

Weekly Downloads

1

Version

0.0.1-32

License

ISC

Last publish

Collaborators

  • aryang-pismo
  • thiagofribeiro
  • mateus_bombassaro
  • fabio-rizzi_pismo
  • vinicius_vieira
  • abraaobueno
  • fagner.pelicioni
  • rodribeze
  • marco-lima-filho-pismo
  • victorwpbastos
  • pismojosh
  • jonathanleahypi
  • wkerswell-pismo
  • davi.firmino
  • henrique.nunes
  • dandwal
  • giovanniprosim
  • gabriel.miguel
  • leandro.almeida.pismo
  • caique.constant
  • aline.souza
  • clint_roberts
  • marykay.grueneberg
  • rasienko
  • filipe.lyra
  • chrcarlos.rodrigues
  • timothy.robinson
  • tiffany.long
  • lcavalca
  • roberta.furlan
  • kmelnick
  • carlosreyes
  • raphaelhernandocosta