{"name":"stylelint-config-css-modules","version":"4.6.0","description":"CSS modules shareable config for stylelint","keywords":["stylelint","stylelint-config","css-modules"],"author":{"name":"Pascal Duez","url":"https://github.com/pascalduez"},"homepage":"https://github.com/pascalduez/stylelint-config-css-modules","bugs":{"url":"https://github.com/pascalduez/stylelint-config-css-modules/issues"},"repository":{"type":"git","url":"git://github.com/pascalduez/stylelint-config-css-modules.git"},"license":"Unlicense","type":"module","main":"./dist/index.cjs","exports":{"import":"./dist/index.js","require":"./dist/index.cjs"},"scripts":{"format:check":"prettier -l \"**/*.{js,css,scss}\"","format:write":"prettier --write \"**/*.{js,scss,css}\"","test":"node --test","build":"rollup -c","prepare":"pnpm build"},"packageManager":"pnpm@10.13.1+sha512.37ebf1a5c7a30d5fabe0c5df44ee8da4c965ca0c5af3dbab28c3a1681b70a256218d05c81c9c0dcf767ef6b8551eb5b960042b9ed4300c59242336377e01cfad","devDependencies":{"postcss":"^8.5.6","prettier":"^3.8.1","rollup":"^4.56.0","stylelint":"^17.0.0","stylelint-config-standard":"^40.0.0","stylelint-config-standard-scss":"^17.0.0"},"peerDependencies":{"stylelint":"^14.5.1 || ^15.0.0 || ^16.0.0 || ^17.0.0"},"optionalDependencies":{"stylelint-scss":"^7.0.0"},"gitHead":"64b57905813cc6b6598d4500b380ffe98ada9382","_id":"stylelint-config-css-modules@4.6.0","_nodeVersion":"24.11.1","_npmVersion":"11.6.2","dist":{"integrity":"sha512-LIgfzNmpiwf/eDxQva2g1mj+mqDpvP1XwOKJC7DSWY/iCQAZdIKnY42jbXuY8thcFN4yM/uF1xfCyfd7fJKh6w==","shasum":"b56c5198b7484ac0417684431fe8f7d294bc6956","tarball":"http://registry-npm.ywwl.com/stylelint-config-css-modules/download/stylelint-config-css-modules-4.6.0.tgz","fileCount":6,"unpackedSize":13960,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCFiqUNO4liSUeqxDPT2DQ05ztprOMIYZ8gTsCFOHBZ5AIhAK8HTF8WxbTd/rToIRv8Fqu5+TkycGlSQtTAq7E7dIe5"}],"size":4048,"noattachment":false,"key":"/stylelint-config-css-modules/-/stylelint-config-css-modules-4.6.0.tgz"},"_npmUser":{"name":"pascalduez","email":"public@pascalduez.me"},"directories":{},"maintainers":[{"name":"pascalduez","email":"public@pascalduez.me"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/stylelint-config-css-modules_4.6.0_1769157986737_0.27087127604535466"},"_hasShrinkwrap":false,"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":1769157986877,"_cnpm_publish_time":1769157986877,"dist-tags":{"latest":"4.6.0"}}