Socket
Socket
Sign inDemoInstall

eslint-config-pretty

Package Overview
Dependencies
326
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    eslint-config-pretty

A set of shareable eslint configs


Version published
Weekly downloads
23
decreased by-39.47%
Maintainers
1
Install size
32.7 MB
Created
Weekly downloads
 

Readme

Source

eslint-config

Set of ESLint shareable config.

Travis Code Climate Code Climate Codecov

npm npm Greenkeeper badge license

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 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

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

Keywords

FAQs

Last updated on 27 Aug 2017

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc