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

@centerforopenscience/eslint-config

Package Overview
Dependencies
Maintainers
5
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@centerforopenscience/eslint-config

ESLint configuration for the Center for Open Science

  • 3.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
40
increased by25%
Maintainers
5
Weekly downloads
 
Created
Source

Center for Open Science JavaScript Style

JavaScript Style based on AirBnB's JavaScript Guide

npm version Build Status

@centerforopenscience/eslint-config

Generic ESLint configuration for the Center for Open Science

Based on AirBnB's JavaScript Guide, with a few notable exceptions including:

  • Indentation of 4 spaces instead of 2
  • Allow for..of loops
  • Allow ++
  • Turn off some import rules and make others warnings
  • max-len is a warning, until we get the various repos cleaned up
Usage

Add the following to your ESLint config file:

{
    "extends": "@centerforopenscience"
}

Note: ESLint automatically appends /eslint-config so it is not necessary to add it here.

@centerforopenscience/eslint-config/ember

Ember ESLint configuration for the Center for Open Science

Based on COS's Base Config with eslint-plugin-ember

Since route-able components aren't stable, this is unnecessary:

  • alias-model-in-controller

This will produce too many errors or warnings to count, so for now, it's turned completely off:

  • use-ember-get-and-set

The following are set to warnings, but will become errors later:

  • no-observers
  • no-function-prototype-extensions
  • named-functions-in-promises
  • order-in-components
  • order-in-routes
  • order-in-controllers
Usage

Add the following to your ESLint config file:

{
    "extends": "@centerforopenscience/eslint-config/ember"
}

Note: You must include /eslint-config in the path for non-default configurations.

Keywords

FAQs

Package last updated on 28 Dec 2019

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