Skip to content

Commit

Permalink
fix wording, spelling, and indentation in docs file for prefer-defaul…
Browse files Browse the repository at this point in the history
…t-export
  • Loading branch information
azyzz228 committed Nov 26, 2022
1 parent c8b6020 commit 93609f2
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions docs/rules/prefer-default-export.md
Expand Up @@ -27,15 +27,15 @@ How to setup config file for this rule:

```javascript
// you can manually specify it
"rules":{
"rules": {
"import/prefer-default-export": [
( "off" | "warn" | "error" ),
{ "target": "single" }
]
}

// config setup below will also work
"rules":{
"rules": {
"import/prefer-default-export": "off" | "warn" | "error"
}
```
Expand Down Expand Up @@ -95,13 +95,13 @@ export * from './other-module'

#### any

**Definition**: any exporting file must contain default export.
**Definition**: any exporting file must contain a default export.

How to setup config file for this rule:

```javascript
// you can manually specify it
"rules":{
// you have to manually specify it
"rules": {
"import/prefer-default-export": [
( "off" | "warn" | "error" ),
{ "target": "any" }
Expand All @@ -110,7 +110,7 @@ How to setup config file for this rule:
```


The following patterns are no warnings:
The following patterns are *not* considered warnings:

```javascript
// good1.js
Expand Down Expand Up @@ -151,7 +151,7 @@ import * as foo from './foo';
export * from './other-module'
```

Followings are considered as warnings:
The following patterns are considered warnings:

```javascript
// bad1.js
Expand Down

0 comments on commit 93609f2

Please sign in to comment.