You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/rules/no-hide-core-modules.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,7 +32,7 @@ const util = require("util") // OK if this is the core module 'util' surely.
32
32
constpath=require("path") // OK if this is the core module 'path' surely.
33
33
```
34
34
35
-
## Options
35
+
###Options
36
36
37
37
```json
38
38
{
@@ -44,19 +44,19 @@ const path = require("path") // OK if this is the core module 'path' surely.
44
44
}
45
45
```
46
46
47
-
### allow
47
+
####allow
48
48
49
49
If you are sure that your module depends on the third-party module which has the same name as a core module, you can allow it by `allow` option.
50
50
E.g. `{"allow": ["util", "path"]}`.
51
51
Default is en empty array.
52
52
53
-
### ignoreDirectDependencies
53
+
####ignoreDirectDependencies
54
54
55
55
If `ignoreDirectDependencies: true`, if the third-party module which has the same name as a core module exists in your `package.json`, this rule ignores it.
56
56
57
57
This option would allow all explicit dependencies which are hiding core modules.
58
58
59
-
### ignoreIndirectDependencies
59
+
####ignoreIndirectDependencies
60
60
61
61
If `ignoreIndirectDependencies: true`, if the third-party module which has the same name as a core module does not exist in your `package.json`, this rule ignores it.
0 commit comments