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

eslint-config-cellule

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-config-cellule

Define my favorite rules for eslint

  • 4.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

eslint-config-cellule

This is a set of rules and configuration for eslint using Shareable Config.

Installation

$ npm install --save-dev eslint@~3.3.0 eslint-config-cellule

Usage

In your .eslintrc config, extends to this module with

{
  "extends": ["cellule"]
}

Available config files

  • "cellule/global.js": Default config (ie: extends: "cellule"). This contains mostly rules to prevent errors and covers best practices.
  • "cellule/frontend.js": Config for files targeted for the browser.
  • "cellule/babel.js": Config for when you use babel to compile your sources.
  • "cellule/chakra.js": Config when your host is ch.exe for ChakraCore.
  • "cellule/codestyle.js": Config covering mostly code style preferences.
  • "cellule/es2015.js": Config when your host supports es2015 without babel.
  • "cellule/node.js": Config targeting node environment.
  • "cellule/flow.js": Config when using flow.
    • babel-eslint: Parser supporting extended language features
    • eslint-plugin-flowtype: An eslint plugin that makes flow type annotations global variables and marks declarations as used
  • "cellule/react.js": Config when you use React in your sources.

In eslint Shareable Config the order in which you placed your extends impacts what will take precedence. Here's a recommended order for this package of rules. (You will rarely if ever need all of them in one project)

{
  "extends": [
    "cellule/global.js",
    "cellule/frontend.js",
    "cellule/node.js",
    "cellule/chakra.js",
    "cellule/codestyle.js",
    "cellule/es2015.js",
    "cellule/babel.js",
    "cellule/react.js",
    "cellule/flow.js"
  ]
}

FAQs

Package last updated on 22 Aug 2016

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