Created
March 29, 2020 17:58
-
-
Save JoshuaKGoldberg/19f8cb81fd701bb0dc906faa97a5d8fc to your computer and use it in GitHub Desktop.
ESLint Import Restrictions
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"extends": ["../../../.eslintrc.json"], | |
"rules": { | |
"no-restricted-syntax": [ | |
"error", | |
{ | |
"message": "Don't import from /platform into /portal: if you need, move the shared component to /components instead.", | |
"selector": "ImportDeclaration[source.value=/(^|(\\\\.\\\\.\\\\u002F*))platform\\\\u002F(.*)/]" | |
} | |
] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment