{"id":52098399,"url":"https://github.com/coliff/eslint-plugin-bootstrap-5-migration","last_synced_at":"2026-08-04T13:30:48.758Z","repository":{"id":354671699,"uuid":"1224623944","full_name":"coliff/eslint-plugin-bootstrap-5-migration","owner":"coliff","description":"eslint-plugin-bootstrap-5-migration","archived":false,"fork":false,"pushed_at":"2026-07-02T06:42:11.000Z","size":169,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-07-27T12:18:27.004Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"HTML","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/coliff.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":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":".github/AGENTS.md","dco":null,"cla":null},"funding":{"github":"coliff","ko_fi":"coliff","custom":"https://paypal.me/coliff"}},"created_at":"2026-04-29T13:15:03.000Z","updated_at":"2026-07-02T06:42:14.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/coliff/eslint-plugin-bootstrap-5-migration","commit_stats":null,"previous_names":["coliff/eslint-plugin-bootstrap-5-migration"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/coliff/eslint-plugin-bootstrap-5-migration","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coliff%2Feslint-plugin-bootstrap-5-migration","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coliff%2Feslint-plugin-bootstrap-5-migration/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coliff%2Feslint-plugin-bootstrap-5-migration/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coliff%2Feslint-plugin-bootstrap-5-migration/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/coliff","download_url":"https://codeload.github.com/coliff/eslint-plugin-bootstrap-5-migration/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coliff%2Feslint-plugin-bootstrap-5-migration/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":36277672,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-07-20T02:08:10.276Z","status":"online","status_checked_at":"2026-08-04T02:00:06.901Z","response_time":57,"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":"2026-08-04T13:30:47.963Z","updated_at":"2026-08-04T13:30:48.753Z","avatar_url":"https://github.com/coliff.png","language":"HTML","funding_links":["https://github.com/sponsors/coliff","https://ko-fi.com/coliff","https://paypal.me/coliff"],"categories":[],"sub_categories":[],"readme":"# eslint-plugin-bootstrap-5-migration\n\n[![Status: Experimental](https://img.shields.io/badge/Status-Experimental-orange)](https://github.com/coliff/eslint-plugin-bootstrap-5-migration) [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)\n\nESLint rules that flag **Bootstrap v4** class names, component classes, and `data-*` attribute values so you can migrate templates toward **Bootstrap v5** conventions. Reports are tied to actionable hints; many patterns include an automatic fix.\n\n## Why use this?\n\nUpgrading markup across a large codebase is easy to do incompletely. This plugin scans each file’s source (skipping YAML front matter and inline `\u003cscript\u003e` / `\u003cstyle\u003e` blocks so those regions are not flagged) and warns where legacy v4 patterns remain - directional spacing classes, renamed utilities, removed form helpers, and outdated `data-*` attributes.\n\n## Requirements\n\n- **ESLint** `\u003e= 8.57.1` (peer dependency)\n\n## Installation\n\nThe package is not published to npm yet. Install from GitHub (pick your package manager):\n\n```bash\nnpm install --save-dev github:coliff/eslint-plugin-bootstrap-5-migration\n```\n\n```bash\npnpm add -D github:coliff/eslint-plugin-bootstrap-5-migration\n```\n\n## Configuration\n\nESLint resolves the short plugin name **`bootstrap-migration`** from the package name `eslint-plugin-bootstrap-5-migration`.\n\n### Flat config (`eslint.config.js` / `eslint.config.mjs`)\n\n```javascript\nimport bootstrapMigration from \"eslint-plugin-bootstrap-5-migration\";\n\nexport default [\n  {\n    files: [\"**/*.{cjs,html,js,jsx,mjs,tsx,vue}\"],\n    plugins: {\n      \"bootstrap-migration\": bootstrapMigration,\n    },\n    rules: {\n      \"bootstrap-migration/no-v4-classes\": \"warn\",\n    },\n  },\n];\n```\n\nUse `\"error\"` instead of `\"warn\"` if you want the rule to fail CI.\n\n### Legacy `.eslintrc.*` (ESLint 8)\n\n```json\n{\n  \"plugins\": [\"bootstrap-migration\"],\n  \"rules\": {\n    \"bootstrap-migration/no-v4-classes\": \"warn\"\n  }\n}\n```\n\nPoint the `files` / `overrides` entry at the templates you want checked (HTML, Vue SFCs, JSX, etc.). For raw `.html` files you may need a plugin such as [`eslint-plugin-html`](https://www.npmjs.com/package/eslint-plugin-html) so ESLint parses those files.\n\n## VS Code: real-time linting and autofix on save\n\nWith the [ESLint extension](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint) installed, problems update as you edit. To run ESLint fixes when you save (for HTML and JS/TS), and to ensure ESLint validates those languages, add the following to your workspace or user `settings.json`:\n\n```json\n{\n  \"[html][javascript][typescript]\": {\n    \"editor.codeActionsOnSave\": {\n      \"source.fixAll.eslint\": \"explicit\"\n    }\n  },\n  \"eslint.validate\": [\"html\", \"javascript\"]\n}\n```\n\n![ESLint running in VS Code](.github/eslint-vs-code.png)\n\n`source.fixAll.eslint` set to `\"explicit\"` runs only when you use **Save** or **Save All** (not on every automatic save). Adjust `eslint.validate` if you use additional file types this plugin checks.\n\n## Rules\n\n| Rule ID                                   | Description       |\n| ----------------------------------------- | ----------------- |\n| [`no-v4-classes`](rules/no-v4-classes.js) | Flags v4 classes. |\n\nRule messages reference the same migration hints as in code; auto-fix is applied only when a safe one-to-one replacement is defined.\n\n## License\n\nMIT © [Christian Oliff](https://christianoliff.com). See [LICENSE](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoliff%2Feslint-plugin-bootstrap-5-migration","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcoliff%2Feslint-plugin-bootstrap-5-migration","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoliff%2Feslint-plugin-bootstrap-5-migration/lists"}