Socket
Socket
Sign inDemoInstall

eslint-config-pretty

Package Overview
Dependencies
335
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    eslint-config-pretty

Modular ESLint configuration that works well with prettier


Version published
Maintainers
1
Install size
31.6 MB
Created

Readme

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

Last updated on 02 Sep 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