Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: update no-restricted-imports rule #18015

Merged
merged 5 commits into from
Jan 29, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix linting error
  • Loading branch information
Tanujkanti4441 committed Jan 24, 2024
commit 65a6483a0e47413b2e9d08b1ec907d6069aaed2b
1 change: 0 additions & 1 deletion docs/src/rules/no-restricted-imports.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,6 @@ Custom messages for a particular module can also be specified in `paths` array u

This option in `paths` is an array and can be used to specify the names of certain bindings exported from a module. Import names specified inside `paths` array affect the module specified in the `name` property of corresponding object, so it is required to specify the `name` property first when you are using `importNames` or `message` option.


Specifying `"default"` string inside the `importNames` array will restrict the default export from being imported.

```json
Expand Down