Node Package Master

    import-sort-style-loom

    0.0.4 • Public • Published

    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'

    Keywords

    none

    Install

    npm i import-sort-style-loom

    DownloadsWeekly Downloads

    19,543

    Version

    0.0.4

    License

    MIT

    Unpacked Size

    5.67 kB

    Total Files

    4

    Last publish

    Collaborators

    • pauliusdragunas
    • cndreisbach