{"name":"stylelint-config-css-modules","version":"4.5.1","keywords":["stylelint","stylelint-config","css-modules"],"author":{"url":"https://github.com/pascalduez","name":"Pascal Duez"},"license":"Unlicense","_id":"stylelint-config-css-modules@4.5.1","maintainers":[{"name":"pascalduez","email":"public@pascalduez.me"}],"homepage":"https://github.com/pascalduez/stylelint-config-css-modules","bugs":{"url":"https://github.com/pascalduez/stylelint-config-css-modules/issues"},"dist":{"shasum":"7275283bbc6519feb833cc56e5bafbe7afc72084","tarball":"http://registry-npm.ywwl.com/stylelint-config-css-modules/download/stylelint-config-css-modules-4.5.1.tgz","fileCount":6,"integrity":"sha512-xRMvAOVWa8h3Dw2NmanJHuPqMUInmMoBy14kkJDT2xs2xevxl7WnQOe/nDAMvgf9NkodzKrhKZ97E61yQOKkDA==","signatures":[{"sig":"MEUCIQCt3GY+1TUL0tpMEzIMMiQtfB2UGEhN6Widij9k0LRxXwIgKpDmubHIEbg3kq1aAWhJ7OddpOsWMGK6slW6CJr/PpA=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":13491,"size":3904,"noattachment":false,"key":"/stylelint-config-css-modules/-/stylelint-config-css-modules-4.5.1.tgz"},"main":"./dist/index.cjs","type":"module","_from":"file:stylelint-config-css-modules-4.5.1.tgz","exports":{"import":"./dist/index.js","require":"./dist/index.cjs"},"scripts":{"test":"node --test","build":"rollup -c","format:check":"prettier -l \"**/*.{js,css,scss}\"","format:write":"prettier --write \"**/*.{js,scss,css}\""},"_npmUser":{"name":"pascalduez","actor":{"name":"pascalduez","type":"user","email":"public@pascalduez.me"},"email":"public@pascalduez.me"},"_resolved":"/tmp/b311ba5c0f7ebc35e23f174090785b59/stylelint-config-css-modules-4.5.1.tgz","_integrity":"sha512-xRMvAOVWa8h3Dw2NmanJHuPqMUInmMoBy14kkJDT2xs2xevxl7WnQOe/nDAMvgf9NkodzKrhKZ97E61yQOKkDA==","repository":{"url":"git://github.com/pascalduez/stylelint-config-css-modules.git","type":"git"},"_npmVersion":"11.3.0","description":"CSS modules shareable config for stylelint","directories":{},"_nodeVersion":"24.2.0","_hasShrinkwrap":false,"devDependencies":{"rollup":"^4.44.1","postcss":"^8.5.6","prettier":"^3.6.2","stylelint":"^16.21.0","stylelint-config-standard":"^38.0.0","stylelint-config-standard-scss":"^15.0.1"},"peerDependencies":{"stylelint":"^14.5.1 || ^15.0.0 || ^16.0.0"},"optionalDependencies":{"stylelint-scss":"^6.12.1"},"_npmOperationalInternal":{"tmp":"tmp/stylelint-config-css-modules_4.5.1_1751267880019_0.6972709412368105","host":"s3://npm-registry-packages-npm-production"},"readme":"# stylelint-config-css-modules\n\n[![npm version][npm-image]][npm-url]\n[![CI Status][ci-image]][ci-url]\n\n> 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> `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&style=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","publish_time":1751267880186,"_cnpm_publish_time":1751267880186,"dist-tags":{"latest":"4.6.0"}}