Closed
Description
In Node.js, this is valid and a common pattern:
var pkg = require('./package.json');
I got errors when I ran this plugin on got
:
test/headers.js:3
✖ 3:17 Parse errors in imported module '../package.json': Line 2: Unexpected token (2:9) import/namespace
✖ 3:17 Parse errors in imported module '../package.json': Line 2: Unexpected token (2:9) import/no-named-as-default-member
✖ 3:17 Parse errors in imported module '../package.json': Line 2: Unexpected token (2:9) import/no-named-as-default