Skip to content

Commit 7136b07

Browse files
committed
Update doc
1 parent 0864f54 commit 7136b07

File tree

2 files changed

+10
-16
lines changed

2 files changed

+10
-16
lines changed

docs/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
[![NPM downloads](https://img.shields.io/npm/dm/eslint-plugin-regexp.svg)](http://www.npmtrends.com/eslint-plugin-regexp)
1010
[![NPM downloads](https://img.shields.io/npm/dy/eslint-plugin-regexp.svg)](http://www.npmtrends.com/eslint-plugin-regexp)
1111
[![NPM downloads](https://img.shields.io/npm/dt/eslint-plugin-regexp.svg)](http://www.npmtrends.com/eslint-plugin-regexp)
12-
[![Build Status](https://travis-ci.com/ota-meshi/eslint-plugin-regexp.svg?branch=master)](https://travis-ci.com/ota-meshi/eslint-plugin-regexp)
12+
[![Build Status](https://github.com/ota-meshi/eslint-plugin-regexp/workflows/CI/badge.svg?branch=master)](https://github.com/ota-meshi/eslint-plugin-regexp/actions?query=workflow%3ACI)
1313
[![Coverage Status](https://coveralls.io/repos/github/ota-meshi/eslint-plugin-regexp/badge.svg?branch=master)](https://coveralls.io/github/ota-meshi/eslint-plugin-regexp?branch=master)
1414

1515
## Features

docs/rules/no-empty-lookarounds-assertion.md

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -20,29 +20,23 @@ This rule reports empty lookahead assertion or empty lookbehind assertion.
2020
/* eslint regexp/no-empty-lookarounds-assertion: "error" */
2121

2222
/* ✓ GOOD */
23-
23+
var foo = /x(?=y)/
24+
var foo = /x(?!y)/
25+
var foo = /(?<=y)x/
26+
var foo = /(?<!y)x/
2427

2528
/* ✗ BAD */
26-
29+
var foo = /x(?=)/
30+
var foo = /x(?!)/
31+
var foo = /(?<=)x/
32+
var foo = /(?<!)x/
2733
```
2834

2935
</eslint-code-block>
3036

3137
## :wrench: Options
3238

33-
```json
34-
{
35-
"regexp/no-empty-lookarounds-assertion": ["error", {
36-
37-
}]
38-
}
39-
```
40-
41-
-
42-
43-
## :books: Further reading
44-
45-
-
39+
Nothing.
4640

4741
## Implementation
4842

0 commit comments

Comments
 (0)