Skip to content

Commit

Permalink
Update doc
Browse files Browse the repository at this point in the history
  • Loading branch information
ota-meshi committed Jul 2, 2020
1 parent 0864f54 commit 7136b07
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 16 deletions.
2 changes: 1 addition & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
[![NPM downloads](https://img.shields.io/npm/dm/eslint-plugin-regexp.svg)](http://www.npmtrends.com/eslint-plugin-regexp)
[![NPM downloads](https://img.shields.io/npm/dy/eslint-plugin-regexp.svg)](http://www.npmtrends.com/eslint-plugin-regexp)
[![NPM downloads](https://img.shields.io/npm/dt/eslint-plugin-regexp.svg)](http://www.npmtrends.com/eslint-plugin-regexp)
[![Build Status](https://travis-ci.com/ota-meshi/eslint-plugin-regexp.svg?branch=master)](https://travis-ci.com/ota-meshi/eslint-plugin-regexp)
[![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)
[![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)

## Features
Expand Down
24 changes: 9 additions & 15 deletions docs/rules/no-empty-lookarounds-assertion.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,29 +20,23 @@ This rule reports empty lookahead assertion or empty lookbehind assertion.
/* eslint regexp/no-empty-lookarounds-assertion: "error" */

/* ✓ GOOD */

var foo = /x(?=y)/
var foo = /x(?!y)/
var foo = /(?<=y)x/
var foo = /(?<!y)x/

/* ✗ BAD */

var foo = /x(?=)/
var foo = /x(?!)/
var foo = /(?<=)x/
var foo = /(?<!)x/
```

</eslint-code-block>

## :wrench: Options

```json
{
"regexp/no-empty-lookarounds-assertion": ["error", {

}]
}
```

-

## :books: Further reading

-
Nothing.

## Implementation

Expand Down

0 comments on commit 7136b07

Please sign in to comment.