chore(lint): enable import/no-cycle
Guards against circular-dependency regressions in barrels. Requires the import plugin, which is not enabled by default.
This commit is contained in:
+3
-1
@@ -1,4 +1,5 @@
|
|||||||
{
|
{
|
||||||
|
"plugins": ["import"],
|
||||||
"categories": {
|
"categories": {
|
||||||
"correctness": "error",
|
"correctness": "error",
|
||||||
"suspicious": "warn",
|
"suspicious": "warn",
|
||||||
@@ -22,6 +23,7 @@
|
|||||||
"rules": {
|
"rules": {
|
||||||
"no-console": "off",
|
"no-console": "off",
|
||||||
"no-debugger": "error",
|
"no-debugger": "error",
|
||||||
"no-alert": "warn"
|
"no-alert": "warn",
|
||||||
|
"import/no-cycle": "error"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user