This repository has been archived by the owner on Nov 10, 2023. It is now read-only.
Update dependency eslint to version 3.14.1 #218
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This Pull Request updates dependency eslint from version 3.13.1 to 3.14.1
Changelog
3.14.1 / 2017-01-25
===================
I recently published a Pluralsight course on ESLint:
https://www.pluralsight.com/courses/eslint-better-code-quality. Adding a
youtube embed and link to the getting-started page.
Prior context here: Share ESLint Pluralsight course snippet on eslint.org? eslint/archive-website#324
3.14.0 / 2017-01-20
===================
`space-after-keywords` appears as deleted in the docs and it's confusing to reference it.
In the eqeqeq example, the word `warning` was used
instead of `warn`
This fixes an issue where `astUtils.getLocationFromRangeIndex` and `astUtils.getRangeIndexFromLocation` were using a regular expression susceptible to catastrophic backtracking. The match would take quadratic time in the length of the last line of the file. Since the file in no-multiple-empty-lines performance issue (hang?) eslint/eslint#7893 contains a 1.5 million character source map URL on the last line, rules like `no-multiple-empty-lines` would hang when using ast-utils to split the file into lines.
This issue only applies to files without trailing newlines, and is only noticable when the last line of the file contains more than 30000 characters or so. Since only a few rules use these `astUtils` functions, this would only appear when either `no-useless-escape` or `no-multiple-empty-lines` reports an error for the file.
Simplified example: Node 7.4.0 hangs when evaluating this expression.
```js
/[^\n]*\n/.test('A'.repeat(1000000))
```