[eslint config] [base] [breaking] enable import/no-cycle: warn on cyclical dependencies

This commit is contained in:
Sharmila
2018-04-04 16:15:27 -07:00
committed by Jordan Harband
parent 31d95fded4
commit c71e8c9231

View File

@@ -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