@jwalsh/eslint-config-recommended
Pluggable ESLint configs for ECMAScript Next, Node.js and React Native that you can import, extend and override
Last updated 3 years ago by jwalsh .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @jwalsh/eslint-config-recommended 
SYNC missed versions from official npm registry.

eslint-config

Pluggable ESLint configs for ECMAScript Next, Node.js and React Native that you can import, extend and override

Join the chat at https://gitter.im/kunalgolani/eslint-config npm version npm downloads GitHub issues Deps Dev Deps

Usage

In your js project directory:

npm install --save-dev eslint-config-recommended

Choose the configs you want to include in your .eslintrc.yaml:

---
  extends:
    - recommended/esnext
    - recommended/esnext/style-guide
    - recommended/node
    - recommended/node/style-guide
    - recommended/react-native
    - recommended/react-native/style-guide

Alternatively, in your .eslintrc.js or .eslintrc.json:

{
  "extends": [
    "recommended/esnext",
    "recommended/esnext/style-guide",
    "recommended/node",
    "recommended/node/style-guide",
    "recommended/react-native",
    "recommended/react-native/style-guide"
  ]
}

recommended/node and recommended/react-native extend recommended/esnext

recommended/node/style-guide and recommended/react-native/style-guide extend recommended/esnext/style-guide

If you don't need all these configs, you can also install them individually:

To add a git-hook to your commits, consider using husky

npm install --save-dev husky

And in your package.json:

  "scripts": {
    "precommit": "eslint ."
  }

Config

These configs are biased and opinionated, and err on the side of too many rules instead of too few. Think of them as a superset of your repo's lint config, and discard what you don't like in them. It's easy to override and disable the rules you find inconvenient.

Current Tags

  • 1.5.2                                ...           latest (3 years ago)

3 Versions

  • 1.5.2                                ...           3 years ago
  • 1.5.1                                ...           3 years ago
  • 1.5.0                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 4
Last Month 5
Dev Dependencies (2)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |