Skip to content

Latest commit

 

History

History
51 lines (37 loc) · 971 Bytes

how-to-migrate-from-v3-to-v4.md

File metadata and controls

51 lines (37 loc) · 971 Bytes

How to migrate from v3.x to v4.x

Table of Contents

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:

import {
// ----^ (start of the error)
    ComponentA
} from './components/component-a';
// -----------------------------^ (end of the error)

Fixed behavior:

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:

// eslint-disable-next-line
import {
    ComponentA
} from './components/component-a';

Should be moved here:

import {
    ComponentA
// eslint-disable-next-line
} from './components/component-a';