@keeex/eslint-config 2.0.1 → 2.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -115,5 +115,5 @@
115
115
  "test": "echo No test for this project"
116
116
  },
117
117
  "type": "module",
118
- "version": "2.0.1"
118
+ "version": "2.0.2"
119
119
  }
@@ -57,7 +57,7 @@ export const apply = (configResult, eslintConfig) => {
57
57
  const baseSection = sections.getNamedSection(configResult, "keeex/eslint-override");
58
58
  sections.configureRules(baseSection, "", {"sort-imports": "off"});
59
59
  }
60
- if (typeof eslintConfig.import === "number") {
60
+ if (typeof eslintConfig.import === "number" && eslintConfig.import > 0) {
61
61
  sections.configureRules(
62
62
  override,
63
63
  "import-x",
@@ -65,7 +65,7 @@ export const apply = (configResult, eslintConfig) => {
65
65
  "no-cycle": ["error", {maxDepth: eslintConfig.import}],
66
66
  },
67
67
  );
68
- } else {
68
+ } else if (eslintConfig.import) {
69
69
  sections.configureRules(override, "import-x", {"no-cycle": "error"});
70
70
  }
71
71
  if (eslintConfig.typescript) {