In a project using ES modules, the following line causes an errror in a js file
import packageJson from "../../package.json" assert { type: "json" };
This is because the default parser doesn't work on js file with that synthax. The recommended approach is to use either babel-eslint or the typescript-eslint parser. So by adding
Description
Repo
In a project using ES modules, the following line causes an errror in a js file
This is because the default parser doesn't work on js file with that synthax. The recommended approach is to use either babel-eslint or the typescript-eslint parser. So by adding
the synthax wouldn't cause an eslint error