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-useless-path-segments.md
+4
Original file line number
Diff line number
Diff line change
@@ -73,3 +73,7 @@ import "./pages/index.js"; // should be "./pages" (auto-fixable)
73
73
```
74
74
75
75
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.
76
+
77
+
### commonjs
78
+
79
+
When set to `true`, this rule checks CommonJS imports. Default to `false`.
0 commit comments