A fully qualified name here denotes a value that is accessed through an imported
symbol, e.g., foo.bar.baz where foo was imported either from a require call
or an import statement:
constfoo = require('lib'); foo.bar.baz.qux; // matches the fully qualified name 'lib.bar.baz.qux' (not 'foo.bar.baz.qux') constfoo2 = require('lib').bar; foo2.baz.qux; // matches the fully qualified name 'lib.bar.baz.qux'
Returns null when an FQN could not be found.
Parameters
context: RuleContext
the rule context
node: Node
the node
fqn: string[] = []
the already traversed FQN (for recursive calls)
Optionalscope: Scope
scope to look for the variable definition, used in recursion not to
loop over same variable always in the lower scope
Returns the fully qualified name of ESLint node
This function filters out the
node:
prefixA fully qualified name here denotes a value that is accessed through an imported symbol, e.g.,
foo.bar.baz
wherefoo
was imported either from a require call or an import statement:Returns null when an FQN could not be found.