Socket
Socket
Sign inDemoInstall

jscs

Package Overview
Dependencies
147
Maintainers
6
Versions
95
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install
Previous1
46
10Next

1.7.3

Diff

Changelog

Source

Version 1.7.3

  • Parsing: Use the harmony parser via the esnext flag in the config (Joel Kemp)
  • validateIndentation: handle breakless case statements (Mike Sherov)
mikesherov
published 1.7.2 •

Changelog

Source

Version 1.7.2

  • validateIndentation: fix return in switch failure (Mike Sherov)
  • Cast StringChecker maxErrors property to Number the first time (Florian Fesseler)
  • Fix format of --esnext and --max-errors in README (Joe Lencioni)
mikesherov
published 1.7.1 •

Changelog

Source

Version 1.7.1

  • validateIndentation: fix empty multiline function body regression (Mike Sherov)
mikesherov
published 1.7.0 •

Changelog

Source

Version 1.7.0

  • validateJSDoc: Deprecate rule (Joel Kemp)

  • Updated google preset (Richard Poole)

  • Add "requireSpaceBeforeBlockStatements" rule into the jquery preset (Oleg Gaidarenko)

  • CLI: Support --esnext to Parse ES6. (Robert Jackson)

  • CLI: Support a --max-errors option to limit the number of reported errors (mdevils)

  • New Rules: (require|disallow)CapitalizedComments (Joel Kemp)

  • New Rules: (require|disallow)SpacesInCallExpression (Mathieu Schroeter)

  • New Rules: (disallow|require)FunctionDeclarations (Nikhil Benesch)

  • New Rules: (require|disallow)PaddingNewLinesInObjects (Valentin Agachi)

  • Implement "only" for parens rule (Oleg Gaidarenko)

  • Simplify "allButNested" option for spaces rule (Oleg Gaidarenko)

  • Implement "except" option for spaces rule (Oleg Gaidarenko)

  • disallowMultipleVarDecl: Strict mode to disallow for statement exception (Joel Kemp)

  • disallowSpaceBeforeObjectKeys: fix parenthesised property value (Jindrich Besta)

  • requireSpaceBeforeObjectValues: fix parenthesised property value (Jindrich Besta)

  • validateIndentation: Allow non-indented "break" in "switch" statement (kevin.destrem)

  • ValidateIndentation: remove array and object indentation validation (Mike Sherov)

  • validateIndentation: Allow the "if" test to be nested. (Jesper Birkestrøm)

  • ValidateIndentation: Relax indentation rules for function expressions. (Mike Sherov)

  • requireCurlyBraces: support the with statement (Joel Kemp)

  • Fix invalid result of findXxxxToken methods when value is provided (Romain Guerin)

  • requireSpaceAfterLineComment: skips msjsdoc comments (Alexej Yaroshevich)

  • Docs: add a table of contents to README (Henry Zhu)

  • Docs: Make version numbers real markdown headers (Alexander Artemenko)

mikesherov
published 1.6.2 •

Changelog

Source

Version 1.6.2

  • Fix disallowMultipleLineBreaks with shebang line (Nicolas Gallagher)
  • Improve validateParameterSeparator rule (David Chambers)
  • Add rule for parameter separation validation (James Allardice)
  • Add new rules for object values (Vivien TINTILLIER)
  • Docs: add intellij plugin to friendly packages (idok)
  • Support predefined values for another three rules (Joel Kemp)
markelog
published 1.6.1 •

Changelog

Source

Version 1.6.1

  • Airbnb preset (Joel Kemp)
  • Improve crockford preset (Vivien TINTILLIER)
  • Avoid node.js 0.10.x exit code bug for MS Windows (Taku Watabe)
  • Docs: Update packages and extensions sections with new URLs. (Mike Sherov)
mikesherov
published 1.6.0 •

Changelog

Source

Version 1.6.0

  • Errors: ability to suppress errors via inline comments. (Mike Sherov)
  • Fix Anonymous Functions in google preset (Ayoub Kaanich)
  • Enhance google's preset (Joel Kemp)
  • Add "iterateTokenByValue" method (Oleg Gaidarenko)
  • Node -> Tokens navigation, token list navigation (Marat Dulin)
  • Do not strip json config from comments (Oleg Gaidarenko)
  • maximumLineLength should not be destructive (Oleg Gaidarenko)
  • Use tilde for package definition (Jordan Harband)
  • Improve stdin support (Joel Kemp)
  • Use correct logic for piped input (Joel Kemp)
  • Properly concatenate large files read from stdin (Nikhil Benesch)
  • Add link to the Atom editor plugin for JSCS (Addy Osmani)
  • Setting default tree to empty object (Bryan Donovan)
mikesherov
published 1.5.9 •

Changelog

Source

Version 1.5.9

  • Binary Rules: Remove colon check from all binary rules (Oleg Gaidarenko)
  • Presets: Add Mr. Doob's Code Style (MDCS) (gero3)
  • Presets: Add Crockford (Timo Tijhof)
  • Google Preset: Add missing constraints (Turadg Aleahmad)
  • Yandex Preset: Remove repeated rule in yandex preset (Benjamin Tamborine)
  • Yandex Preset: updated to be more accurate (ikokostya)
  • New Rules: (require|disallow)NewlineBeforeBlockStatements (cipiripper)
  • New Rules: (require|disallow)AnonymousFunctions (Rachel White)
  • New Rules: (disallow|require)SpacesInFunction (Mike Sherov)
  • CLI: Accepts piped input from stdin (Joel Kemp)
  • CLI: Add --verbose option that adds rule names to error output. (Mike Sherov)
  • Errors: report Esprima parse errors as rule violations. (Mike Sherov)
  • disallowMultipleLineBreaks: fix issues with shebang line (Bryan Donovan)
  • spacesInFunctionExpressions: ignore function declarations. (Mike Sherov)
mikesherov
published 1.5.8 •

Changelog

Source

Version 1.5.8

  • Errors: include which rule triggered the error in the error output (gero3)
  • requireTrailingComma: Allow single property objects / arrays to ignore the rule. (Joel Kemp)
  • requireTrailingComma: Avoids false positives from non object/array literal definitions. (Joel Kemp)
  • validateIndentation: fix indentation for non-block if that has block else. (Mike Sherov)
  • maximumLineLength: Document the required and default values. (Joel Kemp)
markelog
published 1.5.7 •

Changelog

Source

Version 1.5.7

  • Exclude colon from binary rule of yandex preset (Oleg Gaidarenko)
  • wikimedia: Add 'case' and 'typeof' to requireSpaceAfterKeywords (Timo Tijhof)
  • Correct deal with exclusion and extensions (Oleg Gaidarenko)
  • disallowPaddingNewlinesInBlocks: fix false negatives with newline after closing curly. (Iskren Chernev)
  • Include jscs-browser file to npm package (Oleg Gaidarenko)
  • Clarify docs of use of jscs-browser.js (Oleg Gaidarenko)
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc