Skip to content

Instantly share code, notes, and snippets.

@JoshuaKGoldberg
Created March 29, 2020 17:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JoshuaKGoldberg/19f8cb81fd701bb0dc906faa97a5d8fc to your computer and use it in GitHub Desktop.
Save JoshuaKGoldberg/19f8cb81fd701bb0dc906faa97a5d8fc to your computer and use it in GitHub Desktop.
ESLint Import Restrictions
{
"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