@tarantool.io/import-sort-style
v1.0.4
Published
Tarantool' personal style for import-sort.
Downloads
1,455
Readme
@tarantool.io/import-sort-style
Tarantool' personal style for import-sort.
Usage
Add a key in your .importsortrc.js file.
module.exports = require('@tarantool.io/import-sort-style/config');
AND
Enable import-sort in your .prettierrc.js file.
module.exports = require('@tarantool.io/prettier-config/with-import-sort');
Sorting Example
// Modules without members
import 'first-module';
// Installed and scoped modules
import React from 'react';
import ReactDOM from 'react-dom';
import _ from 'lodash';
import { Button } from '@tarantool.io/ui-kit';
// Local resolved modules
import Text from '~/components/Text';
import Link from 'src/components/Link';
// Siblings and parents
import { parents } from '../local';
import { siblings } from './local';
// Styles
import { styles } from './Component.styles';
...