{"_id":"@alexpavlov/stylelint-config-rational-order","_rev":"5-b096244fd7be3671cdedcde28effa3fb","name":"@alexpavlov/stylelint-config-rational-order","dist-tags":{"latest":"0.2.0"},"versions":{"0.1.4":{"name":"@alexpavlov/stylelint-config-rational-order","version":"0.1.4","keywords":["stylelint","stylelint-config","stylelint-order","stylelint-plugin","properties-order","css property order","declaration-order","css declaration order","rational-css","order-css","order"],"author":{"name":"Constverum","email":"constverum@gmail.com"},"license":"Apache-2.0","_id":"@alexpavlov/stylelint-config-rational-order@0.1.4","maintainers":[{"name":"alexpavlov","email":"aleksey.pavlof@gmail.com"}],"homepage":"https://github.com/AlexPavlof/stylelint-config-rational-order","bugs":{"url":"https://github.com/AlexPavlof/stylelint-config-rational-order/issues"},"dist":{"shasum":"fefe7f265e3dbb927f8a8fd209783d39e7cc8ede","tarball":"https://registry.npmjs.org/@alexpavlov/stylelint-config-rational-order/-/stylelint-config-rational-order-0.1.4.tgz","fileCount":22,"integrity":"sha512-DGKvBfDrF1YHiCRK3I6UGqHb41OoUTceDgsTZiGYE/g5+spOcbw/8LvOT4BTVgSQ8HD62SGs8P2H4B/MV5mrcg==","signatures":[{"sig":"MEUCIQC48H6vUf/KX3wcOLoKjAwuHQ5dNjGcBt5ibac/l5C8KQIgLp61IEsP88SoNkS35GQOH+u4Jn5WN24BD9cXjqnj44E=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":34005},"main":"index.js","type":"module","engines":{"node":">=18.12.0"},"exports":"./index.js","gitHead":"444cac2284f5e7391a9e77e4536940708230fc9c","private":false,"scripts":{"lint":"eslint .","test":"cross-env NODE_OPTIONS=\"--experimental-vm-modules --no-warnings\" jest --runInBand"},"_npmUser":{"name":"alexpavlov","email":"aleksey.pavlof@gmail.com"},"repository":{"url":"git+https://github.com/AlexPavlof/stylelint-config-rational-order.git","type":"git"},"_npmVersion":"10.8.2","description":"Stylelint config that sorts related property declarations by grouping together following the order: Positioning, Box Model, Typography, Visual, Animation, Other.","directories":{},"_nodeVersion":"20.17.0","dependencies":{"stylelint":"^16","stylelint-order":"^6"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","eslint":"^8.57.0","prettier":"^3.2.5","cross-env":"^7.0.3","eslint-plugin-jest":"^28.2.0","eslint-plugin-import":"^2.29.1","eslint-config-prettier":"^9.1.0","eslint-plugin-prettier":"^5.1.3","eslint-config-airbnb-base":"^15.0.0"},"peerDependencies":{"stylelint":"^16","stylelint-order":"^6"},"_npmOperationalInternal":{"tmp":"tmp/stylelint-config-rational-order_0.1.4_1727630455176_0.3140006386067855","host":"s3://npm-registry-packages"}},"0.1.5":{"name":"@alexpavlov/stylelint-config-rational-order","version":"0.1.5","keywords":["stylelint","stylelint-config","stylelint-order","stylelint-plugin","properties-order","css property order","declaration-order","css declaration order","rational-css","order-css","order"],"author":{"name":"Constverum","email":"constverum@gmail.com"},"license":"Apache-2.0","_id":"@alexpavlov/stylelint-config-rational-order@0.1.5","maintainers":[{"name":"alexpavlov","email":"aleksey.pavlof@gmail.com"}],"homepage":"https://github.com/AlexPavlof/stylelint-config-rational-order","bugs":{"url":"https://github.com/AlexPavlof/stylelint-config-rational-order/issues"},"dist":{"shasum":"7e805d4fdd161d39fae97b74d774b6f5c1519749","tarball":"https://registry.npmjs.org/@alexpavlov/stylelint-config-rational-order/-/stylelint-config-rational-order-0.1.5.tgz","fileCount":22,"integrity":"sha512-UjY7DNs+QPOIIdFyGne7DKUcxrNpTBJw3AjZv/8imf6THREE6beuUdNPZEZvLdASyAdgxaTy8je9/cIrSeSUMA==","signatures":[{"sig":"MEYCIQCzztksGxGeZFAoMNA2Gva0pLksiWk/e2FFzVj24gNTMQIhAP1Cj6AFtGNw5T8Hf60i5MVhiyVyC8ogmChB2z/Kqqzj","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":34005},"main":"index.js","type":"module","engines":{"node":">=18.12.0"},"exports":"./index.js","gitHead":"fcd20e8990407b0f37d163b33b120ca9d7b630e9","private":false,"scripts":{"lint":"eslint .","test":"cross-env NODE_OPTIONS=\"--experimental-vm-modules --no-warnings\" jest --runInBand"},"_npmUser":{"name":"alexpavlov","email":"aleksey.pavlof@gmail.com"},"repository":{"url":"git+https://github.com/AlexPavlof/stylelint-config-rational-order.git","type":"git"},"_npmVersion":"10.8.2","description":"Stylelint config that sorts related property declarations by grouping together following the order: Positioning, Box Model, Typography, Visual, Animation, Other.","directories":{},"_nodeVersion":"20.17.0","dependencies":{"stylelint":"^16","stylelint-order":"^6"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","eslint":"^8.57.0","prettier":"^3.2.5","cross-env":"^7.0.3","eslint-plugin-jest":"^28.2.0","eslint-plugin-import":"^2.29.1","eslint-config-prettier":"^9.1.0","eslint-plugin-prettier":"^5.1.3","eslint-config-airbnb-base":"^15.0.0"},"peerDependencies":{"stylelint":"^16","stylelint-order":"^6"},"_npmOperationalInternal":{"tmp":"tmp/stylelint-config-rational-order_0.1.5_1727630677874_0.8364911076588659","host":"s3://npm-registry-packages"}},"0.1.6":{"name":"@alexpavlov/stylelint-config-rational-order","version":"0.1.6","keywords":["stylelint","stylelint-config","stylelint-order","stylelint-plugin","properties-order","css property order","declaration-order","css declaration order","rational-css","order-css","order"],"author":{"name":"Constverum","email":"constverum@gmail.com"},"license":"Apache-2.0","_id":"@alexpavlov/stylelint-config-rational-order@0.1.6","maintainers":[{"name":"alexpavlov","email":"aleksey.pavlof@gmail.com"}],"homepage":"https://github.com/AlexPavlof/stylelint-config-rational-order","bugs":{"url":"https://github.com/AlexPavlof/stylelint-config-rational-order/issues"},"dist":{"shasum":"c1dfce066013632c3fed19c2e59bda5a82af3e72","tarball":"https://registry.npmjs.org/@alexpavlov/stylelint-config-rational-order/-/stylelint-config-rational-order-0.1.6.tgz","fileCount":22,"integrity":"sha512-96Oxo/I1DGk290EwdylrV41GBEQD1rcTggoDYyzAVSvedyj2MzKs0qBDyCOcGXF9Mg+uvlQTA40zEZDI8GRm2A==","signatures":[{"sig":"MEQCIEbVkOkqR3eAqNsqIr8Gx3+0Db3XMTKq4Y1eb7L3k2yYAiAJNr2XK5WutkJ31U0JKVpcxz400+P7LnXh8Lan5uS9bA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":34023},"main":"index.js","type":"module","engines":{"node":">=18.12.0"},"exports":"./index.js","gitHead":"cb98b780a953493c1d85a679f72ba944d9f0d794","private":false,"scripts":{"lint":"eslint .","test":"cross-env NODE_OPTIONS=\"--experimental-vm-modules --no-warnings\" jest --runInBand"},"_npmUser":{"name":"alexpavlov","email":"aleksey.pavlof@gmail.com"},"repository":{"url":"git+https://github.com/AlexPavlof/stylelint-config-rational-order.git","type":"git"},"_npmVersion":"10.8.2","description":"Stylelint config that sorts related property declarations by grouping together following the order: Positioning, Box Model, Typography, Visual, Animation, Other.","directories":{},"_nodeVersion":"20.17.0","dependencies":{"stylelint":"^16","stylelint-order":"^6"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","eslint":"^8.57.0","prettier":"^3.2.5","cross-env":"^7.0.3","eslint-plugin-jest":"^28.2.0","eslint-plugin-import":"^2.29.1","eslint-config-prettier":"^9.1.0","eslint-plugin-prettier":"^5.1.3","eslint-config-airbnb-base":"^15.0.0"},"peerDependencies":{"stylelint":"^16","stylelint-order":"^6"},"_npmOperationalInternal":{"tmp":"tmp/stylelint-config-rational-order_0.1.6_1727631440355_0.637543905459325","host":"s3://npm-registry-packages"}},"0.1.7":{"name":"@alexpavlov/stylelint-config-rational-order","version":"0.1.7","keywords":["stylelint","stylelint-config","stylelint-order","stylelint-plugin","properties-order","css property order","declaration-order","css declaration order","rational-css","order-css","order"],"author":{"name":"Constverum","email":"constverum@gmail.com"},"license":"Apache-2.0","_id":"@alexpavlov/stylelint-config-rational-order@0.1.7","maintainers":[{"name":"alexpavlov","email":"aleksey.pavlof@gmail.com"}],"homepage":"https://github.com/AlexPavlof/stylelint-config-rational-order","bugs":{"url":"https://github.com/AlexPavlof/stylelint-config-rational-order/issues"},"dist":{"shasum":"320e0d6c5bd5f62d382f22e1ced13c62d5f12415","tarball":"https://registry.npmjs.org/@alexpavlov/stylelint-config-rational-order/-/stylelint-config-rational-order-0.1.7.tgz","fileCount":22,"integrity":"sha512-W2sZXIMUlgoNKjyYE6HqaWBsDs6Yolhp89TTirWFLoFQO6X+laKtE8sZVrHip9a0ElbFa6puypSdD81pvoxj/A==","signatures":[{"sig":"MEYCIQCjPKQz81EBg1RQfkRbBtlydA6a/53+eDKQNu1DQ5QJrwIhAIJsu2q6H0IcUIyt1Q2x6CzdxAUaBnlzyKVzBEO/5IiM","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":34088},"main":"index.js","type":"module","engines":{"node":">=18.12.0"},"exports":"./index.js","gitHead":"b02ecee98bdab3af000dab4dcfc722fbf052ee35","private":false,"scripts":{"lint":"eslint .","test":"cross-env NODE_OPTIONS=\"--experimental-vm-modules --no-warnings\" jest --runInBand"},"_npmUser":{"name":"alexpavlov","email":"aleksey.pavlof@gmail.com"},"repository":{"url":"git+https://github.com/AlexPavlof/stylelint-config-rational-order.git","type":"git"},"_npmVersion":"10.8.2","description":"Stylelint config that sorts related property declarations by grouping together following the order: Positioning, Box Model, Typography, Visual, Animation, Other.","directories":{},"_nodeVersion":"20.17.0","dependencies":{"stylelint":"^16","stylelint-order":"^6"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","eslint":"^8.57.0","prettier":"^3.2.5","cross-env":"^7.0.3","eslint-plugin-jest":"^28.2.0","eslint-plugin-import":"^2.29.1","eslint-config-prettier":"^9.1.0","eslint-plugin-prettier":"^5.1.3","eslint-config-airbnb-base":"^15.0.0"},"peerDependencies":{"stylelint":"^16","stylelint-order":"^6"},"_npmOperationalInternal":{"tmp":"tmp/stylelint-config-rational-order_0.1.7_1727689280146_0.9414836579590642","host":"s3://npm-registry-packages"}},"0.2.0":{"_id":"@alexpavlov/stylelint-config-rational-order@0.2.0","bugs":{"url":"https://github.com/AlexPavlof/stylelint-config-rational-order/issues"},"dist":{"shasum":"dd48c486a346f2d2ec6fa41a6359cb5df49efbde","tarball":"https://registry.npmjs.org/@alexpavlov/stylelint-config-rational-order/-/stylelint-config-rational-order-0.2.0.tgz","fileCount":16,"integrity":"sha512-xm/dp18zeBo2KgErn5XQZgNy/kZkWjMmGBhFzZtGaL80b87zOzqaC4NzUw4jr0+KX2ae9nDHdImHweMa96BtVQ==","signatures":[{"sig":"MEYCIQC0fG62HmAgVn901qtByvlSftlX76ZeO3jTA4heJ123rQIhAJlAJZ9mErX/S/cqt9QsITv/aNPcMVtDNtPMzxHNp7Bs","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCDR0nJkhOk+EuNCZDvx17XcNs3yze/9Q0DDip61Kq9SwIgBRnnpdZsOz6EGn2eg+4Ygj5ie8SyDwLWqpZZzkQIEDQ="}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@alexpavlov%2fstylelint-config-rational-order@0.2.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":27144},"jest":{"transform":{}},"main":"index.js","name":"@alexpavlov/stylelint-config-rational-order","type":"module","author":{"name":"Constverum","email":"constverum@gmail.com"},"engines":{"node":">=20.19.0"},"exports":{".":"./index.js","./plugin":"./plugin/index.js","./package.json":"./package.json","./borderInBoxModel":"./borderInBoxModel.js"},"gitHead":"30b89dce3239a54460707c3f9502d64158c9d022","license":"Apache-2.0","private":false,"scripts":{"lint":"eslint .","test":"node --experimental-vm-modules --disable-warning=ExperimentalWarning node_modules/jest/bin/jest.js","format":"prettier --write .","format:check":"prettier --check ."},"version":"0.2.0","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:af1960fe-d15f-4c2e-b1f1-4c5cadc498f3"}},"homepage":"https://github.com/AlexPavlof/stylelint-config-rational-order","keywords":["stylelint","stylelint-config","stylelint-order","stylelint-plugin","properties-order","css property order","declaration-order","css declaration order","rational-css","order-css","order"],"repository":{"url":"git+https://github.com/AlexPavlof/stylelint-config-rational-order.git","type":"git"},"_npmVersion":"11.17.0","description":"Stylelint config that sorts related property declarations by grouping together following the order: Positioning, Box Model, Typography, Visual, Animation, Other.","directories":{},"maintainers":[{"name":"alexpavlov","email":"aleksey.pavlof@gmail.com"}],"_nodeVersion":"24.19.0","publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^30","eslint":"^10.8.1","globals":"^17.11.0","prettier":"^3.9.6","stylelint":"^17","@eslint/js":"^10.0.1","stylelint-order":"^8","eslint-plugin-jest":"^29.16.1","eslint-config-prettier":"^10.1.8","eslint-plugin-import-x":"^4.17.1"},"peerDependencies":{"stylelint":"^17","stylelint-order":"^8"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/stylelint-config-rational-order_0.2.0_1787268031540_0.09287041053522715"}}},"time":{"created":"2024-09-29T17:20:55.063Z","modified":"2026-08-20T23:20:32.002Z","0.1.4":"2024-09-29T17:20:55.410Z","0.1.5":"2024-09-29T17:24:38.067Z","0.1.6":"2024-09-29T17:37:20.549Z","0.1.7":"2024-09-30T09:41:20.314Z","0.2.0":"2026-08-20T23:20:31.665Z"},"bugs":{"url":"https://github.com/AlexPavlof/stylelint-config-rational-order/issues"},"author":{"name":"Constverum","email":"constverum@gmail.com"},"license":"Apache-2.0","homepage":"https://github.com/AlexPavlof/stylelint-config-rational-order","keywords":["stylelint","stylelint-config","stylelint-order","stylelint-plugin","properties-order","css property order","declaration-order","css declaration order","rational-css","order-css","order"],"repository":{"url":"git+https://github.com/AlexPavlof/stylelint-config-rational-order.git","type":"git"},"description":"Stylelint config that sorts related property declarations by grouping together following the order: Positioning, Box Model, Typography, Visual, Animation, Other.","maintainers":[{"name":"alexpavlov","email":"aleksey.pavlof@gmail.com"}],"readme":"# @alexpavlov/stylelint-config-rational-order\n\n[![NPM version][version-img]][npm-url]\n[![NPM downloads][downloads-img]][npm-url]\n[![Build status][ci-img]][ci-url]\n[![License][l-img]][l-url]\n\nStylelint config that sorts related property declarations by grouping together following the order:\n\n1.  Positioning\n2.  Box Model\n3.  Typography\n4.  Visual\n5.  Animation\n6.  Misc\n\n```css\n.declaration-order {\n  /* Positioning */\n  position: absolute;\n  top: 0;\n  right: 0;\n  bottom: 0;\n  left: 0;\n  z-index: 10;\n\n  /* Box Model */\n  display: block;\n  float: right;\n  width: 100px;\n  height: 100px;\n  margin: 10px;\n  padding: 10px;\n\n  /* Typography */\n  color: #888;\n  font: normal 16px Helvetica, sans-serif;\n  line-height: 1.3;\n  text-align: center;\n\n  /* Visual */\n  background-color: #eee;\n  border: 1px solid #888;\n  border-radius: 4px;\n  opacity: 1;\n\n  /* Animation */\n  transition: all 1s;\n\n  /* Misc */\n  user-select: none;\n}\n```\n\n## Requirements\n\n|                   | Version     |\n| ----------------- | ----------- |\n| Node.js           | `>=20.19.0` |\n| `stylelint`       | `^17`       |\n| `stylelint-order` | `^8`        |\n\n`stylelint` and `stylelint-order` are peer dependencies — install them yourself,\nas shown below.\n\n## Usage\n\n1.  Add `stylelint`, `stylelint-order` and this package to your project:\n\n```bash\nnpm install --save-dev stylelint stylelint-order @alexpavlov/stylelint-config-rational-order\n```\n\n##### or, if you prefer yarn over npm:\n\n```bash\nyarn add --dev stylelint stylelint-order @alexpavlov/stylelint-config-rational-order\n```\n\n2.  Add this package to the end of your extends array inside Stylelint\n    configuration (.stylelintrc for example):\n\n```javascript\n{\n  \"extends\": [\n    ...(rest of your stylelint config),\n    \"@alexpavlov/stylelint-config-rational-order\"\n  ]\n}\n```\n\nThis shareable config is equivalent to the following:\n\n```json\n{\n  \"plugins\": [\n    \"stylelint-order\",\n    \"@alexpavlov/stylelint-config-rational-order/plugin\"\n  ],\n  \"rules\": {\n    \"order/properties-order\": [],\n    \"plugin/rational-order\": [\n      true,\n      {\n        \"border-in-box-model\": false,\n        \"empty-line-between-groups\": false\n      }\n    ]\n  }\n}\n```\n\n`\"order/properties-order\": []` is required, not decorative: `plugin/rational-order`\nreports its warnings under that rule name, so the entry is what gives them a\nseverity. Keep it if you configure the plugin by hand.\n\nSince it adds `stylelint-order` and `@alexpavlov/stylelint-config-rational-order` to plugins and also adds required rules, you don't have to do this yourself when extending this config.\n\n## Optional options / rules\n\n#### border-in-box-model\n\nDefines to which group the **border** property belongs to.\n\nIf `true` **border** property belongs to the **box model section**.\nThe default value is `false` (**border** property belongs to the **visual section**).\n\n#### empty-line-between-groups\n\nIf `true` adds an empty line between groups. The default value is `false`.\n\n## FAQ\n\n<details>\n  <summary>Why should I use the rational order and group and sort CSS properties by type instead of alphabetical order?</summary>\n\nThe pros and cons of both ways in detail:\n\n- [Happy Potter and the Order of CSS](https://dev.to/thekashey/happy-potter-and-the-order-of-css-5ec)\n- [“Outside In” — Ordering CSS Properties by Importance](https://webdesign.tutsplus.com/articles/outside-in-ordering-css-properties-by-importance--cms-21685)\n\n</details>\n\n## Credits\n\n- [Code Guide by @mdo](http://codeguide.co/)\n- [Code Guide by HTML Academy](https://github.com/htmlacademy/codeguide)\n\n[npm-url]: https://www.npmjs.com/package/@alexpavlov/stylelint-config-rational-order\n[downloads-img]: https://img.shields.io/npm/dt/@alexpavlov/stylelint-config-rational-order?style=flat-square\n[version-img]: https://img.shields.io/npm/v/@alexpavlov/stylelint-config-rational-order?style=flat-square\n[ci-url]: https://github.com/AlexPavlof/stylelint-config-rational-order/actions/workflows/ci.yml\n[ci-img]: https://img.shields.io/github/actions/workflow/status/AlexPavlof/stylelint-config-rational-order/ci.yml?style=flat-square\n[l-url]: https://www.npmjs.com/package/@alexpavlov/stylelint-config-rational-order\n[l-img]: https://img.shields.io/npm/l/@alexpavlov/stylelint-config-rational-order.svg?style=flat-square\n","readmeFilename":"README.md"}