Skip to content

Commit

Permalink
Add lint rule to prevent '.' imports
Browse files Browse the repository at this point in the history
  • Loading branch information
baileympearson committed Feb 11, 2022
1 parent 98b1448 commit 9edcfe6
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,17 @@
"global"
],
"@typescript-eslint/no-explicit-any": "off",
"no-restricted-imports": [
"error",
{
"paths": [
{
"name": ".",
"message": "Please import directly from the relevant file instead."
}
]
}
],
"no-restricted-syntax": [
"error",
{
Expand Down

0 comments on commit 9edcfe6

Please sign in to comment.