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

eslint-config-edx

Package Overview
Dependencies
Maintainers
10
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-config-edx

ESLint config for edX JavaScript ES2015+ code.

  • 4.0.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
10
Created
Source

eslint-config-edx

npm version

This is the edX ESLint shareable config for linting ES2015+ JavaScript. See eslint-config-edx-es5 if you need to lint ES5 code.

Note that versions of eslint-config-edx-es5 prior to v2.0.0 are INCOMPATIBLE with this config.

edX maintains high-level documentation on the Open edX Developer's Guide on how we write new JavaScript features, including our use of RequireJS, Underscore and Backbone. This document and config seeks to be a lower-level guide on the semantics of how we write ES2015+ JavaScript, including nuts and bolts about spacing, syntax, and variable naming.

For the most part, edX follows the thoroughly documented Airbnb JavaScript Style Guide for ES2015. In addition to the base Airbnb rules, edX adds or extends several of our own. They are described below.

####dollar-sign

  • Setting: ["error", "ignoreProperties"]

  • Explanation: All variables that represent jQuery objects should be named starting with a $. Object properties may ignore this rule.

  • Example:

    // Correct pattern
    const $fooSpan = $('span#foo');
    
    const ignoreProps = {};
    ignoreProps.fooSpan = $('span#foo');
    
    // Linter error
    const fooSpan = $('span#foo');
    

Keywords

FAQs

Package last updated on 05 Jul 2018

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