Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

Commit

Permalink
chore(eslint): forbid modules importing from core
Browse files Browse the repository at this point in the history
  • Loading branch information
clarkdo committed Sep 23, 2021
1 parent cf3f564 commit 541ccd2
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,24 @@
"rules": {
"@typescript-eslint/no-unused-vars": "off"
}
},
{
"files": [
"packages/nuxt3/src/**/*"
],
"excludedFiles": [
"packages/nuxt3/src/*",
"packages/nuxt3/src/app/**/*",
"packages/nuxt3/src/core/**/*"
],
"rules": {
"no-restricted-imports": [ "error", {
"patterns": [{
"group": ["**/core", "**/app"],
"message": " Modules should not directly import from app and core."
}]
}]
}
}
]
}

0 comments on commit 541ccd2

Please sign in to comment.