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)