{"id":20285659,"url":"https://github.com/marcisbee/marklint","last_synced_at":"2025-04-11T08:39:09.683Z","repository":{"id":42984931,"uuid":"205907753","full_name":"Marcisbee/marklint","owner":"Marcisbee","description":"🔰 HTML/Markup (Vue and Angular template) linter","archived":false,"fork":false,"pushed_at":"2024-02-14T08:09:25.000Z","size":798,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-10T06:50:31.206Z","etag":null,"topics":["hacktoberfest","html","lint","markup","template","validator"],"latest_commit_sha":null,"homepage":"","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/Marcisbee.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":"2019-09-02T17:43:18.000Z","updated_at":"2024-02-15T08:07:35.000Z","dependencies_parsed_at":"2024-02-13T21:32:12.869Z","dependency_job_id":"08ea3f5b-ab83-489b-bbcd-3acc6862eb76","html_url":"https://github.com/Marcisbee/marklint","commit_stats":null,"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Marcisbee%2Fmarklint","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Marcisbee%2Fmarklint/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Marcisbee%2Fmarklint/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Marcisbee%2Fmarklint/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Marcisbee","download_url":"https://codeload.github.com/Marcisbee/marklint/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248362205,"owners_count":21091067,"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":["hacktoberfest","html","lint","markup","template","validator"],"created_at":"2024-11-14T14:28:19.534Z","updated_at":"2025-04-11T08:39:09.660Z","avatar_url":"https://github.com/Marcisbee.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# marklint (Markup Lint)\nHTML lint tool that works well with Angular and Vue templates too\n\n![CI](https://img.shields.io/github/actions/workflow/status/Marcisbee/marklint/main.yml?style=flat-square)\n[![Snyk](https://img.shields.io/snyk/vulnerabilities/github/Marcisbee/marklint?style=flat-square)](https://snyk.io/test/github/Marcisbee/marklint)\n[![npm version](https://img.shields.io/npm/v/marklint.svg?style=flat-square)](https://www.npmjs.com/package/marklint)\n[![gzip bundle size](https://img.shields.io/bundlephobia/minzip/marklint?style=flat-square)](https://bundlephobia.com/result?p=marklint)\n[![discord](https://dcbadge.vercel.app/api/server/a62gfaDW2e?style=flat-square)](https://discord.gg/a62gfaDW2e)\n\n# Features\n- ⚡️ Fast html parsing\n- 📏 Uses editorconfig\n- 🖍 Prints beautiful code frames\n- 🛠 Fixes auto fixable issues\n- 🎭 Works with Vue and Angular too\n- 🗂 No dependencies\n\u003c!-- - 📑 Lint and transform API --\u003e\n\n# Example screenshots\n\n\u003ctable\u003e\n\u003ctr\u003e\n\u003ctd\u003e\n\n![image](https://user-images.githubusercontent.com/16621507/101641617-a246df80-3a3a-11eb-9bce-8d7a7e7160d9.png)\n\u003c/td\u003e\n\u003ctd\u003e\n\n![image](https://user-images.githubusercontent.com/16621507/101642222-6b24fe00-3a3b-11eb-94d3-2c2b1689e664.png)\n\u003c/td\u003e\n\u003c/tr\u003e\n\u003c/table\u003e\n\n\n# Installation\n\n```bash\nnpm install marklint -g\n```\n\n# Command line interface\n\nLint a file like so:\n\n```bash\nmarklint\n```\n\n## Options\n\n```\nUsage: marklint [file] [options]\n\nfile or directory     file or directory to parse; otherwise uses '.'\n\nOptions:\n   --fix                    fixes all auto fixable issues\n   -v, --version            print version and exit\n   -i, --include            array of file paths to include (default: *.html, *.htm)\n   -e, --exclude            array of file paths to exclude (default: node_modules/**)\n   -c, --config             location of config file\n```\n\n\u003c!-- # Lint \u0026 transform API --\u003e\n\n# Rules\n\n- ✅ [alt-require](/docs/rules.md#rule-alt-require)\n- ✅ [attr-closing-bracket](/docs/rules.md#rule-attr-closing-bracket)\n- ✅ [attr-format](/docs/rules.md#rule-attr-format)\n- ✅ [attr-lowercase](/docs/rules.md#rule-attr-lowercase)\n- ✅ [attr-no-duplication](/docs/rules.md#rule-attr-no-duplication)\n- ✅ [attr-value-not-empty](/docs/rules.md#rule-attr-value-not-empty)\n- ⭕ [attr-value-double-quotes](/docs/rules.md#rule-attr-value-double-quotes) - _WIP_\n- ✅ [comment-format](/docs/rules.md#rule-comment-format)\n- ✅ [inline-style-disabled](/docs/rules.md#rule-inline-style-disabled)\n- ✅ [no-flow-tag-close](/docs/rules.md#rule-no-flow-tag-close)\n- ✅ [no-unclosed-tag](/docs/rules.md#rule-no-unclosed-tag)\n- ✅ [no-void-tag-close](/docs/rules.md#rule-no-void-tag-close)\n- ⭕ [style-disabled](/docs/rules.md#rule-style-disabled) - _WIP_\n- ✅ [tag-indent](/docs/rules.md#rule-tag-indent)\n\n# Motivation\nBy the time I started this project there were not many html lint tools and none of them provided features I wanted for my templates to have such as indent attributes based on length of attributes length and none of them really worked with Angular templates, that was my primary target from the start.\n\nAnd since I hate that JS ecosystem has dependency rabbit hole I wanted to build markup linter that checks and fixes issues in any html markup file as well as Angular and Vue templates with minimum dependency count.\n\n# MIT License\nCopyright (C) 2020 Marcis Bergmanis\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcisbee%2Fmarklint","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarcisbee%2Fmarklint","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcisbee%2Fmarklint/lists"}