{"id":13671163,"url":"https://github.com/stylelint/stylelint-config-standard","last_synced_at":"2025-05-11T03:40:24.680Z","repository":{"id":3424321,"uuid":"49444538","full_name":"stylelint/stylelint-config-standard","owner":"stylelint","description":"The standard shareable config for Stylelint","archived":false,"fork":false,"pushed_at":"2025-05-01T23:15:57.000Z","size":2950,"stargazers_count":1406,"open_issues_count":2,"forks_count":112,"subscribers_count":17,"default_branch":"main","last_synced_at":"2025-05-07T23:04:48.892Z","etag":null,"topics":["stylelint"],"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/stylelint.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":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":"stylelint","open_collective":"stylelint"}},"created_at":"2016-01-11T18:10:57.000Z","updated_at":"2025-05-03T05:19:23.000Z","dependencies_parsed_at":"2023-12-08T12:30:40.209Z","dependency_job_id":"b731842d-726c-48a6-ad0e-2daf3369a8f9","html_url":"https://github.com/stylelint/stylelint-config-standard","commit_stats":{"total_commits":330,"total_committers":18,"mean_commits":"18.333333333333332","dds":0.5696969696969697,"last_synced_commit":"c98f4c374feb246814cd1645ba674cad6d431bfd"},"previous_names":[],"tags_count":50,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stylelint%2Fstylelint-config-standard","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stylelint%2Fstylelint-config-standard/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stylelint%2Fstylelint-config-standard/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stylelint%2Fstylelint-config-standard/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stylelint","download_url":"https://codeload.github.com/stylelint/stylelint-config-standard/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252968114,"owners_count":21833251,"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":["stylelint"],"created_at":"2024-08-02T09:01:01.423Z","updated_at":"2025-05-07T23:04:54.202Z","avatar_url":"https://github.com/stylelint.png","language":"JavaScript","funding_links":["https://github.com/sponsors/stylelint","https://opencollective.com/stylelint"],"categories":["JavaScript","others"],"sub_categories":[],"readme":"# stylelint-config-standard\n\n[![NPM version](https://img.shields.io/npm/v/stylelint-config-standard.svg)](https://www.npmjs.org/package/stylelint-config-standard) [![Build Status](https://github.com/stylelint/stylelint-config-standard/workflows/CI/badge.svg)](https://github.com/stylelint/stylelint-config-standard/actions)\n\n\u003e The standard shareable config for Stylelint.\n\nIt extends [`stylelint-config-recommended`](https://github.com/stylelint/stylelint-config-recommended) and turns on additional rules to enforce modern conventions found in the [CSS specifications](https://www.w3.org/Style/CSS/current-work) and within [Baseline Widely Available](https://web.dev/baseline).\n\nTo see the rules that this config uses, please read the [config itself](./index.js).\n\n## Example\n\n```css\n@import url(\"foo.css\");\n@import url(\"bar.css\");\n\n@custom-media --foo (min-width: 30em);\n\n/**\n * Multi-line comment\n */\n\n:root {\n  --brand-red: hsl(5deg 10% 40%);\n}\n\n/* Single-line comment */\n\n.class-foo:not(a, div) {\n  margin: 0;\n  top: calc(100% - 2rem);\n}\n\n/* Flush single line comment */\n@media (width \u003e= 60em) {\n  #id-bar {\n    /* Flush to parent comment */\n    --offset: 0px;\n\n    color: #fff;\n    font-family: Helvetica, \"Arial Black\", sans-serif;\n    left: calc(var(--offset) + 50%);\n  }\n\n  /* Flush nested single line comment */\n  a::after {\n    display: block;\n    content: \"→\";\n    background-image: url(\"x.svg\");\n  }\n}\n\n@keyframes fade-in {\n  from {\n    opacity: 0;\n  }\n\n  to {\n    opacity: 1;\n  }\n}\n```\n\n_Note: the config is tested against this example, as such the example contains plenty of CSS syntax and features._\n\n## Installation\n\n```bash\nnpm install stylelint-config-standard --save-dev\n```\n\n## Usage\n\nSet your Stylelint config to:\n\n```json\n{\n  \"extends\": \"stylelint-config-standard\"\n}\n```\n\n### Extending the config\n\nAdd a `\"rules\"` key to your config, then add your overrides and additions there.\n\nYou can turn off rules by setting its value to `null`. For example:\n\n```json\n{\n  \"extends\": \"stylelint-config-standard\",\n  \"rules\": {\n    \"selector-class-pattern\": null\n  }\n}\n```\n\nOr lower the severity of a rule to a warning using the `severity` secondary option. For example:\n\n```json\n{\n  \"extends\": \"stylelint-config-standard\",\n  \"rules\": {\n    \"property-no-vendor-prefix\": [\n      true,\n      {\n        \"severity\": \"warning\"\n      }\n    ]\n  }\n}\n```\n\nOr to add a rule, For example, the `unit-allowed-list` one:\n\n```json\n{\n  \"extends\": \"stylelint-config-standard\",\n  \"rules\": {\n    \"unit-allowed-list\": [\"em\", \"rem\", \"s\"]\n  }\n}\n```\n\nWe recommend adding more of [Stylelint's rules](https://stylelint.io/user-guide/rules/) to your config as these rules need to be configured to suit your specific needs.\n\n## [Changelog](CHANGELOG.md)\n\n## [License](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstylelint%2Fstylelint-config-standard","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstylelint%2Fstylelint-config-standard","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstylelint%2Fstylelint-config-standard/lists"}