Skip to content

Commit

Permalink
[Docs] order: improve the documentation for the `pathGroupsExcluded…
Browse files Browse the repository at this point in the history
…ImportTypes` option
  • Loading branch information
liby committed Jul 22, 2021
1 parent 1012eb9 commit 09ec9f6
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions docs/rules/order.md
Expand Up @@ -148,6 +148,27 @@ Example:
}]
}
```

You can also use `patterns`(e.g., `react`, `react-router-dom`, etc).

Example:
```json
{
"import/order": [
"error",
{
"pathGroups": [
{
"pattern": "react",
"group": "builtin",
"position": "before"
}
],
"pathGroupsExcludedImportTypes": ["react"]
}
]
}
```
The default value is `["builtin", "external"]`.

### `newlines-between: [ignore|always|always-and-inside-groups|never]`:
Expand Down

0 comments on commit 09ec9f6

Please sign in to comment.