Giter VIP home page Giter VIP logo

javascript's Introduction

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.

javascript's People

Contributors

binoculars avatar jamescdavis avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.