|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 2 weeks ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
866 bytes
|
| Line | |
|---|
| 1 | # import/no-empty-named-blocks
|
|---|
| 2 |
|
|---|
| 3 | 🔧💡 This rule is automatically fixable by the [`--fix` CLI option](https://eslint.org/docs/latest/user-guide/command-line-interface#--fix) and manually fixable by [editor suggestions](https://eslint.org/docs/latest/use/core-concepts#rule-suggestions).
|
|---|
| 4 |
|
|---|
| 5 | <!-- end auto-generated rule header -->
|
|---|
| 6 |
|
|---|
| 7 | Reports the use of empty named import blocks.
|
|---|
| 8 |
|
|---|
| 9 | ## Rule Details
|
|---|
| 10 |
|
|---|
| 11 | ### Valid
|
|---|
| 12 |
|
|---|
| 13 | ```js
|
|---|
| 14 | import { mod } from 'mod'
|
|---|
| 15 | import Default, { mod } from 'mod'
|
|---|
| 16 | ```
|
|---|
| 17 |
|
|---|
| 18 | When using typescript
|
|---|
| 19 |
|
|---|
| 20 | ```js
|
|---|
| 21 | import type { mod } from 'mod'
|
|---|
| 22 | ```
|
|---|
| 23 |
|
|---|
| 24 | When using flow
|
|---|
| 25 |
|
|---|
| 26 | ```js
|
|---|
| 27 | import typeof { mod } from 'mod'
|
|---|
| 28 | ```
|
|---|
| 29 |
|
|---|
| 30 | ### Invalid
|
|---|
| 31 |
|
|---|
| 32 | ```js
|
|---|
| 33 | import {} from 'mod'
|
|---|
| 34 | import Default, {} from 'mod'
|
|---|
| 35 | ```
|
|---|
| 36 |
|
|---|
| 37 | When using typescript
|
|---|
| 38 |
|
|---|
| 39 | ```js
|
|---|
| 40 | import type Default, {} from 'mod'
|
|---|
| 41 | import type {} from 'mod'
|
|---|
| 42 | ```
|
|---|
| 43 |
|
|---|
| 44 | When using flow
|
|---|
| 45 |
|
|---|
| 46 | ```js
|
|---|
| 47 | import typeof {} from 'mod'
|
|---|
| 48 | import typeof Default, {} from 'mod'
|
|---|
| 49 | ```
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.