{"id":17167128,"url":"https://github.com/mrkou47/eslint-plugin-recommend-import","last_synced_at":"2025-08-17T22:18:42.068Z","repository":{"id":45961089,"uuid":"134555761","full_name":"MrKou47/eslint-plugin-recommend-import","owner":"MrKou47","description":"strict import esModule code style in your project","archived":false,"fork":false,"pushed_at":"2021-11-24T09:05:00.000Z","size":32,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-24T18:19:19.713Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MrKou47.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-05-23T10:52:22.000Z","updated_at":"2019-02-26T05:30:51.000Z","dependencies_parsed_at":"2022-08-23T19:00:25.227Z","dependency_job_id":null,"html_url":"https://github.com/MrKou47/eslint-plugin-recommend-import","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/MrKou47/eslint-plugin-recommend-import","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MrKou47%2Feslint-plugin-recommend-import","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MrKou47%2Feslint-plugin-recommend-import/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MrKou47%2Feslint-plugin-recommend-import/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MrKou47%2Feslint-plugin-recommend-import/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MrKou47","download_url":"https://codeload.github.com/MrKou47/eslint-plugin-recommend-import/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MrKou47%2Feslint-plugin-recommend-import/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270914925,"owners_count":24667233,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-17T02:00:09.016Z","response_time":129,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-14T23:07:43.077Z","updated_at":"2025-08-17T22:18:42.047Z","avatar_url":"https://github.com/MrKou47.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# eslint-plugin-recommend-import\n\n## Installation\n\nYou'll first need to install [ESLint](http://eslint.org):\n\n```\n$ npm i eslint --save-dev\n```\n\nNext, install `eslint-plugin-recommend-import`:\n\n```\n$ npm install eslint-plugin-recommend-import --save-dev\n```\n\n**Note:** If you installed ESLint globally (using the `-g` flag) then you must also install `eslint-plugin-recommend-import` globally.\n\n\n## How to use\n\n```js\n{\n  \"plugins\": [\n    \"recommend-import\"\n  ],\n  \"rules\": {\n    \"recommend-import/no-import-lib\": 2\n  }\n}\n```\n\n## Rule Details\n\nThis rule aims to ensure that the current `import` module which provides `module` field in the `package.json`\n\nExamples of **incorrect** code for this rule:\n\n```js\nimport browserHistory from 'react-router/lib/browserHistory';\nimport combineReducer from 'redux/lib/combineReducer';\n```\n\nExamples of **correct** code for this rule:\n\n```js\nimport { browserHistory } from 'react-router';\nimport { combineReducer } from 'redux/lib/combineReducer';\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrkou47%2Feslint-plugin-recommend-import","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmrkou47%2Feslint-plugin-recommend-import","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrkou47%2Feslint-plugin-recommend-import/lists"}