Skip to content

Commit 9f0007f

Browse files
committed
README for no-require.
1 parent c748943 commit 9f0007f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ This plugin intends to support linting of ES6 import syntax, and prevent issues
1212
* Ensure a default export is present, given a default import. ([`default`](#default))
1313
* Ensure imported namespaces contain dereferenced properties as they are dereferenced. ([`namespace`](#namespace))
1414
* Report assignments (at any scope) to imported names/namespaces. ([`no-reassign`](#no-reassign))
15+
* Report CommonJS `require` of ES6 module. ([`no-require`](#no-require), off by default)
1516

1617
## Rules
1718

@@ -61,6 +62,10 @@ Also, will report for computed references (i.e. `foo["bar"]()`).
6162
Reports on assignment to an imported name (or a member of an imported namespace).
6263
Will also report shadowing (i.e. redeclaration as a variable, function, or parameter);
6364

65+
### `no-require`
66+
67+
Reports `require` of modules with ES named or default exports. Off by default.
68+
6469
## Debugging
6570

6671
### `no-errors`

0 commit comments

Comments
 (0)