We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
no-cycle
create
1 parent ee15fa4 commit 19fc3dfCopy full SHA for 19fc3df
src/rules/no-cycle.js
@@ -22,7 +22,7 @@ module.exports = {
22
23
create: function (context) {
24
const myPath = context.getFilename()
25
- if (myPath === '<text>') return // can't cycle-check a non-file
+ if (myPath === '<text>') return {} // can't cycle-check a non-file
26
27
const options = context.options[0] || {}
28
const maxDepth = options.maxDepth || Infinity
0 commit comments