source: frontend/node_modules/eslint-plugin-import/docs/rules/no-empty-named-blocks.md

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
RevLine 
[9af201e]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
7Reports the use of empty named import blocks.
8
9## Rule Details
10
11### Valid
12
13```js
14import { mod } from 'mod'
15import Default, { mod } from 'mod'
16```
17
18When using typescript
19
20```js
21import type { mod } from 'mod'
22```
23
24When using flow
25
26```js
27import typeof { mod } from 'mod'
28```
29
30### Invalid
31
32```js
33import {} from 'mod'
34import Default, {} from 'mod'
35```
36
37When using typescript
38
39```js
40import type Default, {} from 'mod'
41import type {} from 'mod'
42```
43
44When using flow
45
46```js
47import typeof {} from 'mod'
48import typeof Default, {} from 'mod'
49```
Note: See TracBrowser for help on using the repository browser.