Socket
Socket
Sign inDemoInstall

@tarantool.io/import-sort-style

Package Overview
Dependencies
2
Maintainers
4
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @tarantool.io/import-sort-style

Tarantool' personal style for import-sort.


Version published
Maintainers
4
Created

Readme

Source

@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';

...

Keywords

FAQs

Last updated on 24 Mar 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc