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-extraneous-dependencies.md
+19-5
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ Modules have to be installed for this rule to work.
9
9
10
10
## Options
11
11
12
-
This rule supports the following options:
12
+
### Dependency Options
13
13
14
14
`devDependencies`: If set to `false`, then the rule will show an error when `devDependencies` are imported. Defaults to `true`.
15
15
Type imports are ignored by default.
@@ -34,27 +34,41 @@ You can also use an array of globs instead of literal booleans:
34
34
35
35
When using an array of globs, the setting will be set to `true` (no errors reported) if the name of the file being linted (i.e. not the imported file/module) matches a single glob in the array, and `false` otherwise.
36
36
37
+
### Other Options
38
+
39
+
#### `includeInternal` & `includeTypes`
40
+
37
41
There are 2 boolean options to opt into checking extra imports that are normally ignored: `includeInternal`, which enables the checking of internal modules, and `includeTypes`, which enables checking of type imports in TypeScript.
Also there is one more option called `packageDir`, this option is to specify the path to the folder containing package.json.
47
+
#### `packageDir`
48
+
49
+
The `packageDir` option is to specify the path to the folder containing package.json.
44
50
45
51
If provided as a relative path string, will be computed relative to the current working directory at linter execution time. If this is not ideal (does not work with some editor integrations), consider using `__dirname` to provide a path relative to your configuration.
0 commit comments