Bump eslint-plugin-import to avoid vulnerability in dependency
This commit is contained in:
parent
10695e6a20
commit
ed9506bbaf
1660 changed files with 67726 additions and 27926 deletions
13
node_modules/eslint-plugin-import/docs/rules/no-useless-path-segments.md
generated
vendored
13
node_modules/eslint-plugin-import/docs/rules/no-useless-path-segments.md
generated
vendored
|
|
@ -1,5 +1,9 @@
|
|||
# import/no-useless-path-segments
|
||||
|
||||
🔧 This rule is automatically fixable by the [`--fix` CLI option](https://eslint.org/docs/latest/user-guide/command-line-interface#--fix).
|
||||
|
||||
<!-- end auto-generated rule header -->
|
||||
|
||||
Use this rule to prevent unnecessary path segments in import and require statements.
|
||||
|
||||
## Rule Details
|
||||
|
|
@ -14,6 +18,7 @@ my-project
|
|||
└── helpers.js
|
||||
└── helpers
|
||||
└── index.js
|
||||
├── index.js
|
||||
└── pages
|
||||
├── about.js
|
||||
├── contact.js
|
||||
|
|
@ -27,10 +32,10 @@ The following patterns are considered problems:
|
|||
* in my-project/app.js
|
||||
*/
|
||||
|
||||
import "./../pages/about.js"; // should be "./pages/about.js"
|
||||
import "./../pages/about"; // should be "./pages/about"
|
||||
import "../pages/about.js"; // should be "./pages/about.js"
|
||||
import "../pages/about"; // should be "./pages/about"
|
||||
import "./../my-project/pages/about.js"; // should be "./pages/about.js"
|
||||
import "./../my-project/pages/about"; // should be "./pages/about"
|
||||
import "../my-project/pages/about.js"; // should be "./pages/about.js"
|
||||
import "../my-project/pages/about"; // should be "./pages/about"
|
||||
import "./pages//about"; // should be "./pages/about"
|
||||
import "./pages/"; // should be "./pages"
|
||||
import "./pages/index"; // should be "./pages" (except if there is a ./pages.js file)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue