Deno-style module resolution plugin for eslint-plugin-import
🦕
# npm
npm i -D eslint-plugin-import eslint-import-resolver-deno
# yarn
yarn add -D eslint-plugin-import eslint-import-resolver-deno
add the following to your .eslintrc
:
{
"plugins": ["import"],
"settings": {
"import/resolver": "eslint-import-resolver-deno"
}
}
to use an import map, specify the path to your import_map.json in settings:
"import/resolver": {
"eslint-import-resolver-deno": {
"importMap": "./path/to/import_map.json"
}
}
- pull requests are welcome!
- for major changes, open an issue first to discuss what you would like to change