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

mofo-style

Package Overview
Dependencies
Maintainers
2
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mofo-style

A Javascript style guide including linters for the Mozilla Foundation Engineering team.

  • 1.1.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
21
decreased by-36.36%
Maintainers
2
Weekly downloads
 
Created
Source

Mozilla Foundation JS Style Guide

This repo contains "RC" files, which represent our standard rules, for several different JavaScript linters (JSHint, JSCS, and JSBeautifier).

In your project you can use npm to install the RC files as a module, which can then be individually used by your project's build system (eg: Gulp or Grunt). Most linting tasks/plugins allow you to specify an external RC file, which you can point to your copies in node_modules.

Simply run npm install mofo-style --save-dev.

Task Naming

You should have at least 2 style tasks in your runner.

  • validate - Run all 3 linters in read only mode and report any errors.
  • clean - Run all 3 linters but also run JSBeautifier in write mode to automatically fix any formatting errors that it's capable of repairing.

Rules

Refer to the RC files for specifics.

Roadmap

  • Deprecate JSBeautifier - JSCS has an open issue to add autoformatting, which will eliminate the need for JSBeautifier.

Keywords

FAQs

Package last updated on 30 Nov 2015

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