Skip to content

Commit

Permalink
docs(order): fix bad inline config
Browse files Browse the repository at this point in the history
`alphabetize` option does not permit boolean
  • Loading branch information
nickofthyme authored May 29, 2020
1 parent 3f46ccf commit 4050030
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/rules/order.md
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ alphabetize: {
This will fail the rule check:

```js
/* eslint import/order: ["error", {"alphabetize": true}] */
/* eslint import/order: ["error", {"alphabetize": {"order": "asc", "caseInsensitive": true}}] */
import React, { PureComponent } from 'react';
import aTypes from 'prop-types';
import { compose, apply } from 'xcompose';
Expand All @@ -240,7 +240,7 @@ import blist from 'BList';
While this will pass:

```js
/* eslint import/order: ["error", {"alphabetize": true}] */
/* eslint import/order: ["error", {"alphabetize": {"order": "asc", "caseInsensitive": true}}] */
import blist from 'BList';
import * as classnames from 'classnames';
import aTypes from 'prop-types';
Expand Down

0 comments on commit 4050030

Please sign in to comment.