eslint-plugin-logical-imports 0.2.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +19 -8
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -297,24 +297,35 @@ the specifiers will not be sorted.
297
297
 
298
298
  Before:
299
299
 
300
+ <!-- example:before -->
301
+
300
302
  ```js
301
- import { useState, useEffect, useMemo } from 'react';
302
- import path from 'node:path';
303
- import { foo } from './foo';
304
- import fs from 'node:fs';
303
+ import { z } from 'zod';
304
+ import { format } from 'date-fns';
305
+ import { readFile } from 'node:fs/promises';
306
+ import { useState, useEffect } from 'react';
307
+ import { Component as Widget } from './app/widget';
308
+ import express from 'express';
309
+ import { format as utilFormat } from 'node:util';
310
+ import * as utils from './utils';
305
311
  ```
306
312
 
307
313
  After, with recommended config:
308
314
 
315
+ <!-- example:after -->
316
+
309
317
  ```js
310
- import fs from 'node:fs';
311
- import path from 'node:path';
318
+ import { readFile } from 'node:fs/promises';
319
+ import { format as utilFormat } from 'node:util';
312
320
 
321
+ import express from 'express';
322
+ import { format } from 'date-fns';
313
323
  import { useEffect } from 'react';
314
- import { useMemo } from 'react';
315
324
  import { useState } from 'react';
325
+ import { z } from 'zod';
316
326
 
317
- import { foo } from './foo';
327
+ import * as utils from './utils';
328
+ import { Component as Widget } from './app/widget';
318
329
  ```
319
330
 
320
331
  ## Change log
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-logical-imports",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "ESLint plugin that enforces one specifier per import statement and alphabetical sort by local symbol name, with configurable block grouping.",
5
5
  "license": "MIT",
6
6
  "author": "Phil Booth (https://philbooth.me/)",