Skip to content

Commit

Permalink
[eslint config] [base] [breaking] enable import/no-cycle: warn on c…
Browse files Browse the repository at this point in the history
…yclical dependencies
  • Loading branch information
sharmilajesupaul authored and ljharb committed Apr 4, 2018
1 parent 31d95fd commit c71e8c9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/eslint-config-airbnb-base/rules/imports.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c71e8c9

Please sign in to comment.