{"id":30430351,"url":"https://github.com/automutate/autolesshint","last_synced_at":"2025-08-22T18:18:10.827Z","repository":{"id":57187530,"uuid":"73746998","full_name":"automutate/autolesshint","owner":"automutate","description":"Automatically fixes Lesshint complaints.","archived":false,"fork":false,"pushed_at":"2020-06-03T07:40:28.000Z","size":472,"stargazers_count":4,"open_issues_count":36,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-09T01:51:48.533Z","etag":null,"topics":["less","lesshint","linter"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/automutate.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-11-14T21:08:54.000Z","updated_at":"2018-11-05T14:59:55.000Z","dependencies_parsed_at":"2022-08-28T13:00:26.299Z","dependency_job_id":null,"html_url":"https://github.com/automutate/autolesshint","commit_stats":null,"previous_names":["autolint/autolesshint"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/automutate/autolesshint","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/automutate%2Fautolesshint","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/automutate%2Fautolesshint/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/automutate%2Fautolesshint/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/automutate%2Fautolesshint/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/automutate","download_url":"https://codeload.github.com/automutate/autolesshint/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/automutate%2Fautolesshint/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271539817,"owners_count":24777495,"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-21T02:00:08.990Z","response_time":74,"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":["less","lesshint","linter"],"created_at":"2025-08-22T18:18:09.426Z","updated_at":"2025-08-22T18:18:10.812Z","avatar_url":"https://github.com/automutate.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# autolesshint\n\n[![Greenkeeper badge](https://badges.greenkeeper.io/automutate/autolesshint.svg)](https://greenkeeper.io/)\n[![npm](https://img.shields.io/npm/v/autolesshint.svg)](https://www.npmjs.com/package/autolesshint)\n\n`autolesshint` is a tool to automatically fix [Lesshint](https://github.com/lesshint/lesshint) \u003e=v4.0.0 complaints.\n\n* [Installation](#installation)\n* [CLI usage](#cli-usage)\n* [Supported rules](#supported-rules)\n* [Contributing](#contributing)\n\n## Installation\n\nRun the following command from the command line (add `-g` to install globally):\n\n```\nnpm install autolesshint\n```\n\n## CLI usage\n\nRun `autolesshint` from the command-line by passing one or more files/directories to recursively scan.\n\n```\nautolesshint src/less/ lib/style.less\n```\n\nAvailable Flags       | Description\n----------------------|----------------------------------------------\n`-c`/`--config`       | Specify the configuration file to use (will be merged with defaults).\n`-e`/`--exclude`      | A [minimatch glob pattern](https://github.com/isaacs/minimatch) or a file to exclude from being linted.\n`-V`/`--version`      | Show version.\n\n## Supported rules\n\n* `attribute_quotes`\n* `border_zero`\n* `comment`\n* `empty_rule`\n* `final_newline`\n* `hex_length`\n* `hex_notation`\n* `newline_after_block`\n* `single_line_per_selector`\n* `space_before_brace`\n* `space_between_parens`\n* `string_quotes`\n* `trailing_semicolon`\n* `trailing_whitespace`\n* `url_quotes`\n* `zero_unit`\n\nSee the [Complete rule coverage](https://github.com/automutate/autolesshint/milestone/1) milestone for upcoming coverage support.\n\n## Unsupported rules\n\nThese rules contain logic that require user input and can't be automatically fixed:\n\n* `depth_level`\n* `duplicate_property`\n* `hex_validation`\n* `id_selector`\n* `import_path`\n* `important_rule`\n* `max_char_per_line`\n* `property_units`\n* `qualifying_element`\n* `selector_naming`\n* `url_format`\n\n## Contributing\n\n`autolesshint` uses [Gulp](http://gulpjs.com/) to automate building, which requires [Node.js](http://node.js.org).\n\nTo build from scratch, install NodeJS and run the following commands:\n\n```\nnpm install -g gulp\nnpm install\ngulp\n```\n\n[automutate](https://github.com/automutate/automutate) manages the runtime of taking in lint complaints from `lesshint`.\nThese are mapped to `Suggester` classes in `src/suggesters` by name.\n\n[automutate-tests](https://github.com/automutate/automutate-tests) manages development-time tests verifying actual file mutations.\n\n### Adding a suggester\n\n* Add a `Suggester` class with a linter's name. `my_rule` would be mapped to `src/suggesters/myRuleSuggester.ts` that would have to export a `MyRuleSuggester` class that implements the `ISuggester` interface.\n* Add test case(s) under `test/cases` that each have an `original.less`, `expected.less`, `actual.less`, and `.lesshintrc`.\n* Add the suggester to the list in `README.md`.\n* Submit a PR referencing the issue corresponding to the lint rule.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fautomutate%2Fautolesshint","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fautomutate%2Fautolesshint","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fautomutate%2Fautolesshint/lists"}