Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

eslint-config-pretty

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-config-pretty

Modular ESLint configuration that works well with prettier

  • 2.0.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
18
decreased by-63.27%
Maintainers
1
Weekly downloads
 
Created
Source

eslint-config-pretty

Modular ESLint shareable config that works well with prettier.

npm npm Greenkeeper badge license semantic-release Commitizen friendly

Travis Codecov

Installation

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

$ npm install eslint-config-pretty 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 eslint-config-pretty --save-dev
$ install-peerdeps eslint-config-pretty --dev

Usage

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

{
  extends: [
    'pretty/es6',
    'pretty/node',
    'pretty/prettier',
  ],
  rules: {
    // Additional, project specific rules...
  }
}

Config files

NameDescriptionExtends
prettyBase/generic configuration
pretty/jasmineRules specific to Jasminepretty
pretty/importRules related to ECMAScript 2015 and Node importspretty
pretty/nodeRules specific to Node JSpretty, import
pretty/es6Rules specific to ECMAScript 2015pretty, import
pretty/avaRules specific to AVApretty, es6
pretty/promiseRules specific to Promisespretty, es6
pretty/asyncRules specific to async/awaitpretty, promise
pretty/prettierTo be added last in the extends array when using prettier. Adds eslint-plugin-prettier and eslint-config-prettier

Keywords

FAQs

Package last updated on 29 Aug 2017

Did you know?

Socket

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc