@metahub/eslint-config

A set of shareable eslint configs

Use eslint-config-pretty instead
Last updated 3 years ago by realpdv .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @metahub/eslint-config 
SYNC missed versions from official npm registry.

eslint-config

Set of ESLint shareable config.

npm npm Greenkeeper badge license semantic-release Commitizen friendly

Travis Code Climate Codecov

Installation

All the dependencies have to be installed explicitly (see eslint/eslint#3458).

$ npm install @metahub/eslint-config eslint-config-prettier eslint-plugin-ava eslint-plugin-babel eslint-plugin-eslint-comments eslint-plugin-import eslint-plugin-jasmine eslint-plugin-json eslint-plugin-node eslint-plugin-prettier eslint-plugin-promise eslint-plugin-sort-class-members eslint-plugin-unicorn prettier eslint --save-dev

Alternatively you can use install-peerdeps:

$ npm install install-peerdeps --global
$ npm install @metahub/eslint-config --save-dev
$ install-peerdeps @metahub/eslint-config --dev

Usage

Once the @metahub/eslint-config package is installed, you can use it by specifying the different configs in the extends section of your ESLint configuration.

{
  extends: [
    '@metahub/eslint-config/es6-config',
    '@metahub/eslint-config/node-config',
    '@metahub/eslint-config/prettier-config',
  ],
  rules: {
    // Additional, project specific rules...
  }
}

Config files

Name Description Extends
@metahub Base/generic configuration
@metahub/eslint-config/jasmine-config Rules specific to Jasmine @metahub
@metahub/eslint-config/import-config Rules related to ECMAScript 2015 and Node imports @metahub
@metahub/eslint-config/node-config Rules specific to Node JS @metahub, import-config
@metahub/eslint-config/es6-config Rules specific to ECMAScript 2015 @metahub, import-config
@metahub/eslint-config/ava-config Rules specific to AVA @metahub, es6-config
@metahub/eslint-config/promise-config Rules specific to Promises @metahub, es6-config
@metahub/eslint-config/async-config Rules specific to async/await @metahub, promise-config
@metahub/eslint-config/prettier-config To be added last in the extends array when using prettier. Adds eslint-plugin-prettier and eslint-config-prettier

Current Tags

  • 1.6.2                                ...           latest (3 years ago)

16 Versions

  • 1.6.2 [deprecated]           ...           3 years ago
  • 1.6.1 [deprecated]           ...           3 years ago
  • 1.6.0 [deprecated]           ...           3 years ago
  • 1.5.1 [deprecated]           ...           3 years ago
  • 1.5.0 [deprecated]           ...           3 years ago
  • 1.4.0 [deprecated]           ...           3 years ago
  • 1.3.1 [deprecated]           ...           3 years ago
  • 1.3.0 [deprecated]           ...           3 years ago
  • 1.2.0 [deprecated]           ...           3 years ago
  • 1.1.4 [deprecated]           ...           3 years ago
  • 1.1.3 [deprecated]           ...           3 years ago
  • 1.1.2 [deprecated]           ...           3 years ago
  • 1.1.1 [deprecated]           ...           3 years ago
  • 1.1.0 [deprecated]           ...           3 years ago
  • 1.0.1 [deprecated]           ...           3 years ago
  • 1.0.0 [deprecated]           ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 1
This Month 21
Last Day 1
Last Week 0
Last Month 33
Dev Dependencies (15)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |