Skip to content

Commit

Permalink
docs: update lint rule imports (ngrx#3938)
Browse files Browse the repository at this point in the history
Co-authored-by: bruczhan <[email protected]>
  • Loading branch information
2 people authored and va-stefanek committed Jul 6, 2023
1 parent ee00ed4 commit 0aa6611
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,15 +61,15 @@ To always report the uses of `withLatestFrom` use:

```json
"rules": {
"ngrx/prefer-concat-latest-from": ["warn", { "strict": true }]
"@ngrx/prefer-concat-latest-from": ["warn", { "strict": true }]
}
```

To report only needed uses of `withLatestFrom` use:

```json
"rules": {
"ngrx/prefer-concat-latest-from": ["warn", { "strict": false }]
"@ngrx/prefer-concat-latest-from": ["warn", { "strict": false }]
}
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,14 @@ To prefer the **method** syntax (`this.store.select(selector)`) use:

```json
"rules": {
"ngrx/select-style": ["warn", "method"]
"@ngrx/select-style": ["warn", "method"]
}
```

To prefer the **operator** syntax (`this.store.pipe(select(selector))`) use:

```json
"rules": {
"ngrx/select-style": ["warn", "operator"]
"@ngrx/select-style": ["warn", "operator"]
}
```
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,6 @@ To change the name of the global store use:

```json
"rules": {
"ngrx/use-consistent-global-store-name": ["warn", "store$"]
"@ngrx/use-consistent-global-store-name": ["warn", "store$"]
}
```

0 comments on commit 0aa6611

Please sign in to comment.