import-sort-style-loom

A style for [import-sort](https://github.com/renke/import-sort) that is focused on modules.

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
import-sort-style-loom
100.0.4a year ago4 years agoMinified + gzip package size for import-sort-style-loom in KB

Readme

import-sort-style-loom
A style for import-sort that is focused on modules.
// Node modules
import fs from 'fs'

// Imported modules
import fsExtra from 'fs-extra';

// Resolved modules
import action from 'actions/something';
import constant from 'constants/something';
import creator from 'creators/something';
import middleware from 'middleware/something';
import reducer from 'reducers/something';
import utility from 'utilities/something';

// Absolute modules
import * as bar from 'bar';
import bar, * as baz from 'bar';
import bar from 'bar';
import bar, { baz } from 'bar';
import { bar } from 'bar';
import type { Bar, Baz } from 'bar';

// Relative modules
import * as bar from './bar';
import bar, * as baz from './bar';
import bar from './bar';
import bar, { baz } from './bar';
import { bar } from './bar';
import type { Bar, Baz } from './bar';
import * as bar from './../bar';
import bar, * as baz from './../bar';

// resolved components
import Foo from 'components/foo';

// Absolute modules with no members
import 'foo';

// Relative modules with no members
import './bar';

// css modules
import style from './styles.module.less'