Skip to content

Latest commit

 

History

History
27 lines (19 loc) · 497 Bytes

group-import.md

File metadata and controls

27 lines (19 loc) · 497 Bytes

no-relative-path

Enforce grouping similar import statements together

Rule Details

Examples of incorrect code for this rule:

// Tests
import AppTests from 'tests/Yup.test';

// Components
import App from 'components/App';

import NewTest from 'tests/App.test';
import YoTest from 'tests/yo.test';

Examples of correct code for this rule:

// Tests
import AppTests from 'tests/Yup.test';
import NewTest from 'tests/App.test';
import YoTest from 'tests/yo.test';