Skip to content

Commit

Permalink
Docs: fix example for sort-imports ignoreDeclarationSort (#11242)
Browse files Browse the repository at this point in the history
  • Loading branch information
remcohaszing authored and nzakas committed Jan 16, 2019
1 parent 7c0bf2c commit 000f495
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions docs/rules/sort-imports.md
Expand Up @@ -146,22 +146,22 @@ Examples of **incorrect** code for this rule with the default `{ "ignoreDeclarat

```js
/*eslint sort-imports: ["error", { "ignoreDeclarationSort": false }]*/
import 'foo.js'
import 'bar.js'
import b from 'foo.js'
import a from 'bar.js'
```

Examples of **correct** code for this rule with the `{ "ignoreDeclarationSort": true }` option:

```js
/*eslint sort-imports: ["error", { "ignoreDeclarationSort": true }]*/
import 'foo.js'
import 'bar.js'
import a from 'foo.js'
import b from 'bar.js'
```

```js
/*eslint sort-imports: ["error", { "ignoreDeclarationSort": true }]*/
import 'bar.js'
import 'foo.js'
import b from 'foo.js'
import a from 'bar.js'
```

Default is `false`.
Expand Down

0 comments on commit 000f495

Please sign in to comment.