From 990aa7310ee6f14a33f45d1982e962c5cd24e4b3 Mon Sep 17 00:00:00 2001 From: Axel Rindle Date: Sat, 7 Dec 2024 22:14:29 +0100 Subject: [PATCH] docs: update README.md --- .../eslint-plugin-import-newlines/README.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/packages/eslint-plugin-import-newlines/README.md b/packages/eslint-plugin-import-newlines/README.md index 5b2b4fd..9042d8d 100644 --- a/packages/eslint-plugin-import-newlines/README.md +++ b/packages/eslint-plugin-import-newlines/README.md @@ -7,6 +7,25 @@ Parts of the code are taken from [SeinopSys/eslint-plugin-import-newlines](https://github.com/SeinopSys/eslint-plugin-import-newlines), which is also [MIT licensed](https://github.com/SeinopSys/eslint-plugin-import-newlines/blob/main/LICENSE.md). +Turns this: + +```js +import { AlertDialog, AlertDialogCancel, AlertDialogContent, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle } from './ui/alert-dialog' +``` + +into this: + +```js +import { + AlertDialog, + AlertDialogCancel, + AlertDialogContent, + AlertDialogFooter, + AlertDialogHeader, + AlertDialogTitle +} from './ui/alert-dialog' +``` + ## Install ```shell