{"id":26881531,"url":"https://github.com/wideplink/eslint-plugin-named-import-spacing","last_synced_at":"2026-02-13T04:07:29.484Z","repository":{"id":63076076,"uuid":"565074814","full_name":"Wideplink/eslint-plugin-named-import-spacing","owner":"Wideplink","description":"adjust spacing in brackets of named imports","archived":false,"fork":false,"pushed_at":"2025-02-14T20:17:46.000Z","size":534,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-02T00:04:00.373Z","etag":null,"topics":["eslint","eslint-plugin","eslintplugin","import","lint","linting","named-imports"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/eslint-plugin-named-import-spacing","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Wideplink.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-11-12T09:02:58.000Z","updated_at":"2025-02-03T17:22:37.000Z","dependencies_parsed_at":"2024-09-23T06:06:44.833Z","dependency_job_id":"e0487955-0884-406a-a0f0-2fde9ff98b7f","html_url":"https://github.com/Wideplink/eslint-plugin-named-import-spacing","commit_stats":{"total_commits":145,"total_committers":2,"mean_commits":72.5,"dds":"0.10344827586206895","last_synced_commit":"5e40be33b28e11808dabbaab9bedce570f195bad"},"previous_names":["wideplink/eslint-plugin-destructuring-import-spacing"],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Wideplink%2Feslint-plugin-named-import-spacing","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Wideplink%2Feslint-plugin-named-import-spacing/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Wideplink%2Feslint-plugin-named-import-spacing/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Wideplink%2Feslint-plugin-named-import-spacing/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Wideplink","download_url":"https://codeload.github.com/Wideplink/eslint-plugin-named-import-spacing/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252978515,"owners_count":21834907,"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","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":["eslint","eslint-plugin","eslintplugin","import","lint","linting","named-imports"],"created_at":"2025-03-31T15:40:29.737Z","updated_at":"2026-02-13T04:07:29.443Z","avatar_url":"https://github.com/Wideplink.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# eslint-plugin-named-import-spacing\n[![npm](https://img.shields.io/npm/v/eslint-plugin-named-import-spacing)](https://npmjs.com/package/eslint-plugin-named-import-spacing)\n\nadjust spacing in brackets of named imports\n\n## Installation\n\nYou'll first need to install [ESLint](https://eslint.org/):\n\n```sh\nnpm i eslint --save-dev\n```\n\nNext, install `eslint-plugin-named-import-spacing`:\n\n```sh\nnpm install eslint-plugin-named-import-spacing --save-dev\n```\n\n## Usage\n\nAdd `named-import-spacing` to the plugins section of your `.eslintrc` configuration file. You can omit the `eslint-plugin-` prefix:\n\n```json\n{\n    \"plugins\": [\n        \"named-import-spacing\"\n    ]\n}\n```\n\n\nThen configure the rules you want to use under the rules section.\n\n```json\n{\n    \"rules\": {\n        \"named-import-spacing/named-import-spacing\": 2\n    }\n}\n```\n\n## Supported Rules\n\n### `named-import-spacing`\nFormat spaces in named import statements\n\n#### Options\nThis rule receives one argument. If the argument is `\"always\"` then variables require spaces before and after it. If `\"never\"` then no space is allowed either before or after.\n- `\"always\"` (default)  \n  :x: **Incorrect**  \n  ```js\n  import {a, b} from \"some-module\";\n  import { a, b} from \"some-module\";\n  ```\n  :white_check_mark: **Correct**  \n  ```js\n  import { a, b } from \"some-module\";\n  import { a,b } from \"some-module\";\n  ```\n- `\"never\"`  \n  :x: **Incorrect**  \n  ```js\n  import { a, b } from \"some-module\";\n  import {a,b } from \"some-module\";\n  ```\n  :white_check_mark: **Correct**  \n  ```js\n  import {a, b} from \"some-module\";\n  import {a} from \"some-module\";\n  ```\n\n\u003e Use [`comma-spacing`](https://eslint.org/docs/latest/rules/comma-spacing) if you want to manage spaces between multiple variables.\n\nSome other rules may be added in the future.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwideplink%2Feslint-plugin-named-import-spacing","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwideplink%2Feslint-plugin-named-import-spacing","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwideplink%2Feslint-plugin-named-import-spacing/lists"}