Skip to content

Commit

Permalink
docs(eslint-plugin): no-var-requires: Add example for ES6 modules (#900)
Browse files Browse the repository at this point in the history
Fixes #899 

Adds an example to the documentation for replacing `require` with ES6 modules. Since this isn't going to work on everyone's system, I'm happy to also add a comment on this line stating the restrictions if the maintainers of this think it would be appropriate.
  • Loading branch information
ryanwilsonperkin authored and bradzacher committed Aug 24, 2019
1 parent cddfdca commit 5ab13a8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/eslint-plugin/docs/rules/no-var-requires.md
Expand Up @@ -17,6 +17,7 @@ Examples of **correct** code for this rule:
```ts
import foo = require('foo');
require('foo');
import foo from 'foo';
```

## When Not To Use It
Expand Down

0 comments on commit 5ab13a8

Please sign in to comment.