mirror of
https://github.com/airbnb/javascript.git
synced 2026-04-25 03:00:19 -04:00
[eslint config] [base] [breaking] enable import/no-cycle: warn on cyclical dependencies
This commit is contained in:
@@ -228,8 +228,7 @@ module.exports = {
|
||||
|
||||
// Forbid cyclical dependencies between modules
|
||||
// https://github.com/benmosher/eslint-plugin-import/blob/d81f48a2506182738409805f5272eff4d77c9348/docs/rules/no-cycle.md
|
||||
// TODO: enable, semver-major
|
||||
'import/no-cycle': ['off', { maxDepth: Infinity }],
|
||||
'import/no-cycle': ['error', { maxDepth: Infinity }],
|
||||
|
||||
// Ensures that there are no useless path segments
|
||||
// https://github.com/benmosher/eslint-plugin-import/issues/1032
|
||||
|
||||
Reference in New Issue
Block a user