File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ This plugin intends to support linting of ES6 import syntax, and prevent issues
12
12
* Ensure a default export is present, given a default import. ([ ` default ` ] ( #default ) )
13
13
* Ensure imported namespaces contain dereferenced properties as they are dereferenced. ([ ` namespace ` ] ( #namespace ) )
14
14
* 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)
15
16
16
17
## Rules
17
18
@@ -61,6 +62,10 @@ Also, will report for computed references (i.e. `foo["bar"]()`).
61
62
Reports on assignment to an imported name (or a member of an imported namespace).
62
63
Will also report shadowing (i.e. redeclaration as a variable, function, or parameter);
63
64
65
+ ### ` no-require `
66
+
67
+ Reports ` require ` of modules with ES named or default exports. Off by default.
68
+
64
69
## Debugging
65
70
66
71
### ` no-errors `
You can’t perform that action at this time.
0 commit comments