@bhws/eslint-config
My lint config
Last updated 9 months ago by sanscheese .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @bhws/eslint-config 
SYNC missed versions from official npm registry.

Resources

https://medium.com/@natterstefan/how-to-create-your-own-shared-eslint-prettier-and-stylelint-configuration-3930dd764de3

BHWS ESLint Config

ESlint

Usage

  1. Add this to devDependencies
$ npm i -D @bhws/eslint-config
# or
$ yarn add -D @bhws/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 the config (you can use just the scope name as ESLint will assume the eslint-config prefix):

{
  "extends": [
    "bhws"
  ]
}

Full example

A full example .eslintrc for a project with babel support:

Dont forget to npm i -D babel-eslint or yarn add -D babel-eslint

{
  "root": true,
  "parserOptions": {
    "parser": "babel-eslint",
    "sourceType": "module"
  },
  "extends": [
    "bhws"
  ]
}

Additional Notes

Setup inspired by @nuxtjs/eslint-config & eslint-config-standard

Current Tags

  • 0.0.16                                ...           latest (9 months ago)

10 Versions

  • 0.0.16                                ...           9 months ago
  • 0.0.15                                ...           9 months ago
  • 0.0.14                                ...           9 months ago
  • 0.0.13                                ...           10 months ago
  • 0.0.12                                ...           10 months ago
  • 0.0.11                                ...           10 months ago
  • 0.0.10                                ...           10 months ago
  • 0.0.9                                ...           10 months ago
  • 0.0.8                                ...           10 months ago
  • 0.0.6                                ...           10 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 10
Last Day 0
Last Week 10
Last Month 1
Dev Dependencies (2)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |