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: README.md
+6-6
Original file line number
Diff line number
Diff line change
@@ -62,21 +62,21 @@ A value of `options` parameter is a string (which equivalent to `{ basedir: <str
62
62
Type: `string`
63
63
Default: `process.cwd()`
64
64
65
-
Base directory to scan. All the paths in a result are relative to `basedir`.
65
+
Base directory to scan and resolve paths to. All the paths in a result are relative to `basedir`.
66
66
67
67
-**include**
68
68
69
69
Type: `string`, `string[]` or `null`
70
70
Default: `null`
71
71
72
-
A list of directories to scan, relative to `basedir`. When used, a scanned file path must start with one of the directories from the list. In case when the same path is used in `include` and `exclude`, `include` has priority over `exclude` (i.e. `include` wins).
72
+
A list of directories to scan relative to `basedir`. When used, a scanned file path must start with one of the directories from the list. `include` has priority over `exclude` option, i.e. `include` wins when the same path is used in `include` and `exclude` options. Paths should be specified in POSIX disregarding of used operating system.
73
73
74
74
-**exclude**
75
75
76
76
Type: `string`, `string[]` or `null`
77
77
Default: `null`
78
78
79
-
A list of directories to avoid scan, relative to `basedir`. When used, a scanned file path must not start with any of the directories from the list.
79
+
A list of directories to avoid scan relative to `basedir`. When used, a file relative path must not start with any of the directories from the list. Paths should be specified in POSIX disregarding of used operating system.
80
80
81
81
-**rules**
82
82
@@ -106,21 +106,21 @@ A **rule** is an object with following fields (all are optional):
106
106
Type: `RegExp`, `RegExp[]` or `null`
107
107
Default: `null`
108
108
109
-
A list of RegExps that applies to relative to `options.basedir` path of file.
109
+
A list of RegExps that applies to a POSIX path relative to `options.basedir`.
110
110
111
111
-**include**
112
112
113
113
Type: `string`, `string[]` or `null`
114
114
Default: `null`
115
115
116
-
The same as for `options.include` but applies on a rule level. When used it also populates `options.include`.
116
+
The same as for `options.include` but applies on a rule's level. When used it also populates `options.include`.
117
117
118
118
-**exclude**
119
119
120
120
Type: `string`, `string[]` or `null`
121
121
Default: `undefnullined`
122
122
123
-
The same as for `options.exclude` but applies on a rule level.
123
+
The same as for `options.exclude` but applies on a rule's level.
0 commit comments