mirror of
https://github.com/datahub-project/datahub.git
synced 2025-08-13 19:57:12 +00:00
24 lines
469 B
Markdown
24 lines
469 B
Markdown
![]() |
# Imports should not containt /addon/ (no-addon-import)
|
||
|
|
||
|
On the open source world we should not import files that are internal. This will help us correct that behavior.
|
||
|
|
||
|
## Rule Details
|
||
|
|
||
|
Examples of **incorrect** code for this rule:
|
||
|
|
||
|
```js
|
||
|
import something from '@linkedin/something';
|
||
|
|
||
|
```
|
||
|
|
||
|
Examples of **correct** code for this rule:
|
||
|
|
||
|
```js
|
||
|
import something from '@datahub/something';
|
||
|
|
||
|
```
|
||
|
|
||
|
## When Not To Use It
|
||
|
|
||
|
This rule should only be applied on open source files
|