eslint-import-resolver-parcel
About
Parcel import resolution plugin for eslint-plugin-import.
This allows for eslint/import
to work with parcel's module resolution.
Installation
npm install eslint-import-resolver-parcel -D
Usage
Add this to your eslint config:
settings: {
'import/resolver': 'parcel'
}
Current status
*About Root Paths
Because root paths require knowledge of the entry points,
you must pass in the folder where the entry points are located into the config:
settings: {
'import/resolver': {
parcel: {
rootDir: 'src'
}
}
}