Comment with "global" at the beginning causes TypeError
0ptional opened this issue · 0 comments
0ptional commented
The following file causes a TypeError: Cannot read property 'type' of null
Error:
export const VARS = {
/* global something */
prop: 'value',
};
It seems like the global
with anything after that causes the error. If I write Global
it works. If I remove something
it works.
Using /**
or //
works too.
ESLint: 7.20.0
eslint-plugin-unused-imports: 1.1.0