expected: no warning for banana
observed: warning for banana: undeclared variable
The problem is that the Unnamed file has no path, so quick-lint-js assumes that the file has no config. The default config causes an undeclared variable warning for banana.
{"globals": {"banana": true}}
banana;
expected: no warning for
banana
observed: warning forbanana
: undeclared variableThe problem is that the Unnamed file has no path, so quick-lint-js assumes that the file has no config. The default config causes an undeclared variable warning for
banana
.