Socket
Socket
Sign inDemoInstall

jscs

Package Overview
Dependencies
28
Maintainers
5
Versions
95
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

jscs


Version published
Maintainers
5
Install size
29.0 MB
Created

Changelog

Source

Version 2.4.0 (10-22-2015):

We're releasing pretty often now, right? :-)

Fix option

  • The --fix CLI flag can now be used programatically and through a .jscsrc config.

This is be useful for plugin authors (not only for jscs plugins but also for grunt/gulp/etc...)

Preset updates

  • The jquery preset (and dependant ones like wordpress and wikimedia) is less strict, whereas idiomatic is now more meticulous.

Couple new rules

[1,2,3] // valid
[1, 2, 3] // invalid
var test = function(one, two,
/*indent!*/  three) {
  ...
};

Some new rule options

obj["ಠ_ಠ"] // This is wrong!
obj.ಠ_ಠ // Now you get it :-)
var whatDoesAnimalsSay = {
    cat: 'meow', dog: 'woof', fox: 'What does it say?' // this is cool now
};

Fixes

// allows
var a = 1;

{
  let b = 1;
}

Readme

Source

Build Status Coverage Status Dependency Status devDependency Status Gitter

JSCS — JavaScript Code Style

JSCS is a code style linter for programmatically enforcing your style guide. You can configure JSCS for your project in detail using over 150 validation rules, including presets from popular style guides like jQuery, Airbnb, Google, and more.

More about JSCS
Who uses JSCS?

Keywords

FAQs

Last updated on 24 Oct 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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc