bencode / eslint-config-bce

Eslint config for nodejs/es6

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

eslint-config-bce

Eslint config for nodejs/es6

Usage

  1. Install
npm install --save-dev eslint eslint-config-bce
  1. add config to .eslintrc
{
  extends: 'eslint-config-bce',
  rules: {
    // custom rules
  }
}
  1. add lint command in project's package.json
{
 "scripts": {
   "lint": "eslint src"
 }
}
  1. run
npm run lint
npm run lint --fix   # lint and auto fix

Browser or React project lint refer to eslint-config-bcd-react

About

Eslint config for nodejs/es6


Languages

Language:JavaScript 100.0%