mirror of
https://github.com/johndoe6345789/low-code-react-app-b.git
synced 2026-04-24 21:54:56 +00:00
13 lines
383 B
Plaintext
13 lines
383 B
Plaintext
/**
|
|
* @name Legacy component imports
|
|
* @description Finds imports still referencing legacy components instead of JSON components.
|
|
* @kind problem
|
|
* @severity warning
|
|
* @id custom/legacy-component-imports
|
|
*/
|
|
import javascript
|
|
|
|
from ImportDeclaration imp
|
|
where imp.getRawImportPath().regexpMatch("^@/components/")
|
|
select imp, "Legacy component import: " + imp.getRawImportPath()
|