Skip to content

loomhq/import-sort-style-loom

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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'

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •