/plugin-layout

Primary LanguageTypeScriptBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

Plugin Layout - Table imports prettier plugin

Import sorting partially supported via patched eslint-plugin-simple-import-sort

Turn this

import React, { useState, useCallback } from 'react'
import { useSomeLogic, configurate } from 'pkg'
import * as lodash from 'lodash'
import { writeFile, readFile, readdir } from 'node:fs'
import type { ButtonProps } from './button.interface'
import type { InputProps } from './input.interface'
import { type FC } from 'react'

Into this

import      React            from 'react'
import      { useCallback }  from 'react'
import      { useState }     from 'react'
import type { FC }           from 'react'

import      { readdir }      from 'node:fs'
import      { readFile }     from 'node:fs'
import      { writeFile }    from 'node:fs'

import      * as lodash      from 'lodash'
import      { configurate }  from 'pkg'
import      { useSomeLogic } from 'pkg'

import type { ButtonProps }  from './button.interface'
import type { InputProps }   from './input.interface'

Installation

soon

Import sorting configuration

soon