Skip to content

Commit

Permalink
Docs: updated ImportDeclaration in docs-rules-indent (#11679)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlokTakshak authored and not-an-aardvark committed May 10, 2019
1 parent f5bae78 commit 483239e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docs/rules/indent.md
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,7 @@ var foo = { bar: 1,
Examples of **correct** code for this rule with the `4, { "ImportDeclaration": 1 }` option (the default):

```js
/*eslint indent: ["error", 4, { ImportDeclaration: 1 }]*/
/*eslint indent: ["error", 4, { "ImportDeclaration": 1 }]*/

import { foo,
bar,
Expand All @@ -575,21 +575,21 @@ import {
} from 'qux';
```

Examples of **incorrect** code for this rule with the `4, { ImportDeclaration: "first" }` option:
Examples of **incorrect** code for this rule with the `4, { "ImportDeclaration": "first" }` option:

```js
/*eslint indent: ["error", 4, { ImportDeclaration: "first" }]*/
/*eslint indent: ["error", 4, { "ImportDeclaration": "first" }]*/

import { foo,
bar,
baz,
} from 'qux';
```

Examples of **correct** code for this rule with the `4, { ImportDeclaration: "first" }` option:
Examples of **correct** code for this rule with the `4, { "ImportDeclaration": "first" }` option:

```js
/*eslint indent: ["error", 4, { ImportDeclaration: "first" }]*/
/*eslint indent: ["error", 4, { "ImportDeclaration": "first" }]*/

import { foo,
bar,
Expand Down

0 comments on commit 483239e

Please sign in to comment.