Skip to content

Commit

Permalink
updating docs
Browse files Browse the repository at this point in the history
  • Loading branch information
erindepew committed Nov 13, 2017
1 parent 6f03bbd commit 75f251a
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions docs/rules/camelcase.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,19 @@ var { category_id: category } = query;

### never


Examples of **incorrect** code for this rule with the default `{ "properties": "never" }` option:

```js
/*eslint camelcase: "error"*/

const { no_camelcased } = bar;

function foo({ no_camelcased }) {
// ...
};
```

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

```js
Expand All @@ -87,14 +100,8 @@ var obj = {
my_pref: 1
};

const { no_camelcased } = bar;

const { no_camelcased = false } = bar;

function foo({ no_camelcased }) {
// ...
};

function foo({ no_camelcased = 'default value' }) {
// ...
}
Expand Down

0 comments on commit 75f251a

Please sign in to comment.