@lendesk/eslint-config-lendesk
Lendesk JS ESlint Standard
Last updated a year ago by michael-steward .
UNLICENSED · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @lendesk/eslint-config-lendesk 
SYNC missed versions from official npm registry.

eslint-config-lendesk

Lendesk JS ESLint Standard Config. This is based on StandardJS with some minor adjustments to work with Prettier

Installation

Install the config:

$ yarn add -D @lendesk/eslint-config-lendesk

Install the peer dependencies shown after running the above command (using yarn -D)

Then install Prettier for formatting concerns:

$ yarn add -D prettier

Once the linter and prettier are setup it is recommended to add a git commit hook to auto-run these tools when code is committed. To do this:

  1. Install Husky and LintStaged:
yarn add -D husky lint-staged
  1. Add lint-staged config to package.json:
"lint-staged": {
  "*.js": [
    "prettier --write",
    "eslint --fix",
    "git add"
  ]
}
  1. Add precommit script to the package.json "scripts" section:
"scripts": {
  "precommit": "lint-staged"
}

Usage

In ESLint config (e.g. .eslintrc.json)

{
  "extends": "@lendesk/eslint-config-lendesk"
}

Current Tags

  • 6.0.0                                ...           latest (a year ago)

8 Versions

  • 6.0.0                                ...           a year ago
  • 5.0.0                                ...           a year ago
  • 4.1.0                                ...           a year ago
  • 4.0.0                                ...           2 years ago
  • 3.0.1                                ...           2 years ago
  • 3.0.0                                ...           2 years ago
  • 2.0.0                                ...           3 years ago
  • 1.0.0                                ...           3 years ago
Downloads
Today 0
This Week 9
This Month 11
Last Day 0
Last Week 0
Last Month 2
Dependencies (0)
None
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |