From bc99b86123d0ecd289dcf25f6d0e3772620059fa Mon Sep 17 00:00:00 2001 From: Nikolay Stoynov Date: Sat, 15 May 2021 12:02:15 +0300 Subject: [PATCH] [Docs] Add `no-relative-packages` to list of to the list of rules --- CHANGELOG.md | 4 ++++ README.md | 2 ++ 2 files changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 826e5c4a5..7ad8bab49 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,9 @@ This change log adheres to standards from [Keep a CHANGELOG](http://keepachangel ## [Unreleased] +### Changed +- [Docs] Add `no-relative-packages` to list of to the list of rules ([#2075], thanks [@arvigeus]) + ## [2.23.2] - 2021-05-15 ### Changed @@ -783,6 +786,7 @@ for info on changes for earlier releases. [`memo-parser`]: ./memo-parser/README.md +[#2075]: https://github.com/benmosher/eslint-plugin-import/pull/2075 [#2071]: https://github.com/benmosher/eslint-plugin-import/pull/2071 [#2034]: https://github.com/benmosher/eslint-plugin-import/pull/2034 [#2026]: https://github.com/benmosher/eslint-plugin-import/pull/2026 diff --git a/README.md b/README.md index 8ee4dedd4..d7d50eaf5 100644 --- a/README.md +++ b/README.md @@ -27,6 +27,7 @@ This plugin intends to support linting of ES2015+ (ES6+) import/export syntax, a * Forbid a module from importing a module with a dependency path back to itself ([`no-cycle`]) * Prevent unnecessary path segments in import and require statements ([`no-useless-path-segments`]) * Forbid importing modules from parent directories ([`no-relative-parent-imports`]) +* Prevent importing packages through relative paths ([`no-relative-packages`]) [`no-unresolved`]: ./docs/rules/no-unresolved.md [`named`]: ./docs/rules/named.md @@ -41,6 +42,7 @@ This plugin intends to support linting of ES2015+ (ES6+) import/export syntax, a [`no-cycle`]: ./docs/rules/no-cycle.md [`no-useless-path-segments`]: ./docs/rules/no-useless-path-segments.md [`no-relative-parent-imports`]: ./docs/rules/no-relative-parent-imports.md +[`no-relative-packages`]: ./docs/rules/no-relative-packages.md ### Helpful warnings