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.
- package/README.md +19 -8
- 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 {
|
|
302
|
-
import
|
|
303
|
-
import {
|
|
304
|
-
import
|
|
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
|
|
311
|
-
import
|
|
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
|
|
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.
|
|
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/)",
|