Skip to content

Commit

Permalink
fix: document differences from eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
gajus committed Oct 12, 2023
1 parent b2864a9 commit c92ebd1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .README/rules/no-restricted-imports.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
<!-- assertions noRestrictedImports -->
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

<a name="user-content-eslint-plugin-canonical-rules-no-restricted-strings"></a>
<a name="eslint-plugin-canonical-rules-no-restricted-strings"></a>
Expand Down

0 comments on commit c92ebd1

Please sign in to comment.