Replies: 5 comments 3 replies
-
Do you mean feature parity? A user submitted a PR to implement some of the features: #2977 Other than that, I would ask @anonrig more details because he's the person that implemented the rule. We're also debating on the naming, and if the rule makes sense, because we also have |
Beta Was this translation helpful? Give feedback.
-
I just tried biome in one of our larger projects and I'm also missing this! Our 2 use cases - maybe someone can point me to an alternative rule to solve the problem:
|
Beta Was this translation helpful? Give feedback.
-
+1 pattern & importNames are essential features of this rule. |
Beta Was this translation helpful? Give feedback.
-
in addition to code import { Clipboard } from 'react-native'; // eslint errors
const { Clipboard } = await import('react-native'); // eslint doesn't error eslint rule {
"@typescript-eslint/no-restricted-imports": [
"error",
{
"paths": [
{
"name": "react-native",
"importNames": ["Clipboard"],
"message": "Don't use deprecated modules from 'react-native'.",
},
],
},
]
} biome's {
"noRestrictedImports": {
"options": {
"paths": {
"react-native": {
"importNames": ["Clipboard"],
"message": "Don't use deprecated modules from 'react-native'."
}
}
}
}
} |
Beta Was this translation helpful? Give feedback.
-
+1, we also use the eslint |
Beta Was this translation helpful? Give feedback.
-
While migrating from eslint to biome, I discovered that the
noRestrictedImports
rule only partially implements the feature ofno-restricted-imports
.Are there any plans to update this rule so that the aforementioned features are supported?
Beta Was this translation helpful? Give feedback.
All reactions