Skip to content

Commit

Permalink
Fix incorrect examples in documentation
Browse files Browse the repository at this point in the history
Some of the documentation still incorrectly uses `import/order` instead of `import-helpers/order-imports`.
  • Loading branch information
dantman committed Apr 19, 2019
1 parent cb136e5 commit ddf76e0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docs/rules/order-imports.md
Expand Up @@ -96,7 +96,7 @@ The default value is `["builtin", "external", "parent", "sibling", "index"]`.
You can set the options like this:

```js
"import/order": [
"import-helpers/order-imports": [
"error",
{"groups": ["index", "sibling", "parent", "/core/", "internal", "external", "builtin"]}
]
Expand All @@ -113,15 +113,15 @@ Enforces or forbids new lines between import groups:
With the default group setting, the following will be invalid:

```js
/* eslint import/order: ["error", {"newlines-between": "always"}] */
/* eslint import-helpers/order-imports: ["error", {"newlines-between": "always"}] */
import fs from 'fs';
import path from 'path';
import index from './';
import sibling from './foo';
```

```js
/* eslint import/order: ["error", {"newlines-between": "never"}] */
/* eslint import-helpers/order-imports: ["error", {"newlines-between": "never"}] */
import fs from 'fs';
import path from 'path';

Expand All @@ -133,7 +133,7 @@ import sibling from './foo';
while those will be valid:

```js
/* eslint import/order: ["error", {"newlines-between": "always"}] */
/* eslint import-helpers/order-imports: ["error", {"newlines-between": "always"}] */
import fs from 'fs';
import path from 'path';

Expand All @@ -143,7 +143,7 @@ import sibling from './foo';
```

```js
/* eslint import/order: ["error", {"newlines-between": "never"}] */
/* eslint import-helpers/order-imports: ["error", {"newlines-between": "never"}] */
import fs from 'fs';
import path from 'path';
import index from './';
Expand Down

0 comments on commit ddf76e0

Please sign in to comment.