no-restricted-imports
v0.0.3
Published
TypeScript plugin for disallowing specific imports
Readme
no-restricted-imports
This provides a TypeScript LSP plugin to accompany the Biome no-restricted-imports rule.
Example
// tsconfig.json
{
"compilerOptions": {
"plugins": [
{
"name": "no-restricted-imports",
"options": {
"paths": {
"@liqvid/prompts": "import the styled versions from @/components/liqvid/prompts",
"@lqv/livecode": {
"importNames": [
"Editor",
"EditorGroup",
"FileTabs",
"LiveCode",
"Record",
"Replay",
"Resize",
"Tab",
"TabList",
],
"message": "import the styled versions from @/components/livecode/theme",
},
"@lqv/livecode/web": {
"importNames": ["HTMLPreview", "WebConsole"],
"message": "import the styled versions from @/components/livecode/html",
},
},
},
},
],
},
}