import-sort
- Version 6.0.0
- Published
- 17.1 kB
- 5 dependencies
- ISC license
Install
npm i import-sort
yarn add import-sort
pnpm add import-sort
Overview
Sort ES2015 (aka ES6) imports programmatically.
Index
Functions
function applyChanges
applyChanges: (code: string, changes: ICodeChange[]) => string;
function importSort
importSort: ( code: string, rawParser: string | IParser, rawStyle: string | IStyle, file?: string, options?: object) => ISortResult;
function sortImports
sortImports: ( code: string, parser: IParser, style: IStyle, file?: string, options?: object) => ISortResult;
Interfaces
interface ICodeChange
interface ICodeChange {}
interface ISortResult
interface ISortResult {}
Package Files (1)
Dependencies (5)
Dev Dependencies (19)
- @types/chai
- @types/mocha
- @types/node
- @types/resolve
- @typescript-eslint/eslint-plugin
- chai
- eslint
- eslint-config-airbnb
- eslint-config-prettier
- eslint-plugin-import
- eslint-plugin-jsx-a11y
- eslint-plugin-react
- import-sort-parser-babylon
- import-sort-parser-typescript
- import-sort-style-eslint
- mocha
- rimraf
- ts-node
- typescript
Peer Dependencies (0)
No peer dependencies.
Badge
To add a badge like this oneto your package's README, use the codes available below.
You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/import-sort
.
- Markdown[![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/import-sort)
- HTML<a href="https://www.jsdocs.io/package/import-sort"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>
- Updated .
Package analyzed in 3659 ms. - Missing or incorrect documentation? Open an issue for this package.