{"id":15283016,"url":"https://github.com/wikimedia/stylelint-config-wikimedia","last_synced_at":"2025-10-24T14:27:54.148Z","repository":{"id":8629267,"uuid":"59041044","full_name":"wikimedia/stylelint-config-wikimedia","owner":"wikimedia","description":"CSS/Less Stylelint configuration according to CSS coding conventions for Wikimedia.","archived":false,"fork":false,"pushed_at":"2025-01-07T14:39:32.000Z","size":1150,"stargazers_count":14,"open_issues_count":11,"forks_count":9,"subscribers_count":15,"default_branch":"main","last_synced_at":"2025-04-02T11:05:17.564Z","etag":null,"topics":["code","coding-standards","css","less","linting","style","stylelint","wikimedia"],"latest_commit_sha":null,"homepage":"https://www.mediawiki.org/wiki/Manual:Coding_conventions/CSS","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/wikimedia.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":"support-basic-rules.js","governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-05-17T16:46:03.000Z","updated_at":"2025-01-07T14:39:57.000Z","dependencies_parsed_at":"2024-05-03T16:04:19.884Z","dependency_job_id":"61c94d4b-2540-4b96-ba23-facd7b24d921","html_url":"https://github.com/wikimedia/stylelint-config-wikimedia","commit_stats":{"total_commits":171,"total_committers":7,"mean_commits":"24.428571428571427","dds":0.5146198830409356,"last_synced_commit":"e095dbc148f695e54276ee180d79df31b7f465eb"},"previous_names":[],"tags_count":34,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wikimedia%2Fstylelint-config-wikimedia","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wikimedia%2Fstylelint-config-wikimedia/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wikimedia%2Fstylelint-config-wikimedia/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wikimedia%2Fstylelint-config-wikimedia/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wikimedia","download_url":"https://codeload.github.com/wikimedia/stylelint-config-wikimedia/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248036067,"owners_count":21037092,"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":["code","coding-standards","css","less","linting","style","stylelint","wikimedia"],"created_at":"2024-09-30T14:41:47.290Z","updated_at":"2025-10-24T14:27:54.078Z","avatar_url":"https://github.com/wikimedia.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# stylelint-config-wikimedia\n[![NPM version](http://img.shields.io/npm/v/stylelint-config-wikimedia.svg)](https://www.npmjs.org/package/stylelint-config-wikimedia)\n\u003e Wikimedia CSS Coding Standards shareable config for stylelint\n\nConfiguration rules to ensure your CSS is compliant with the [Wikimedia CSS Coding Standards](https://www.mediawiki.org/wiki/Manual:Coding_conventions/CSS).\n\n\n## Installation\n\n```console\n$ npm install -D stylelint-config-wikimedia\n```\n\n\n## Usage\n\nSet your `stylelint` config file, `.stylelintrc.json`, to:\n\n```json\n{\n\t\"extends\": \"stylelint-config-wikimedia\"\n}\n```\n\nIf you would also like to enable rules to disallow CSS which is unsupported by modern browsers [Grade A](https://www.mediawiki.org/wiki/Compatibility#Modern_(Grade_A)) or basic supported browsers [Grade C](https://www.mediawiki.org/wiki/Compatibility#Basic_(Grade_C)) browsers, you can use the following configurations instead:\n\n```json\n{\n\t\"extends\": \"stylelint-config-wikimedia/support-modern\"\n}\n```\n\n```json\n{\n\t\"extends\": \"stylelint-config-wikimedia/support-basic\"\n}\n```\n\nIf you are using in a MediaWiki environment, you can add the following config:\n\n```json\n{\n\t\"extends\": [\n\t\t\"stylelint-config-wikimedia\",\n\t\t\"stylelint-config-wikimedia/mediawiki\"\n\t]\n}\n```\n\nIf you need to combine this with browser support rules:\n\n```json\n{\n\t\"extends\": [\n\t\t\"stylelint-config-wikimedia/support-modern\",\n\t\t\"stylelint-config-wikimedia/mediawiki\"\n\t]\n}\n```\n\n### Extend or override the configuration\nAdd a `\"rules\"` object to your config file, and add your overrides or additional rules there, for example:\n```json\n{\n\t\"extends\": \"stylelint-config-wikimedia/support-basic\",\n\t\"rules\": {\n\t\t\"@stylistic/max-empty-lines\": null\n\t}\n}\n```\n\n\n## Changelog\nYou can read the [changelog](CHANGELOG.md) for release versions.\n\n\n## License\nThis is available under the [MIT License](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwikimedia%2Fstylelint-config-wikimedia","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwikimedia%2Fstylelint-config-wikimedia","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwikimedia%2Fstylelint-config-wikimedia/lists"}