Update checked-in dependencies
This commit is contained in:
parent
67f7ac2add
commit
02c45745e3
174 changed files with 2781 additions and 5722 deletions
3
node_modules/eslint-plugin-import/docs/rules/no-useless-path-segments.md
generated
vendored
3
node_modules/eslint-plugin-import/docs/rules/no-useless-path-segments.md
generated
vendored
|
|
@ -10,7 +10,7 @@ Use this rule to prevent unnecessary path segments in import and require stateme
|
|||
|
||||
Given the following folder structure:
|
||||
|
||||
```
|
||||
```pt
|
||||
my-project
|
||||
├── app.js
|
||||
├── footer.js
|
||||
|
|
@ -62,6 +62,7 @@ import fs from "fs";
|
|||
### noUselessIndex
|
||||
|
||||
If you want to detect unnecessary `/index` or `/index.js` (depending on the specified file extensions, see below) imports in your paths, you can enable the option `noUselessIndex`. By default it is set to `false`:
|
||||
|
||||
```js
|
||||
"import/no-useless-path-segments": ["error", {
|
||||
noUselessIndex: true,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue