Skip to content
This repository has been archived by the owner on Jan 26, 2021. It is now read-only.

Commit

Permalink
Added rule to readme.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rebecca Stevens committed Nov 15, 2018
1 parent 271bb9e commit 7d27529
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,37 @@ function test(): { foo: ReadonlyArray<number>; } {
"no-return-readonly-array": [true, "include-type-arguments", "deep"]
```

### ternary-format

[![has-fixer-badge]][has-fixer-link]

This rule ensure ternary operators are formated a certain way.

*Example:*

```ts
// TODO: Add ternary-format rule example to ReadMe.
```

#### Options

##### `allow-single-line`

If set, single line ternary operators will be allowed.

*Example:*

```ts
// Allow this.
const foo = condition ? getX() : getY();
```

#### Default config

```json
"no-return-readonly-array": [true, "allow-single-line"]
```

<!-- Badge urls -->

[version-badge]: https://img.shields.io/npm/v/@rebeccastevens/tslint-rebeccastevens.svg?logo=npm&style=flat-square
Expand Down

0 comments on commit 7d27529

Please sign in to comment.