Skip to content

Update dependency eslint to version 3.17.1#123

Merged
rarkins merged 2 commits intomasterfrom
renovate/eslint-3.x
Mar 13, 2017
Merged

Update dependency eslint to version 3.17.1#123
rarkins merged 2 commits intomasterfrom
renovate/eslint-3.x

Conversation

@renovate-bot
Copy link
Copy Markdown
Collaborator

@renovate-bot renovate-bot commented Mar 3, 2017

This Pull Request updates dependency eslint from version 3.16.1 to 3.17.1

Changelog

3.17.1 / 2017-03-06

  • 3.17.1
  • Build: package.json and changelog update for 3.17.1
  • Build: change mock-fs path without SSH (fixes #8207) (#8208)
  • Fix: nonblock-statement-body-position multiline error (fixes #8202) (#8203)
    The nonblock-statement-body-position rule is intended to compare the start line of a statement with the end line of the previous token. Due to a typo, it was comparing the end line of the statement instead, which caused false positives for multiline statements.
  • Fix: `operator-assignment` with parenthesized expression (fixes #8190) (#8197)
  • Chore: add eslint-plugin-eslint-plugin (#8198)
  • Chore: add missing `output` property to tests (#8195)

3.17.0 / 2017-03-03

  • 3.17.0
  • Build: package.json and changelog update for 3.17.0
  • Update: deprecate `applyDefaultPatterns` in `line-comment-position` (#8183)
  • Fix: Don't autofix `+ +a` to `++a` in space-unary-ops (#8176)
    • Fix: Don't autofix `+ +a` to `++a` in space-unary-ops
      Most of the time, it's legal to remove spacing between adjacent operator tokens,
      but in a case like `+ +a` it changes the behavior, so we should skip autofixing.
      Another example is `+ ++a`, and the `-` versions of all of these. Since there
      are relatively few unary operators and `++` and `--` are only allowed in limited
      contexts, there aren't a ton of cases to think through here, so hopefully this
      is all of them.
    • Use null in tests to assert that no autofixing happens
  • Build: Sort rules before dumping them to doc files (#8154)
    Fixes #8013.
  • Chore: Upgrade to a patched version of mock-fs (fixes #8177) (#8188)
    A few features of the `mock-fs` module are broken in Node 7.7.0+. Since our tests rely on these features, our build is currently broken. This commit temporarily updates to a patched version of mock-fs from GitHub in order to fix our build. (I've also made a pull request with the patch to the main mock-fs repo.) This is intended to be a temporary fix until a new version of mock-fs with the patch included gets released to npm.
  • Update: ignore eslint comments in lines-arount-comment (fixes #4345) (#8155)
    • Update: ignore eslint comments in lines-around-comment (fixes #4345)
    • Refactor regexp into utils
    • Added tests for custom ignore pattern and disabled default pattern.
    • Update docs
    • Use regexp instead of string for default comments ignore pattern
    • falls through pattern only applies to line-comment-position
    • Rename option name to applyDefaultIgnorePatterns
    • Missing output
  • New: add SourceCode#getLocFromIndex and #getIndexFromLoc (fixes #8073) (#8158)
  • Update: let RuleTester cases assert that no autofix occurs (fixes #8157) (#8163)
  • Docs: improve documentation for RuleTester cases (#8162)
    This lists the available properties for RuleTester cases rather than relying on a usage example.
  • Chore: upgrade `coveralls` to ^2.11.16 (#8161)
  • Fix: padded-blocks autofix problems with comments (#8149)
    • Fix: padded-blocks autofix problems with comments
    • More edge cases
  • Docs: Add missing space to `create` in `no-use-before-define` (#8166)
  • Docs: Remove unneeded statement about autofix (#8164)
  • New: no-compare-neg-zero rule (#8091)
    • New:no-eq-neg-zero
    • bugfix
    • add valid test
    • fix
    • doc: no-eq-neg-zero
    • list to be alphabetical
    • add additional test
    • recommended: false
    • add additional check
    • Update: to fix @not-an-aardvark's comments
    • add some tests
    • Update: rename, check more operators, add tests
    1. rename the rule no-eq-neg-zero => no-compare-neg-zero
    2. check operator(>,<, ==, etc.)
    3. add some more tests
    • Update:
      1.use set instead of regex, to improve readablity.
      2.make the error message more correct.
    • Update:
    1. doc description
    2. author: @aladdin-add
    3. add test: Object.is(x, -0)
    • Update: add valid test: Object.is(x, -0)
    • Update: author Aladdin-ADD
    • Update: doc(no-compare-neg-zero)
  • Fix: Add a utility to avoid autofix conflicts (fixes #7928, fixes #8026) (#8067)
    • Fix: Add a utility to avoid autofix conflicts (fixes #7928, fixes #8026)
      As discussed in #7928, this commit modifies the `no-else-return`,
      `no-useless-return`, `semi`, and `no-extra-semi` rules to generate fix commands
      with a larger range. For the first two, the entire enclosing function is
      "locked", and for the semicolon rules, just the surrounding tokens are "locked".
      This works using a new `FixTracker` class, which is sort of a builder-style
      class that allows the rule to specify the range to retain and then supply an
      operation, and the class figures out the final text replacement.
      In the future, `FixTracker` could also allow multiple replacement operations,
      e.g. to make the `no-extra-parens` code a little simpler. It also might be
      useful as a public API in the future.
      To get the existing tests to work, I added an optional preference to run
      multiple passes for an autofix test. It turns out that running multiple passes
      by default causes problems in a number of tests, and likely slows down the
      tests, so I just made it opt-in for now.
    • Revert test change, add comments, make FixTracker more robust
  • New: nonblock-statement-body-position rule (fixes #6067) (#8108)
    • New: nonblock-statement-body-position rule (fixes #6067)
    • Don't check the 'else if' pattern
  • Chore: remove unneeded devDeps `linefix` and `gh-got` (#8160)
  • Update: ignore negative ranges in fixes (#8133)
  • Docs: `lines-around-comment` doesn't disallow empty lines (#8151)
  • Chore: upgrade eslint-plugin-node (#8156)
  • Fix: Make RuleTester handle empty-string cases gracefully (fixes #8142) (#8143)
  • Docs: Add details about "--fix" option for "sort-imports" rule (#8077)
    • Docs: Remove "fixable" statement for "sort-imports" rule
    • Docs: Add details about "--fix" option for "sort-imports" rule
  • Add option to ignore property in no-param-reassign (#8087)
    • New: ignore assigned property in no-param-reassign (fixes #6505)
    • Use oneOf and enum in no-param-reassign schema
    • Ensure `ignorePropertyAssignmentsFor` uniqueness
    • Add documentation for ignorePropertyAssignmentsFor
    • Add more tests to ignorePropertyAssignmentsFor
    • Fix documentation typo
    • s/ignorePropertyAssignmentsFor/ignorePropertyModificationsFor/g
    • Add tests for all types of modifying expressions
    • AssignmentExpression (existed in previous commits)
    • UpdateExpression (new)
    • UnaryExpression (new)
    • Add test for nested properties
  • Fix: Improve keyword-spacing typescript support (fixes #8110) (#8111)
  • New: Allow regexes in RuleTester (fixes #7837) (#8115)
    • New: Allow regexes in RuleTester (fixes #7837)
    • Update test description
  • Build: display rules’ meta data in their docs (fixes #5774) (#8127)
  • Update: include function name in report message if possible (fixes #7260) (#8058)
  • Fix: `ignoreRestSiblings` option didn't cover arguments (fixes #8119) (#8120)

@codecov-io
Copy link
Copy Markdown

codecov-io commented Mar 3, 2017

Codecov Report

Merging #123 into master will not change coverage.
The diff coverage is n/a.

@@          Coverage Diff           @@
##           master    #123   +/-   ##
======================================
  Coverage    68.5%   68.5%           
======================================
  Files          19      19           
  Lines         800     800           
  Branches      127     127           
======================================
  Hits          548     548           
  Misses        252     252

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f5091c6...d4d18a1. Read the comment docs.

@renovate-bot renovate-bot changed the title Update dependency eslint to version 3.17.0 Update dependency eslint to version 3.17.1 Mar 6, 2017
@rarkins rarkins merged commit 3937086 into master Mar 13, 2017
@rarkins rarkins deleted the renovate/eslint-3.x branch March 13, 2017 04:54
@rarkins rarkins removed the ready label Mar 13, 2017
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Dec 16, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.