{"id":14990548,"url":"https://github.com/pascalduez/stylelint-config-css-modules","last_synced_at":"2025-05-16T03:02:09.918Z","repository":{"id":11021069,"uuid":"66932281","full_name":"pascalduez/stylelint-config-css-modules","owner":"pascalduez","description":"CSS modules shareable config for stylelint","archived":false,"fork":false,"pushed_at":"2025-04-23T08:51:48.000Z","size":637,"stargazers_count":112,"open_issues_count":4,"forks_count":2,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-05-15T19:53:55.611Z","etag":null,"topics":["css","css-modules","stylelint"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pascalduez.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"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":"2016-08-30T10:49:41.000Z","updated_at":"2025-04-23T08:51:52.000Z","dependencies_parsed_at":"2024-01-28T17:44:58.786Z","dependency_job_id":"f331a939-fa49-45c8-b004-1a513bfb5d54","html_url":"https://github.com/pascalduez/stylelint-config-css-modules","commit_stats":{"total_commits":102,"total_committers":3,"mean_commits":34.0,"dds":0.0490196078431373,"last_synced_commit":"66f837854875478f2a313b4a76b0d0744934a71e"},"previous_names":[],"tags_count":18,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pascalduez%2Fstylelint-config-css-modules","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pascalduez%2Fstylelint-config-css-modules/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pascalduez%2Fstylelint-config-css-modules/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pascalduez%2Fstylelint-config-css-modules/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pascalduez","download_url":"https://codeload.github.com/pascalduez/stylelint-config-css-modules/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254459077,"owners_count":22074604,"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":["css","css-modules","stylelint"],"created_at":"2024-09-24T14:20:20.515Z","updated_at":"2025-05-16T03:02:09.857Z","avatar_url":"https://github.com/pascalduez.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# stylelint-config-css-modules\n\n[![npm version][npm-image]][npm-url]\n[![CI Status][ci-image]][ci-url]\n\n\u003e CSS modules shareable config for stylelint.\n\nTweaks [stylelint] rules to accept [css modules] specific syntax.  \nThis is useful as an override of pre-defined rules, for instance the [stylelint-config-standard].\n\n## Installation\n\n```\nnpm install stylelint-config-css-modules --save-dev\n# or\npnpm install stylelint-config-css-modules --save-dev\n# or\nyarn add stylelint-config-css-modules --dev\n```\n\n\u003e `stylelint-config-css-modules` comes with `stylelint-scss` as `optionalDependencies`, \nif you're not using SCSS and want to strip it from your node_modules just:\n\n```\nnpm install stylelint-config-css-modules --save-dev --no-optional\n# or\npnpm install stylelint-config-css-modules --save-dev --no-optional\n# or\nyarn add stylelint-config-css-modules --dev --ignore-optional\n```\n\n## Usage\n\n```json\n{\n  \"extends\": [\n    \"stylelint-config-standard\",\n    \"stylelint-config-css-modules\"\n  ]\n}\n```\n\n## Examples\n\n```css\n@value colors: './colors.css';\n@value primary, secondary from colors;\n\n.base {\n  content: 'base';\n  color: primary;\n}\n\n.composed {\n  composes: base;\n}\n\n.composedWith {\n  compose-with: base;\n}\n\n.flexible {\n  composes: flex from './utils.css';\n  flex-direction: column;\n}\n\n:global(.js) .progressive {\n  display: block;\n}\n\n:export {\n  black: #000;\n  white: #111;\n}\n```\n\n## SCSS\n\nUsing SCSS along with configs such as [stylelint-config-standard-scss] means you \nshould necessarily have [stylelint-scss] installed.\n\n```json\n{\n  \"extends\": [\n    \"stylelint-config-standard-scss\",\n    \"stylelint-config-css-modules\"\n  ]\n}\n```\n\n## Credits\n\n- [Pascal Duez](https://github.com/pascalduez)\n\n## Licence\n\nstylelint-config-css-modules is [unlicensed](http://unlicense.org/).\n\n[npm-url]: https://www.npmjs.org/package/stylelint-config-css-modules\n[npm-image]: http://img.shields.io/npm/v/stylelint-config-css-modules.svg?style=flat-square\n[ci-url]: https://github.com/pascalduez/stylelint-config-css-modules/actions/workflows/ci.yml\n[ci-image]:  https://img.shields.io/github/actions/workflow/status/pascalduez/stylelint-config-css-modules/ci.yml?branch=main\u0026style=flat-square\n\n[stylelint]: https://github.com/stylelint/stylelint\n[css modules]: https://github.com/css-modules/css-modules\n[stylelint-scss]: https://github.com/stylelint-scss/stylelint-config-standard-scss\n[stylelint-config-standard]: https://github.com/stylelint/stylelint-config-standard\n[stylelint-config-standard-scss]: https://github.com/stylelint-scss/stylelint-config-standard-scss\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpascalduez%2Fstylelint-config-css-modules","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpascalduez%2Fstylelint-config-css-modules","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpascalduez%2Fstylelint-config-css-modules/lists"}