{"_id":"@alma-oss/stylelint-config","_rev":"2-a1a48bbc278a594c924756c99800d04c","name":"@alma-oss/stylelint-config","dist-tags":{"latest":"10.0.0-alpha.0","next":"10.0.0-alpha.0"},"versions":{"10.0.0-alpha.0":{"name":"@alma-oss/stylelint-config","version":"10.0.0-alpha.0","keywords":["stylelint","config","alma","career","preset"],"author":{"name":"Tomáš Litera","email":"tomas.litera@almacareer.com"},"license":"MIT","_id":"@alma-oss/stylelint-config@10.0.0-alpha.0","maintainers":[{"name":"alma-design-system-bot","email":"team-design-system@almacareer.com"},{"name":"literat","email":"tomaslitera@hotmail.com"}],"homepage":"https://github.com/lmc-eu/code-quality-tools#readme","bugs":{"url":"https://github.com/lmc-eu/code-quality-tools/issues"},"dist":{"shasum":"afd8a6ab157108d0c986ef4147f23264fbd7fffe","tarball":"https://registry.npmjs.org/@alma-oss/stylelint-config/-/stylelint-config-10.0.0-alpha.0.tgz","fileCount":7,"integrity":"sha512-3Hqoo11jHzuJKktmArxLdjFzHMEN5VJ/uOvmVOcGTfn7Hf24y0c+KR4OGvnOqMet/pyVi1diT21+xiQ2l2khHw==","signatures":[{"sig":"MEQCIFsKqpYBImM6LSFrKkfQtnkIWpx8vMQz8YWmgF9zTrdyAiAJ8ANA/e1iAF2P0vEXxGLfwu6cPhJcu+nMxtP/ryvTiw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":24968},"type":"module","engines":{"node":">=20"},"exports":{".":"./index.js","./package.json":"./package.json"},"gitHead":"e0813802528e9cd92fd6c6a835058ad067f2d958","scripts":{"lint":"yarn lint:css","test":"npm-run-all --serial lint test:unit","lint:css":"npm-run-all --serial lint:css:main lint:css:order lint:css:scss","test:unit":"node --test","lint:css:main":"stylelint --config index.js __tests__/__fixtures__/css-valid.css","lint:css:scss":"stylelint --config rules/scss.js __tests__/__fixtures__/scss-valid.scss","lint:css:order":"stylelint --config rules/order.js __tests__/__fixtures__/css-valid.css"},"_npmUser":{"name":"literat","email":"tomaslitera@hotmail.com"},"repository":{"url":"git+https://github.com/lmc-eu/code-quality-tools.git","type":"git","directory":"packages/stylelint-config"},"_npmVersion":"lerna/10.0.1/node@v22.23.2+arm64 (darwin)","description":"Alma Career's config for Stylelint","directories":{},"_nodeVersion":"22.23.2","dependencies":{"postcss-scss":"^4.0.3","stylelint-order":"^6.0.0","stylelint-config-standard-scss":"^13.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"stylelint":"16.26.1","npm-run-all2":"9.0.3"},"peerDependencies":{"stylelint":"^16.0.0"},"_npmOperationalInternal":{"tmp":"tmp/stylelint-config_10.0.0-alpha.0_1788943713553_0.11218548839385245","host":"s3://npm-registry-packages-npm-production"}}},"time":{"created":"2026-09-09T08:48:33.376Z","modified":"2026-09-09T08:52:01.673Z","10.0.0-alpha.0":"2026-09-09T08:48:33.676Z"},"bugs":{"url":"https://github.com/lmc-eu/code-quality-tools/issues"},"author":{"name":"Tomáš Litera","email":"tomas.litera@almacareer.com"},"license":"MIT","homepage":"https://github.com/lmc-eu/code-quality-tools#readme","keywords":["stylelint","config","alma","career","preset"],"repository":{"url":"git+https://github.com/lmc-eu/code-quality-tools.git","type":"git","directory":"packages/stylelint-config"},"description":"Alma Career's config for Stylelint","maintainers":[{"name":"alma-design-system-bot","email":"team-design-system@almacareer.com"},{"name":"literat","email":"tomaslitera@hotmail.com"}],"readme":"# `@alma-oss/stylelint-config`\n\n[![npm version](https://img.shields.io/npm/v/@alma-oss/stylelint-config?label=npm%20package&logo=npm)](https://www.npmjs.org/package/@alma-oss/stylelint-config)\n[![Node version](https://img.shields.io/node/v/@alma-oss/stylelint-config.svg?style=flat&logo=nodedotjs)](https://nodejs.org/download/)\n[![Stylelint version](https://img.shields.io/npm/dependency-version/@alma-oss/stylelint-config/peer/stylelint?logo=stylelint)](https://github.com/stylelint/stylelint)\n\n> Alma Career’s config for Stylelint\n\n## Usage\n\n```bash\n# Yarn:\nyarn add --dev @alma-oss/stylelint-config stylelint-prettier\n\n# npm:\nnpm install --save-dev @alma-oss/stylelint-config stylelint-prettier\n```\n\n> We assume you are using Prettier. That’s why we also recommend adding\n> `stylelint-prettier` above.\n\nConfiguration extends community maintained config [stylelint-config-standard-scss](https://github.com/stylelint-scss/stylelint-config-standard-scss).\n\nThis config:\n\n- Extends the [`stylelint-config-recommended` shared config](https://github.com/stylelint/stylelint-config-recommended) and configures its rules for SCSS;\n- extends the [`stylelint-config-recommended-scss` shared config](https://github.com/stylelint-scss/stylelint-config-recommended-scss) and configures its rules for SCSS;\n- extends the [`stylelint-config-standard` shared config](https://github.com/stylelint/stylelint-config-standard) and configures its rules.\n\n## Configuration\n\n- **`@alma-oss/stylelint-config`**\n\nUse this ruleset to configure Stylelint to work with your code.\n\n## Recommended Stylelint Configuration\n\n```js\n// .stylelintrc.mjs\n\nexport default {\n  extends: ['@alma-oss/stylelint-config', 'stylelint-prettier/recommended'],\n};\n```\n\n<details>\n<summary><i>.stylelintrc</i> or <i>.stylelintrc.json</i></summary>\n\n```json\n{\n  \"extends\": [\"@alma-oss/stylelint-config\", \"stylelint-prettier/recommended\"]\n}\n```\n\n</details>\n\n<details>\n<summary><i>package.json</i></summary>\n\n```json\n{\n  \"stylelint\": {\n    \"extends\": [\"@alma-oss/stylelint-config\", \"stylelint-prettier/recommended\"]\n  }\n}\n```\n\n</details>\n\n## Checking Properties Order\n\nTo further extend control over coding style of your stylesheets, we are also\nchecking for properties order.\n\nThe `order` config enforces a consistent order of content in your declaration blocks:\n\n1. Sass variables,\n2. CSS custom properties,\n3. Sass `@extend`,\n4. single-line Sass `@include`,\n5. declarations,\n6. nested rules,\n\nFor better flexibility, block at-rules (like `@media`, `@supports`, and also Sass `@if`, `@each`, etc.) can be placed\nanywhere in the declaration block.\n\nBesides, properties in the declarations must be ordered by following categories:\n\n1. `all` properties,\n2. `content`,\n3. position,\n4. `appearance`,\n5. box model,\n6. typography,\n7. decorations,\n8. effects and transforms,\n9. interactions,\n10. transitions and animations.\n\n👉 To see the order of individual properties this config prescribes, please read\nthe [`order` config itself](./rules/order.js).\n\n## Stylistic Rules\n\nStylistic rules (like indentation etc.) [were dropped][stylelint-v16-stylistic-rules]\nin Stylelint v16. To enforce them, you can use\n[`stylelint-prettier`][stylelint-prettier]:\n\n```json\n// `.stylelintrc`\n{\n  \"plugins\": [\"stylelint-prettier\"],\n  \"rules\": {\n    \"prettier/prettier\": true\n  }\n}\n```\n\n## FAQ\n\n<details>\n<summary>How do I change the indentation?</summary>\n### With Prettier\n\nIf using Prettier, you can configure the indentation in your Prettier config:\n\n```json\n{\n  \"tabWidth\": 2\n}\n```\n\nOr in your [`.editorconfig`][editorconfig]:\n\n```ini\n[*]\nindent_size = 2\n```\n\n👉 See [Prettier][prettier] documentation for more options.\n\n</details>\n\n[prettier]: https://prettier.io\n[stylelint-v16-stylistic-rules]: https://stylelint.io/migration-guide/to-16/#removed-deprecated-stylistic-rules\n[stylelint-prettier]: https://github.com/prettier/stylelint-prettier\n","readmeFilename":"README.md"}