From c92ebd18d7552bb8c1e1895fdc51c3a688a15c22 Mon Sep 17 00:00:00 2001 From: Gajus Kuizinas Date: Thu, 12 Oct 2023 12:18:56 -0600 Subject: [PATCH] fix: document differences from eslint --- .README/rules/no-restricted-imports.md | 2 ++ README.md | 2 ++ 2 files changed, 4 insertions(+) diff --git a/.README/rules/no-restricted-imports.md b/.README/rules/no-restricted-imports.md index 0da922d..620dac1 100644 --- a/.README/rules/no-restricted-imports.md +++ b/.README/rules/no-restricted-imports.md @@ -4,4 +4,6 @@ Disallow specified modules when loaded by `import` This rule is similar to [`no-restricted-imports`](https://eslint.org/docs/latest/rules/no-restricted-imports) except that it allows you to specify unique messages for each restricted import (a workaround for issue [issues#15261](https://github.com/eslint/eslint/issues/15261)). +> **Note:** Unlike the ESLint rule, this rule does not support the `patterns` option and it does not handle exports. + \ No newline at end of file diff --git a/README.md b/README.md index a898af0..be34fe8 100644 --- a/README.md +++ b/README.md @@ -370,6 +370,8 @@ Disallow specified modules when loaded by `import` This rule is similar to [`no-restricted-imports`](https://eslint.org/docs/latest/rules/no-restricted-imports) except that it allows you to specify unique messages for each restricted import (a workaround for issue [issues#15261](https://github.com/eslint/eslint/issues/15261)). +> **Note:** Unlike the ESLint rule, this rule does not support the `patterns` option and it does not handle exports. +