-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #319 from javierbrea/release
Release v4.0.0
- Loading branch information
Showing
45 changed files
with
1,224 additions
and
249 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,6 +23,7 @@ yarn-error.log* | |
# ides | ||
.idea | ||
.vs | ||
.vscode | ||
|
||
# stryker temp files | ||
/reports | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
# How to migrate from v3.x to v4.x | ||
|
||
## Table of Contents | ||
|
||
- [Breaking changes](#breaking-changes) | ||
- [How to migrate](#how-to-migrate) | ||
|
||
## Breaking changes | ||
|
||
There is only one breaking change in the v4.0.0 release. We've fixed the bug that caused ESLint to incorrectly mark the error position for multiline imports. | ||
|
||
Previous behavior: | ||
|
||
```js | ||
import { | ||
// ----^ (start of the error) | ||
ComponentA | ||
} from './components/component-a'; | ||
// -----------------------------^ (end of the error) | ||
``` | ||
|
||
Fixed behavior: | ||
|
||
```js | ||
import { | ||
ComponentA | ||
} from './components/component-a'; | ||
// ----^ (start) ---------------^ (end) | ||
``` | ||
|
||
## How to migrate | ||
|
||
You need to adjust your `eslint-disable-next-line` directives to match the new position. | ||
|
||
For example, this directive: | ||
|
||
```js | ||
// eslint-disable-next-line | ||
import { | ||
ComponentA | ||
} from './components/component-a'; | ||
``` | ||
|
||
Should be moved here: | ||
|
||
```js | ||
import { | ||
ComponentA | ||
// eslint-disable-next-line | ||
} from './components/component-a'; | ||
``` |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.