sweepline/eslint-plugin-unused-imports

Comment with "global" at the beginning causes TypeError

0ptional opened this issue · 0 comments

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