jscs v1.11.0 Release Notes

  • โšก๏ธ Preset Updates

    • Preset: add "requireSpaceBetweenArguments" rule to all presets (Oleg Gaidarenko)
    • ๐Ÿšš Presets: Remove use of outdated validateJSDoc rule (Joel Kemp)
    • Preset: Add "requireSpacesInsideParentheses" to jquery preset (Oleg Gaidarenko)
    • Preset: switch multipleVarDecl rule in airbnb preset (Martin Bohal)
    • Preset: change value of "requireDotNotation" rule for jquery preset (Oleg Gaidarenko)

    ๐Ÿ†• New Config Options

    • ๐Ÿ”ง Configuration: Auto-generation (Joel Kemp)
    • ๐Ÿ‘ Config: Add support for custom Esprima options. (Chris Rebert)

    ๐Ÿ†• New Rules / Rule Values

    • ๐Ÿ†• New Rule: disallowKeywordsInComments (Joe Sepi)
    • ๐Ÿ†• New Rules: (require|disallow)SpacesInsideBrackets (Mike Sherov)
    • validateIndentation: new rule value - includeEmptyLines (Jonathan Gawrych)
    • disallowTrailingWhitespace: new rule value - ignoreEmptyLines (Jonathan Gawrych)
    • ๐Ÿ†• New Rule: disallowCurlyBraces (Henry Zhu)
    • requireCapitalizedConstructors: accept list of exempt constructors (Sam L'ecuyer)
    • ๐Ÿ‘ป validateIndentation: exception to indentation rules for module pattern (Mike Sherov)

    ๐Ÿ› Bug fixes

    • (require|disallow)SpacesInsideArrayBrackets: only check for ArrayExpressions (Mike Sherov)
    • ๐Ÿšš JsFile: remove all duplicate tokens. (Mike Sherov)
    • ObjectExpression Rules: take into account shorthand syntax. (Mike Sherov)
    • disallowSpaceBeforeKeywords: don't report an error on back-to-back keywords (Mike Sherov)
    • ๐Ÿ†“ requireParenthesesAroundIIFE: fix crash on semicolon-free IIFE (Yuheng Zhang)
    • ๐Ÿ“œ Parsing: tolerate non-leading import statements (Chris Rebert)
    • requireCapitalizedComments: improve letter recognition (Mathias Bynens)
    • requireSpaces*: fix error message to 'Exactly one space required' (Henry Zhu)
    • StringChecker: leading hashbangs should still report correct error line numbers (Mike Sherov)
    • validateIndentation: don't check bracelets else indentation. (Mike Sherov)
    • validateIndentation: don't consider return when classifying break indentation (Mike Sherov)
    • validateIndentation: fix multiline while in doWhile statements (Mike Sherov)
    • validateIndentation: ensure pushes and pops are matching (Mike Sherov)
    • ๐Ÿ†“ validateIndentation: ensure semicolon free indentations are on correct line (Mike Sherov)
    • SpaceBetweenArguments: catch call expression arguments (Oleg Gaidarenko)
    • token-assert: add check for document start to prevent crashes (Alexej Yaroshevich)
    • requireSpaceBeforeBlockStatements: reworded an error message (Alexej Yaroshevich)

    Infrastructure Changes

    • js-file: added getCommentAfter/BeforeToken functions (Alexej Yaroshevich)
    • ๐Ÿšš cleanup: remove lib/token-helper (Mike Sherov)
    • ๐Ÿšš JsFile: move getLinesWithCommentsRemoved from comment-helper (Mike Sherov)

    Misc.

    • disallowSpacesInsideArrayBrackets: fix rule name in example (Gustavo Henke)
    • โšก๏ธ Misc: update dependencies (Oleg Gaidarenko)
    • various rules: use tokenAssert (Henry Zhu)
    • ๐Ÿ— Speed up builds by using Docker-based Travis CI (Pavel Strashkin)
    • 100% code coverage on various files(Mike Sherov)
    • โœ… disallowSpace(Before | After)Keywords: more tests (Alexej Yaroshevich)
    • โœ… requireCurlyBrace: more tests (Alexej Yaroshevich)
    • CLI: correct JSDoc comment (Oleg Gaidarenko)
    • requireQuotedKeysInObjects: fixing file permissions (Joe Sepi)
    • ๐Ÿ”„ Changelog: correct version number (Oleg Gaidarenko)
    • ๐Ÿ“„ Docs: add missed commit to the changelog (Oleg Gaidarenko)
    • ๐Ÿ’… Misc: .editorconfig - fix for invalid indent_style value (Dmitriy Schekhovtsov)
    • โšก๏ธ Update regenerate to ~1.2.1 (Chris Rebert)
    • โž• Add description to commander CLI help (Chris Rebert)