Skip to content

Commit 2dec0a7

Browse files
authored
quick note on caseSensitive no-unresolved param
1 parent a81d5bb commit 2dec0a7

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

docs/rules/no-unresolved.md

+8
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,14 @@ import { x } from './mod' // may be reported, if not resolved to a module
6767
import coolImg from '../../img/coolImg.img' // will not be reported, even if not found
6868
```
6969

70+
#### `caseSensitive`
71+
72+
By default, this rule will report paths whose case do not match the underlying filesystem path, if the FS is not case-sensitive. To disable this behavior, set the `caseSensitive` option to `false`.
73+
74+
```js
75+
/*eslint import/no-unresolved: [2, { caseSensitive: true (default) | false }]*/
76+
const { default: x } = require('./foo') // reported if './foo' is actually './Foo' and caseSensitive: true
77+
```
7078

7179
## When Not To Use It
7280

0 commit comments

Comments
 (0)