1.1.24 • Published 5 months ago

prettier-plugin-import-sorting v1.1.24

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

prettier-remove-unused-imports

A Prettier plugin to remove unused imports from your code.

Installation

You can install the plugin using Yarn:

yarn add --dev prettier-remove-unused-imports

Setup

Add the plugin to your Prettier configuration:

const unusedImportPlugin = require('prettier-remove-unused-imports');

module.exports = {
    plugins: [unusedImportPlugin],
    importOrder: [
        '<UNKNOWN>',
        '^@example/(.*)$',
        '^@another-example/(.*)$',
        '^example-contexts',
        '^example-components',
        '^example-utils',
        '^example-styles',
        '^(.*).svg',
        '^(.*).scss',
        '^../',
        '^./',
    ],
};
1.1.24

5 months ago

1.1.23

5 months ago

1.1.22

5 months ago

1.1.21

5 months ago

1.1.20

5 months ago

1.1.19

5 months ago

1.1.18

5 months ago

1.1.17

5 months ago

1.1.16

5 months ago

1.1.15

5 months ago

1.1.14

5 months ago

1.1.13

5 months ago

1.1.12

5 months ago

1.1.11

5 months ago

1.1.10

5 months ago

1.1.9

5 months ago

1.1.8

5 months ago

1.1.7

5 months ago

1.1.6

5 months ago

1.1.5

5 months ago

1.1.4

5 months ago