Skip to content

Commit

Permalink
[Docs] no-useless-path-segments: add docs for option commonjs
Browse files Browse the repository at this point in the history
  • Loading branch information
golopot committed Oct 18, 2019
1 parent 112a0bf commit 22df045
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/rules/no-useless-path-segments.md
Expand Up @@ -73,3 +73,7 @@ import "./pages/index.js"; // should be "./pages" (auto-fixable)
```

Note: `noUselessIndex` only avoids ambiguous imports for `.js` files if you haven't specified other resolved file extensions. See [Settings: import/extensions](https://github.com/benmosher/eslint-plugin-import#importextensions) for details.

### commonjs

When set to `true`, this rule checks CommonJS imports. Default to `false`.

0 comments on commit 22df045

Please sign in to comment.