Skip to content
Permalink
Browse files

Docs: updated ImportDeclaration in docs-rules-indent (#11679)

  • Loading branch information...
AlokTakshak authored and not-an-aardvark committed May 10, 2019
1 parent f5bae78 commit 483239ec74a0c13529fc99547a784b749f41dd54
Showing with 5 additions and 5 deletions.
  1. +5 −5 docs/rules/indent.md
@@ -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,
@@ -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,

0 comments on commit 483239e

Please sign in to comment.
You can’t perform that action at this time.